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 
  • Choose top near mirror
sudo wget -O /etc/apt/sources.list
  •  Choose top stable mirror
sudo wget -O /etc/apt/sources.list
  • 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 && wget -O /etc/apt/sources.list.d/1_top_near.list && wget -O /etc/apt/sources.list.d/2_top_stable.list 


<a href=>blog</a> [url=]blog[/url] <a href="">blog</a> blog blog

Add new comment