Quick little speed boost for Ubuntu’s APT package manager

Posted on December 8th, 2008

One of the first things I like to do with a brand new Ubuntu install is switch its APT repositories. Few people know this, but the localized repositories for Ubuntu tend to be a bit slow (this is especially a problem with the Canadian repositories). There’s a simple little way to switch them out quickly by using Vi/Vim (ahh vi, editor of the gods.)

sudo su
vim /etc/apt/sources.list
:%s/ca.archive/archive/g (this line basically says ‘search for anything within this file called ‘ca.archive’ and replace it with ‘archive’)
apt-get update

And that’s it, you’re done! you should notice a nice little speed boost next time you install packages or do an update.