解决Ubuntu 安装vim 的Package vim has no installation candidate问题 解决办法:
1、备份源文件,cp -i /etc/apt/sources.list /etc/apt/sources.list_backup
2、打开sources.list,root@ubuntu:/opt# gedit /etc/apt/sources.list
3、在源文件中加入如下阿里巴巴的阿里云服务器的地址并保存
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse 4、更新:sudo apt-get update 5、更新后,再安装vim,sudo apt-get install vim
|