Package has no installation candidate解决方法

摘要:
今天在安装软件的时候出现了Packagehasnoinstallationcandidate的问题,如:#apt-getinstallReadingpackagelists...DoneBuildingdependencytree...DonePackageaptitudeisnotavailable,butisreferredtobyanotherpackage.Thi
今天在安装软件的时候出现了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了~

免责声明:文章转载自《Package has no installation candidate解决方法》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Python import 指定目录中的模块为什么要先装IIS后装.Net Framework?下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Win7 下安装ubuntu14.04双系统

下面介绍一下利用wubi在Windows中安装Ubuntu 14.04的教程,或者说安装方法和注意事项。  方法一:直接下载wubi.exe 方法二:直接下载ubuntu-14.04-desktop-i386.iso            一:直接下载wubi.exe   wubi.exe下载地址http://www.ubuntu.com.cn/desk...

linux中apt-get使用

apt-get简介 在Ubuntu系统中,经常要用到apt-get install指令来安装软件,由于常常需要root权限来操作,所以搭配sudo食用口感更佳,apt-get指令对于安装、卸载、升级软件提供一条龙服务,对比于源码安装,实在是业界良心。 源码安装 源码安装的流程一般是三部曲: ./configure make make install...

debian 6软件更新源列表

deb http://ftp.debian.org/debian/ squeeze main non-free contribdeb http://ftp.debian.org/debian/ squeeze-proposed-updates main non-free contrib #debian 6 网易软件更新源 deb http://m...

nvidia tk1使用记录--基本环境搭建

前言   项目最开始是在X86+Nvidia(ubuntu+opencv+cuda)平台上实现,达到了期望性能,最近考虑将其移植到嵌入式平台,特别是最近nvidia出了tegra X1,基于和我们使用的gtx960相同的架构的gpu且是64位 8核心cpu,于是开始了尝试移植过程。当前TX1才出来,购买不是那么方便,于是拿它的前一代TK1进行一个最基本的评...

Ubuntu下lamp(PHP+Mysql+Apache)搭建+完全卸载卸载方法

安装apache2 sudo apt-get install apache2 安装完成,运行如下命令重启下: sudo /etc/init.d/apache2 restart 在浏览器里输入http://localhost或者是http://127.0.0.1,如果看到了“It works!“,那就说明Apache就成功的安装了,Apache的默认安装,会...

apt-get本地软件源搭建

1. 收集软件,下载的软件都在/var/cache/apt/archives目录下 例如openstackL版的所有包keystone,glance nova neutron。。。。。。。 举例:apt-get install ros-lunar-control-toolbox 2. 把下载的软件copy到一个目录 apt-get 安装的软件会存在/v...