rem

.co

Ubuntu: Automatically selecting a fast mirror

 |  100 words — 1 minute  |  Linux Ubuntu

Letting Ubuntu pick the apt-get mirror closest to you is pretty easy.

Just add these mirror directives to the top of /etc/apt/sources.list and you’re good to go:

1
2
3
4
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse