最近在复习,这两天重新装了下虚拟机,发现连vim 都下不到,
报错
E: Package 'vim' has no installation candidate
总体来说就是E:
Package 'packagename' has no installation candidate
update时发现报错
E: Some index files failed to download, they have been ignored, or old ones used instead.
想了想应该是不支持老版本ubuntu了,但是又不想在虚拟机装个12+以上的版本 ,遂寻找支持老版本的办法,发现一枚!
deb jaunty main restricted universe
将这一行粘帖到你的源文件中,即/etc/apt/sources.list
然后观察你第一行的代码,版本为maverick,将其替换jaunty 即
deb maverick main restricted universe
修改以后的源为(10.10,其他源修改类似)
-
deb http://old-releases.ubuntu.com/ubuntu maverick main restricted universe
-
#deb http://Ubuntu.uestc.edu.cn/ubuntu/ maverick main restricted universe multiverse
-
deb http://Ubuntu.uestc.edu.cn/ubuntu/ maverick-backports main restricted universe multiverse
-
deb http://Ubuntu.uestc.edu.cn/ubuntu/ maverick-proposed main restricted universe multiverse
-
deb http://Ubuntu.uestc.edu.cn/ubuntu/ maverick-security main restricted universe multiverse
-
deb http://Ubuntu.uestc.edu.cn/ubuntu/ maverick-updates main restricted universe multiverse
-
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ maverick main restricted universe multiverse
-
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ maverick-backports main restricted universe multiverse
-
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ maverick-proposed main restricted universe multiverse
-
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ maverick-security main restricted universe multiverse
-
deb-src http://Ubuntu.uestc.edu.cn/ubuntu/ maverick-updates main restricted universe multiverse
sudo spt-get update,
然后。。。。
ROCK!!!
阅读(8720) | 评论(0) | 转发(1) |