ubuntu 12.04更新源的快慢、稳定与否,影响到ubuntu更新速度,选择一个稳定、快速的更新源就显得很重要。那么要如何选择、修改ubuntu 12.04更新源呢?

方法一:从Ubuntu收录的源中选择

1.打开软件中心->编辑->软件源,然后点击源的列表->其他站点,如下图:

ubuntu 12.04更新源设置

2.然后手工选择一个稳定、快速的源,如163源,CN99源,或者点击“选择最佳服务器”,如下图:

ubuntu 12.04更新源设置

方法二:手工修改源文件

1.备份原有的源列表文件sources.list:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

2.修改源列表,将sources.list文件中的的源列表用新的源列表替换:

sudo gedit /etc/apt/sources.list

3.保存退出后,刷新一下系统的源:

sudo apt-get update

以下是一些比较稳定,快速的国内源列表:

163源

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

cn99源

deb http://ubuntu.cn99.com/ubuntu/ precise main restricted 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

sohu源

deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

lupaworld源

deb http://mirror.lupaworld.com/ubuntu/archive/ precise main restricted universe multiverse 
deb http://mirror.lupaworld.com/ubuntu/archive/ precise-security main restricted universe multiverse 
deb http://mirror.lupaworld.com/ubuntu/archive/ precise-updates main restricted universe multiverse 
deb http://mirror.lupaworld.com/ubuntu/archive/ precise-backports main restricted universe multiverse 
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ precise main restricted universe multiverse



© 活着的博客 - 李权辉的个人博客:人,终究是生活在现实之中,是为了活着而生活.