Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

sudo apt-get update is taking long time for following sites:

Get:17 precise/restricted Sources [5,470 B]                                                                                                               
Get:18 precise/universe Sources [5,019 kB]  
Get:21 precise/restricted i386 Packages [8,431 B]                                                                                                         
Get:22 precise/universe i386 Packages [4,796 kB]

Anyway to speed up this? Internet connection is good.

share|improve this question
There is a current issue with canonical's servers ( causing slow downloads – fossfreedom May 20 '12 at 19:02
For the most part the London server issues have been resolved, speeds when using the the 'Main' or 'US' servers should be back or close to normal – doug May 20 '12 at 19:12
up vote 3 down vote accepted

go to Ubuntu Software Center > Edit > Software Sources and from Download From drop down menu choose Other then on the next window choose Select Best Server and wait to ubuntu recognize best server for you, then run apt-get update again...

Linked Question: - How do I change which mirror I get updates and software from?

share|improve this answer

You can try to delete more than ppas. You can try the following command: sudo apt-get clean. With Ubuntu Tweak, delete unnecessary files on the system.

share|improve this answer

This is command-line oriented answer (especially useful for speeding up provisioning VMs).

If you added new repository recently and you want to update partially, try:

find /etc/apt/sources.list.d -type f -name '*.list' -exec sudo apt-get update -o Dir::Etc::sourcelist="{}" ';'

It won't work in all cases (in case of more complex dependencies), but it's worth a try.

You can also try -d to download packages only. See: What does "sudo apt-get update" do?

Alternatively remove lines from apt list files which you don't need, e.g.:

sudo ex +'bufdo!%s/^deb-src/#deb-src/' -scxa /etc/apt/sources.list /etc/apt/sources.list.d/ubuntu-wine-*.list

which will comment out lines pointing to sources in those files.

Note: The :bufdo command is not POSIX.

Check also if you don't have any useless scripts in /etc/apt/apt.conf.d, e.g.:

sudo ex +"%s@DPkg@//DPkg" -scwq /etc/apt/apt.conf.d/70debconf

See:Disable prompts while installing a Debian package at SF

share|improve this answer
note bufdo is not POSIX – Steven Penny Apr 17 at 0:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.