众所周知的, Ubuntu 最吸引人的特点之一就是通过 apt 源就可以快速安装各类软件。但是有时候,由于网络等各方面的原因,通过官方源安装程序时下载速度会超慢。这时候我们就会千方百计去寻找可靠的快速源,而通过下面这个 Tips ,你无需多费周折就可以通过一条命令获取最快的 apt 源镜像服务器,并直接添加到 /etc/apt/sources.list 文件中。
事实上这个 Tips 就是利用了前段时间 Ubuntu Night 服务所提供的数据,需注意的是,在运行以下命令后会覆盖掉现有的 /etc/apt/sources.list 文件,所以请务必先做好相应的备份工作。
另外,这些源目前只支持 Ubuntu 10.04 LTS (Lucid Lynx ) 。
# 命令:
选择最快的镜像服务器
sudo wget -O /etc/apt/sources.list http://ubuntu9.com/topmirror/sourceslist/topfast
选择你地域内 (国家) 的最快的镜像服务器
sudo wget -O /etc/apt/sources.list http://ubuntu9.com/topmirror/sourceslist/topnear
选择最稳定的镜像服务器
sudo wget -O /etc/apt/sources.list http://ubuntu9.com/topmirror/sourceslist/topstable
我这边帮我自动选择了 u.srt.cn 源
7 Responses to Tips: 通过一条命令获取最快的 apt 源镜像
通过一条命令获取最快的 apt 源镜像 | Open your thoughts
八月 9th, 2010 at 9:47 上午
[...] 摘自:http://wowubuntu.com/get_fast_apt.html [...]
通过一条命令获取最快的 apt 源镜像 | Hi_BinGo
八月 9th, 2010 at 11:56 上午
[...] 发表评论 摘自:Tips: 通过一条命令获取最快的 apt 源镜像*****以后不用烦改源了***** [...]
pityonline
八月 9th, 2010 at 2:07 下午
我这里的topfast居然是: http://mirrors.mit.edu/ubuntu 看来是我用vpn的关系……
[Reply]
kendisk
八月 13th, 2010 at 5:05 下午
用来这个后,我悲剧了,忘记备份鸟。/
[Reply]
google
八月 16th, 2010 at 11:05 上午
这个没什么必要的说
[Reply]
gb
二月 23rd, 2011 at 12:10 下午
ubuntunight 现在已经支持10.10,11.04了
[Reply]
Ubuntu Night 已提供 Natty 源列表 [新闻] | Wow!Ubuntu
四月 12th, 2011 at 9:59 上午
[...] 另外,这里有一条 tips ,可以通过一条命令从 Ubuntu night 上获取最快的 apt 源镜像。 [...]