出自:风格之舞-http://www.style5.cn/archives/288
首先赞一下网易!我用的是北京长城宽带2M的ADSL,在虚拟机上用网易的Ubuntu软件源更新,速度一直保持在150K~200K,感觉非常流畅。网易的开源软件镜像网站据说是从以前的cn99的镜像站演变国来的,我以前不怎么用cn99,用的较多的是lupaworld.com和rootguide.org的镜像,对这些默默为开源事业做贡献的站点致敬。
那么,接下来说一下怎么把你的Ubuntu软件源换成网易的镜像吧。首先在终端输入下列命令:
sudo gedit /etc/apt/sources.list
如果你的Ubuntu版本是8.10,就将里面的内容题换成:[code]deb http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu-cn/ intrepid main restricted universe multiverse[/code]如果你的Ubuntu版本是8.04,就题换成:[code]deb http://mirrors.163.com/ubuntu/ hardy main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ hardy-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu-cn/ hardy main restricted universe multiverse[/code]然后保存,关闭文本编辑器。网上的教程大多数都让你编辑之前cp一份备份,我感觉如果你用的不是服务器版Ubuntu就没这个必要,gedit默认会自动备份被修改的文件。就算没有备份,点击菜单“系统”-“系统管理”-“软件源”,然后从中选一个可用的源就可以恢复过来了。
接下来,需要输入下面的命令更新软件源列表,一定不要忘了:
sudo apt-get update
如果你要更新软件,可以用下面的命令:
sudo apt-get upgrade
Ok,现在已经设置完毕了!
jytn 于 2009-08-11 19:04:26发表:
换了CN99后,我的速度上300了。非常满意。
jagub 于 2009-02-20 22:12:33发表:
呵呵,我的很快,不用我操心
henryhj 于 2009-02-20 17:37:34发表:
突然发现自己很幸福,学校的源登内网就可以更新,速度好几兆:0w3)(1
taughtboy 于 2009-02-17 19:50:16发表:
是好东西,我直接按照楼主说的,将sourses.list的文件中前两行以后的全部码全删除了,粘贴过去以后,要记得将每一排前面的数字序号删除,不然系统不识别,也会发出提识。
bobo504 于 2009-02-14 22:55:54发表:
我只在站点上看到了sources.list.hardy的文件,应该只支持8.04源吧,不过8.10我倒也没试,我用的方法更简单
wget http://mirrors.163.com/souces.list.hardy
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp sources.list.hardy /etc/apt/sources.list
sudo apt-get update
sudo apt-get dist-upgrade
lxxinnn 于 2009-02-14 22:51:24发表:
真厉害,速度能到200K以上,也太快了,都 不太习惯。
以前下最快也就是几十K,象蜗牛 一样。现在好多了