首先备份源列表:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup而后用gedit或其他编辑器打开:
sudo gedit /etc/apt/sources.list从下面列表中选择合适的源,替换掉文件中所有的内容,保存编辑好的文件:
然后,刷新列表:
sudo apt-get update
Ubuntu 11.04网易源(速度很快)
deb http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted
ubuntu 11.04 上海源 提供 Kernel,Hiweed,ubuntu
deb http://mirror.rootguide.org/ubuntu/ natty main universe restricted multiverse
deb-src http://mirror.rootguide.org/ubuntu/ natty main universe restricted multiverse
deb http://mirror.rootguide.org/ubuntu/ natty-security universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/ natty-security universe main multiverse restricted
deb http://mirror.rootguide.org/ubuntu/ natty-updates universe main multiverse restricted
deb http://mirror.rootguide.org/ubuntu/ natty-proposed universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/ natty-proposed universe main multiverse restricted
deb http://mirror.rootguide.org/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirror.rootguide.org/ubuntu/ natty-updates universe main multiverse restricted
ubuntu 11.04 搜狐源
deb http://mirrors.shlug.org/ubuntu/ natty main universe restricted multiverse
deb-src http://mirrors.shlug.org/ubuntu/ natty main universe restricted multiverse
deb http://mirrors.shlug.org/ubuntu/ natty-security universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ natty-security universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/ natty-updates universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/ natty-proposed universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ natty-proposed universe main multiverse restricted
deb http://mirrors.shlug.org/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.shlug.org/ubuntu/ natty-updates universe main multiverse restricted