Ubuntu apt-get: Package has no installation candidate

今天在安装软件的时候出现了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.
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

解决方法如下:

apt-get update
apt-get upgrade
apt-get install <packagename>

这样就可以正常使用apt-get了~

添加第三方地址:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update

如果以上步骤失败,可以试试以下方法:参考(http://unix.stackexchange.com/questions/140119/every-package-has-no-installation-candidate

1. 修改 /etc/apt/sources.list 前,注释所有行

sudo vim /etc/apt/sources.list

2. 添加以下安装源, 测试可用

deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse 
时间: 2024-10-17 22:54:12

Ubuntu apt-get: Package has no installation candidate的相关文章

Ubuntu 出现apt-get: Package has no installation candidate问题

今天在安装软件的时候出现了Package has no installation candidate的问题,如: #  apt-get install <packagename>Reading package lists... DoneBuilding dependency tree... DonePackage aptitude is not available, but is referred to by another package.This may mean that the pac

Ubuntu 出现apt-get: Package has no installation candidate问题 (转)

Ubuntu 出现apt-get: Package has no installation candidate问题 分类: 系统-Linux 2011-12-18 13:32 14151人阅读 评论(0) 收藏 举报 ubuntudeb 今天在安装软件的时候出现了Package has no installation candidate的问题,如: #  apt-get install <packagename> Reading package lists... Done Building d

Ubuntu出现apt-get: Package has no installation candidate问题

今天在安装 vim 的时候出现了 Package 'vim' has no installation candidate的问题 解决方法如下:# apt-get update# apt-get upgrade# apt-get install <packagename> 这样就可以正常使用 apt-get 了- 作者:耑新新,发布于  博客园 转载请注明出处,欢迎邮件交流:[email protected] 原文地址:https://www.cnblogs.com/Amedeo/p/89692

Ubuntu 出现apt-get: Package has no installation candidate问题 - 刘毅枫的博客 - 博客频道 - CSDN.NET

来源:http://blog.csdn.net/liuyifeng_510/article/details/7081490#1536434-hi-1-30578-42d97150898b1af15ddaae52f91f09c2

Ubuntu 出现apt-get: Package has no installation cand

今天在安装软件的时候出现了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. This may mean that the

Package has no installation candidate解决方法

今天在安装软件的时候出现了Package has no installation candidate的问题,如: #  apt-get install <packagename>Reading package lists... DoneBuilding dependency tree... DonePackage aptitude is not available, but is referred to by another package.This may mean that the pac

Ubuntu中安装squid包,显示package &#39;squid&#39; has no installation candidate

命令行:sudo apt install squid 提示错误:package 'squid' has no installation candidate 尝试命令:sudo apt-get install squid 出现错误提示:Unable to locate pakage squid 输入:sudo apt-get update   进行更新后 再次输入:sudo apt-get install squid      下载成功 查看squid软件包信息:sudo apt-get inst

E:Package &#39;Vim&#39; has no installation candidate问题解决

问题描述: [email protected]:~# apt-get install vimReading package lists... DoneBuilding dependency tree Reading state information... DonePackage vim is not available, but is referred to by another package.This may mean that the package is missing, has be

Linux:安装OpenSSH-Server E:Package openssh-server has no installation candidate

$sduo apt-get install openssh-server Reading package lists… Done Building dependency tree Reading state information… Done Package openssh-server is not available, but is referred to by another package. This may mean that the package is missing, has b