针对您在VM中安装gcc时遇到的“package 'gcc' has no installation candidate”错误,以下是详细的解决步骤: 确认Ubuntu版本和源设置: 首先,您需要确认您正在使用的Ubuntu版本。可以通过运行以下命令来查看版本信息: bash lsb_release -a 检查/etc/apt/sources.list文件,确认是否已经配置了正确的源。这个文件包含了...
解决Ubuntu 安装vim 的Package vim has no installation candidate问题解决办法:1、备份源文件,cp -i ...
is only available from another source E: Package <packagename> has no installation candidate 解决方法如下: # apt-get update # apt-get upgrade # apt-get install <packagename> 这样就可以正常使用apt-get了~ 添加第三方地址: sudo add-apt-repository "deb http://archive.canonical.com/ lucid part...
deb http://Ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse deb http://Ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse deb http://Ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse deb http://Ubuntu.cn99.com/ubuntu/ hardy-propos...
E: Package <packagename> has no installation candidate 解决方法如下: # apt-get update 【更新同步安装列表。在这一步之前可能还需要添加新的源,比如 vim /etc/apt/sources.list我添加了2个 deb http://mirrors.163.com/ubuntu/ hardy main universe ...
Ubuntu 出现apt-get: Package has no installation candidate问题,今天在安装软件的时候出现了Packagehasnoinstallationcandidate的问题,如:# apt-getinstall<packagename>Readingpackagelists...DoneBuildingdependencytree...DonePackageaptitudeisnotavail
今天在安装软件的时候出现了Package has no installation candidate的问题,如: # apt-get install <packagename> Reading package lists... Done Building dependency tree... Done Package aptitude is not available, but is referred to by another package. ...
Package aptitude is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package <packagename> has no installation candidate 解决方法如下: ...
1.没有找到对应的git软件包 先更新一下本地索引 代码语言:javascript 复制 sudo apt-getupdate 2.发现产生另外的问题:Temporary failure resolving 'xxxx' 找了很久发现是虚拟机网络连接的问题,把虚拟机重新设置为NAT连接。网络连接正常,执行 代码语言:javascript ...
最近将公司的台式机安装了ubuntu16.04,安装之后,使用apt-get install openssh-server 发现出现:Package 'openssh-server' has no installation candidate的问题。下面主要讲解一下解决问题的办法: 1、出现上面的问题主要原因是源的问题。于是可以将ubuntu的源修改一下,ubuntu的源文件主要存放在/etc/apt/sources.list文件...