针对您在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 ...
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...
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...
Ubuntu 出现apt-get: Package has no installation candidate问题,今天在安装软件的时候出现了Packagehasnoinstallationcandidate的问题,如:# apt-getinstall<packagename>Readingpackagelists...DoneBuildingdependencytree...DonePackageaptitudeisnotavail
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 ...
1.没有找到对应的git软件包 先更新一下本地索引 代码语言:javascript 复制 sudo apt-getupdate 2.发现产生另外的问题:Temporary failure resolving 'xxxx' 找了很久发现是虚拟机网络连接的问题,把虚拟机重新设置为NAT连接。网络连接正常,执行 代码语言:javascript ...
今天在安装软件的时候出现了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 解决方法如下: ...
E: Package <packagename> has no installation candidate 解决方法如下: apt-get update apt-get upgrade apt-getinstall<packagename> 这样就可以正常使用apt-get了~ 添加第三方地址: sudoadd-apt-repository"deb http://archive.canonical.com/ lucid partner"sudoapt-get update ...