One thing I can’t stand is waiting on software to download. I mean, I have a blazingly fast internet connection and I expect everything I do to be blazingly fast also. So, one thing I noticed was my backbox linux installation was taking forever to download updates. Looking into why, I noticed there were static addresses used in the /etc/apt/sources.list for ubuntu software repositories.
So here is how to fix it so that you always get the mirror closest to you:
Open your /etc/apt/sources.list in the editor of your choice.
Replace the contents with this (The lines I commented out have ### edw in them):
[codesyntax lang=”bash”]
# deb cdrom:[BackBox Linux 3.0]/ dists/precise/main/binary-i386/ # deb cdrom:[BackBox Linux 3.0]/ dists/precise/multiverse/binary-i386/ # deb cdrom:[BackBox Linux 3.0]/ dists/precise/restricted/binary-i386/ # deb cdrom:[BackBox Linux 3.0]/ dists/precise/universe/binary-i386/ # deb cdrom:[BackBox Linux 3.0]/ precise main multiverse restricted universe # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. ##### edw deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted ##### edw deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse deb-src mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse ## Major bug fix updates produced after the final release of the ## distribution. ### edw deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted ### edw deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse deb-src mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. ### edw deb http://us.archive.ubuntu.com/ubuntu/ precise universe ### edw deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe ### edw deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe ### edw deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. ### edw deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse ### edw deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse ### edw deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse ### edw deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. ### edw deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse ### edw deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse deb-src 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 deb-src mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse ### edw deb http://security.ubuntu.com/ubuntu precise-security main restricted ### edw deb-src http://security.ubuntu.com/ubuntu precise-security main restricted ### edw deb http://security.ubuntu.com/ubuntu precise-security universe ### edw deb-src http://security.ubuntu.com/ubuntu precise-security universe ### edw deb http://security.ubuntu.com/ubuntu precise-security multiverse ### edw deb-src http://security.ubuntu.com/ubuntu precise-security multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu precise partner # deb-src http://archive.canonical.com/ubuntu precise partner ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu precise main deb-src http://extras.ubuntu.com/ubuntu precise main
[/codesyntax]
After that is completed, save it.
Then run:
[codesyntax lang=”bash”]
sudo apt-get update && sudo apt-get upgrade
[/codesyntax]
Your downloads from ubuntu repositories will now use the mirror closest to you and should be much faster.
Leave a Reply
You must be logged in to post a comment.