Get top mirror in command line

Top mirror module supports Ubuntu 10.04 LTS(Lucid Lynx) ,10.10 (Maverick Meerkat) ,11.04 (Natty Narwhal) now,but you can modify souceslist to ajust to your system if mirror supported.

You can choose a top-fast mirror,or by your own preference, download its sourceslist (what's sourceslist?) to the directory "/etc/apt/sources.list.d/" or simply overwrite the file "/etc/apt/sources.list".We also strongly recommend you to backed up your original source list file before overwriting.You should change "CODE" bellow to your Ubuntu codename,ie,lucid,marerick,or natty,default is "lucid"(ie,URL without "?CODE" request string, tihs is to compatible with older entry).

Above instructions in command line are also available for advanced users(make sure you have backup original "sources.list" file and changed "CODE" to your Ubuntu release codename.):

  • Choose top fast Mirror
sudo wget -O /etc/apt/sources.list http://mirror.ubuntu9.com/topmirror/sourceslist/topfast?CODE 
  • Choose top near mirror
sudo wget -O /etc/apt/sources.list http://mirror.ubuntu9.com/topmirror/sourceslist/topnear?CODE
  •  Choose top stable mirror
sudo wget -O /etc/apt/sources.list http://mirror.ubuntu9.com/topmirror/sourceslist/topstable?CODE
  • Choose all top mirrors and save to /etc/apt/sources.list.d/ (Recommend)
sudo wget -O /etc/apt/sources.list.d/0_top_fast.list http://mirror.ubuntu9.com/topmirror/sourceslist/topfast?CODE && wget -O /etc/apt/sources.list.d/1_top_near.list http://mirror.ubuntu9.com/topmirror/sourceslist/topnear?CODE && wget -O /etc/apt/sources.list.d/2_top_stable.list http://mirror.ubuntu9.com/topmirror/sourceslist/topstable?CODE 

Comments

<a href=http://www.google.com>blog</a> [url=http://www.google.com]blog[/url] <a href="http://www.google.com">blog</a> blog http://www.google.com blog

Add new comment