[Ubuntu] apt-get: Package has no installation candidate .
来源:互联网 发布:windows调色板pal下载 编辑:程序博客网 时间:2024/05/16 17:56
注:以下命令可能需要sudo
If the package name does not exist in APT’s database, it does not have any idea what you are trying to install and you see the following error message:
# 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
So, the above error occurs for 2 reasons:
1) The APT’s database is not updated.
A quick fix is to update the APT’s database as per the defined sources list.
# apt-get update
# apt-get upgrade
# apt-get install <packagename>
This is it. If isn’t fixed, check point #2 below.
2) The package itself isn’t available on the official Ubuntu repository.
In such a situation, you have to add a 3rd party repository to your /etc/apt/sources.list file and install the package, however, try such repositories at your own risk.
- [Ubuntu] apt-get: Package has no installation candidate
- [Ubuntu] apt-get: Package has no installation candidate .
- Ubuntu 出现apt-get: Package has no installation candidate问题
- [Ubuntu] apt-get: Package has no installation candidate
- Ubuntu 出现apt-get: Package has no installation candidate问题
- [Ubuntu] apt-get: Package has no installation candidate
- Ubuntu 出现apt-get: Package has no installation candidate问题
- Ubuntu 出现apt-get: Package has no installation candidate问题
- Ubuntu 出现apt-get: Package has no installation candidate问题
- Ubuntu 出现apt-get: Package has no installation candidate问题
- Ubuntu 出现apt-get: Package has no installation candidate问题
- Ubuntu 出现apt-get: Package has no installation candidate问题
- Ubuntu 出现apt-get: Package has no installation candidate问题
- Ubuntu 出现apt-get: Package has no installation candidate问题
- ubuntu 出现apt-get:package has no installation candidate
- Ubuntu 出现apt-get: Package has no installation candidate问题
- Ubuntu 出现apt-get: Package has no installation candidate问题
- Ubuntu problems apt-get:Package has no installation candidate
- jbpm5.1介绍(2)
- unix环境高级编程-第七章-进程环境
- SQL触发器实例讲解
- windows7使用临时配置文件登录的解决办法
- 怎样花两年时间去面试一个人+前端开发类书籍
- [Ubuntu] apt-get: Package has no installation candidate .
- spring quartz定时器
- jbpm5.1介绍(3)
- 自然连接,等值连接
- MC/ServiceGuard在线修改的几点小结
- PPT打包成EXE常用方法
- MATLAB中字符串数组的文件输出
- jbpm5.1介绍(4)
- MySQL 数据库性能优化——缓存参数优化