sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表,有备无患嘛)
2、修改更新源
sudo gedit /etc/apt/sources.list (打开Ubuntu 11.04源列表文件)
3、将下面的代码粘贴进去(“#”开头的那一行为注释,可以直接复制进文件中)
#台湾源
deb http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted
#网易 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
#骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin
deb http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse
deb http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted
#大家可以自己根据自己的版本设置一下,不一定局限于ubuntu 11.04,下面列出一些校内更新源。
#电子科技大学
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
#中国科技大学
deb http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
#北京理工大学
deb http://mirror.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
#兰州大学
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe
#上海交通大学
deb http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe deb http://ftp.sjtu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
原文链接:https://www.f2er.com/ubuntu/352944.html