ubuntu apt-get install: has no installation candidate
来源:互联网 发布:c语言关键字scanf 编辑:程序博客网 时间:2024/05/02 04:21
今天在安装vim的时候出现了Package has no installation candidate的问题,如:
解决方法如下:
# apt-get update
# apt-get upgrade
# apt-get install <packagename>
# apt-get install vim
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
还是没解决,但是在/etc/apt/sources.list 下 添加如下url, 重新update,就可以安装了。
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
0 0
- ubuntu apt-get install: has no installation candidate
- ubuntu下apt-get install XXX命令出现Package 'XXX' 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问题
- 界面统一管理、观察者设计模式
- 信息检索领域书籍推荐【转】
- 什么情况下用缓存?
- C++编程报告——WxWidget环境配置(IDE:CodeBlocks)
- How to install and configure Jabber Server (Ejabberd) on Debian Lenny GNU / Linux
- ubuntu apt-get install: has no installation candidate
- java大数
- 理解 Objective-C Runtime
- sql语句
- session.setAttribute("sessionName",Object);
- Tomcat报告——Tomcat中SSI的配置
- JQuery EasyUI combobox
- 快速排序
- VC编程报告——DirectShow环境配置(VC6)