1:备份源列表文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
2:打开sources.list
sudo gedit sources.list
3:选择合适的源,替换文件中所有的内容,保存文件
电子科技大学源:
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-proposed main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-security main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-updates main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-proposed main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-security main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-updates main multiverse restricted universe
我用的Linux版本:Ubuntu 10.04 (Lucid(10.04) 版本)
4:刷新列表
sudo apt-get update
5:安装Vim
sudo apt-get install vim