Ubuntu学习札记【一】ubuntu 12.04 LTS 如何使用更快的更新源流程详解

        装好ubuntu12.04LTS系统后的第一件事就是替换本身系统自带的更新源,因为系统自带的源有些在中国访问不了,而且即使可以访问也可能会速度又特别慢。幸好国内的一些公司和大学提供了速度不错的更新源。下面介绍如何快速更换更新更快的源:

步骤一:备份sources.list文件:

          在终端输入:cp  /etc/apt/sources.list  /home/wanglin/文档/Backup/backup-sources.list

步骤二:打开sources.list:

          在终端输入:sudo gedit /etc/apt/sources.list

步骤三:修改sources.list,将sources.list内容全部替换为以下内容(基本上拷贝下面的非教育网、教育网各一组即可,全拷贝进去也无伤大雅,我选择中科大、163):

# 电子科大(教育网用户推荐)

deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted 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 restricted universe multiverse

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

# 中国科技大学(教育网用户推荐)

deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted 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 restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

# 北京理工(教育网用户推荐)

deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse 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 multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

# 163(非教育网推荐)

deb http://mirrors.163.com/ubuntu/ precise main restricted

deb-src http://mirrors.163.com/ubuntu/ precise main restricted

deb http://mirrors.163.com/ubuntu/ precise-updates main restricted

deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted

deb http://mirrors.163.com/ubuntu/ precise universe

deb-src http://mirrors.163.com/ubuntu/ precise universe

deb http://mirrors.163.com/ubuntu/ precise-updates universe

deb-src http://mirrors.163.com/ubuntu/ precise-updates universe

deb http://mirrors.163.com/ubuntu/ precise multiverse

deb-src http://mirrors.163.com/ubuntu/ precise multiverse

deb http://mirrors.163.com/ubuntu/ precise-updates multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse

deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ precise-security main restricted

deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted

deb http://mirrors.163.com/ubuntu/ precise-security universe

deb-src http://mirrors.163.com/ubuntu/ precise-security universe

deb http://mirrors.163.com/ubuntu/ precise-security multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse

deb http://extras.ubuntu.com/ubuntu precise main

deb-src http://extras.ubuntu.com/ubuntu precise main

# sohu(非教育网推荐)

deb http://mirrors.sohu.com/ubuntu/ precise main restricted

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 main restricted

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 main restricted universe multiverse

deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted

deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted

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/ubuntu precise main

deb-src http://extras.ubuntu.com/ubuntu precise main

# 163(非教育网推荐)

deb http://mirrors.163.com/ubuntu/ precise main restricted

deb-src http://mirrors.163.com/ubuntu/ precise main restricted

deb http://mirrors.163.com/ubuntu/ precise-updates main restricted

deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted

deb http://mirrors.163.com/ubuntu/ precise universe

deb-src http://mirrors.163.com/ubuntu/ precise universe

deb http://mirrors.163.com/ubuntu/ precise-updates universe

deb-src http://mirrors.163.com/ubuntu/ precise-updates universe

deb http://mirrors.163.com/ubuntu/ precise multiverse

deb-src http://mirrors.163.com/ubuntu/ precise multiverse

deb http://mirrors.163.com/ubuntu/ precise-updates multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse

deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ precise-security main restricted

deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted

deb http://mirrors.163.com/ubuntu/ precise-security universe

deb-src http://mirrors.163.com/ubuntu/ precise-security universe

deb http://mirrors.163.com/ubuntu/ precise-security multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse

deb http://extras.ubuntu.com/ubuntu precise main

deb-src http://extras.ubuntu.com/ubuntu precise main

步骤四:保存对source.list的修改。

步骤五:更新源信息:

        终端输入:sudo apt-get update


参考资料:http://www.cnblogs.com/eastson/archive/2012/08/24/2654163.html

                    http://jingyan.baidu.com/article/1876c852aa8c8c890b1376aa.html

ps:由于作者水平有限,若有不正之处,还望读者不吝赐教!




你可能感兴趣的:(Ubuntu学习札记【一】ubuntu 12.04 LTS 如何使用更快的更新源流程详解)