作者:王立斌
这两天一直在玩Ubuntu,但遇到一个很心烦的问题,默认安装以后,更新软件包特别的慢,因此我对Ubuntu进行了一次改源,改源后速度才有了飞跃的进步。
以下所改源的方法:
在终端执行以下命令(第一条是备份现有服务器列表,第二条是使用Gedit编辑,您也可以使用自己喜爱的编辑器编辑。)
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list
从以下各服务器列表内容中选择一段替换文件中的所有内容(请根据自己网络环境设置更新服务器,以达到最快的速度。我对这些网络上提供的源地址进行了测试,并附上了测试结果,仅供参考。)
#传说中的中国科技大学 5M/s
deb http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ feisty-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse
#经过测试,这个不可用
#传说中的北京交大 速度 2M/s
deb http://mirror.bjtu.edu.cn/ubuntu/ feisty main restricted universe multiverse
deb http://mirror.bjtu.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse
deb http://mirror.bjtu.edu.cn/ubuntu/ feisty-security main restricted universe multiverse
deb http://mirror.bjtu.edu.cn/ubuntu/ feisty-backports main restricted universe multiverse
#经过测试,这个不可用
#传说中的上海交通大学,听说现在硬盘挂了,500k/s 曾经最热门的源之一
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ feisty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe
#经过测试这个不可用
#真正可以上的清华大学ubuntu源 300k/s
deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ feisty main restricted universe multiverse
deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ feisty-security main restricted universe multiverse
deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ feisty-updates main restricted universe multiverse
#经过测试,这个不可用
#这个清华源现在我也可以用 了
deb http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe
deb-src http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu-cn/ feisty main multiverse restricted universe
#经过测试,这个连域名都解析不了。估计更是不可用了。
#传说中的兰州大学 260k/s
deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ feisty main multiverse restricted universe
#经过测试,部分文件不可用。
#传说中的台湾大学 中国电信adsl 150k/s
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse
#经过测试,速度很快。
再改源的时候主义里面的注释,如果源地址不对,是会出错的,到时候还要从新修改源地址,直到正确为止,当然,本文以上提供的源地址都是经过测试的。测试时间为2008-9-22日19:00,线路为网通线路。仅代表这一时期的测试结。


aimy 于 2008-09-26 13:22:26发表:
aimy@aimy-desktop:~$ sudo apt-get update
错误 http://ubuntu.cn99.com hardy Release.gpg
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy/main Translation-zh_CN
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy/restricted Translation-zh_CN
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy/universe Translation-zh_CN
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy/multiverse Translation-zh_CN
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy-security Release.gpg
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy-security/main Translation-zh_CN
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy-security/restricted Translation-zh_CN
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy-security/universe Translation-zh_CN
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy-security/multiverse Translation-zh_CN
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy-updates Release.gpg
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy-updates/main Translation-zh_CN
无法解析域名“ubuntu.cn99.com”
错误 http://ubuntu.cn99.com hardy-updates/restricted Translation-zh_CN
CN99貌似真没用
[ 本帖最后由 aimy 于 2008-9-26 13:56 编辑 ]
々小疯子々 于 2008-09-26 12:02:56发表:
我也是今天才换的感觉速度不错啊!!
清江浦 于 2008-09-26 10:22:16发表:
我用的就是cn99的源 现在很快的哦
beyondfly 于 2008-09-25 23:31:15发表:
cn99现在更新速度不快么??
朗朗1号 于 2008-09-25 23:15:06发表:
sudo apt-get update 这一步是更新你的源列表,换源後必须执行
lz忘记这条了