源是什么东西就不用多说了。
1、在重新修改设置源时对原来的源最好进行备份:
sudo cp /etc/apt/sources.list/etc/apt/sources.list.backup(备份下当前的源列表)
2、修改更新源:
sudo gedit /etc/apt/sources.list(打开Ubuntu12.04源列表文件)
然后ctrl+a全选里面的原有内容并删除,把新的源(见附页)拷进去,然后保存退出。
3、更新源:
源变更后需要手动更新才能启用。
sudo apt-get update
说明:至少每天运行一次,而且每次修改了/etc/apt/sources.list 文件之后也必须执行一次!
附页
一下列出常用的源:
ubuntu.cn99.com源(推荐使用)
deb http://ubuntu.cn99.com/ubuntu/ precise mainrestricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/precise-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/precise-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/precise-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/precise main restricted universe multiverse
163(推荐使用)
deb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
sohu
deb http://mirrors.sohu.com/ubuntu/ precise mainrestricted
deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted
deb http://mirrors.sohu.com/ubuntu/precise-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates mainrestricted
deb http://mirrors.sohu.com/ubuntu/precise universe
deb-src http://mirrors.sohu.com/ubuntu/ precise universe
deb http://mirrors.sohu.com/ubuntu/precise-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb http://mirrors.sohu.com/ubuntu/precise multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
deb http://mirrors.sohu.com/ubuntu/precise-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb http://mirrors.sohu.com/ubuntu/precise-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-backports mainrestricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/precise-security main restricted
deb-src http://mirrors.sohu.com/ubuntu/ precise-security mainrestricted
deb http://mirrors.sohu.com/ubuntu/precise-security universe
deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe
deb http://mirrors.sohu.com/ubuntu/precise-security multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse
deb http://extras.ubuntu.com/ubuntuprecise main
deb-src http://extras.ubuntu.com/ubuntu precise main
教育网源
如果你是在校大学生,可以使用校园网/教育网,就是用教育网的资源吧,尤其是支持ipv6的,那更新速度就按兆算了。
电子科技大学
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise mainrestricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/precise-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/precise-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/precise-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/precise-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricteduniverse multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports mainrestricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed mainrestricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security mainrestricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates mainrestricted universe multiverse
中国科技大学
deb http://debian.ustc.edu.cn/ubuntu/ precise mainrestricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/precise-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/precise-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/precise-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/precise-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricteduniverse multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports mainrestricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed mainrestricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security mainrestricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates mainrestricted universe multiverse
北京理工大学
deb http://mirror.bjtu.edu.cn/ubuntu/ precise mainmultiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/precise-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/precise-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/precise-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/precise-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverserestricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports mainmultiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed mainmultiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security mainmultiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates mainmultiverse restricted universe