当前位置:酷酷问答>百科知识>ubuntu 12.04 LTS 如何使用更快的更新源

ubuntu 12.04 LTS 如何使用更快的更新源

2024-09-27 15:06:01 编辑:zane 浏览量:522

ubuntu 12.04 LTS 如何使用更快的更新源

的有关信息介绍如下:

ubuntu 12.04 LTS 如何使用更快的更新源

装好ubuntu系统后的第一见事就是替换自带的更新源,原因是系统自带的源有些在中国访问不了,可以访问的速度又特别慢。幸好国内的一些公司和大学提供了速度不错的更新源。下面介绍如何使用更快的更新源

备份sources.list文件:

cp /etc/apt/sources.list etc-backup/etc-apt-source.list

打开sources.list:

sudo gedit /etc/apt/sources.list

修改sources.list,将sources.list内容全部替换为以下内容:

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

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

保存对source.list的修改。

更新源信息:

sudo apt-get update

版权声明:文章由 酷酷问答 整理收集,来源于互联网或者用户投稿,如有侵权,请联系我们,我们会立即处理。如转载请保留本文链接:https://www.kukuwd.com/article/54219.html
热门文章