Ubuntu12.10 刚安装完发现vi编辑器无法正常使用,后来用sudo apt-get install vim 一直出错,搜索相关资源发现需要更新源
首先,备份一下Ubuntu 12.10 原来的源地址列表文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
然后进行修改
sudo gedit /etc/apt/sources.list
可以在里面添加资源地址,我是直接覆盖掉原来的。
Google上找了很多源都无法正常使用如:
#网易的源(163源,无论是不是教育网,速度都很快)
deb http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
等等(骨头源、教育网源)。。让我很是伤感。。。。。
最终我直接在sorftupdate里头搜索最合适的源-》输入密码确认-》close在终端重新输入sudo apt-get update 等了10分钟终于看到希望了
随后sudo apt-get install vim 等了3分钟,终于可以使用了
网速很重要哦~