Use BitTorrent to Upgrade to Ubuntu ‘Intrepid Ibex’
Ubuntu, the open source GNU/Linux based operating system, is about to release its next big update – Intrepid Ibex. In the past, the update servers would crash very quickly on a big release day, making it hard for people to get the latest update. With BitTorrent, however, this can be easily avoided.
Most users of Linux based operating systems such as Ubuntu are familiar with BitTorrent. In fact, Ubuntu even comes with a BitTorrent client, and millions of Ubuntu users got their install disk via the popular filesharing protocol.
When it comes to upgrading their OS, however, most users still rely on Ubuntu’s central servers. Because of this, the servers are overloaded with upgrade requests every time a big update is released, which often causes them to crash. The next Ubuntu update, version 8.10 aka Intrepid Ibex is scheduled to be released this week, and since the OS is more popular than ever, updating might be troublesome.
There is an easy solution to this problem though. One that not only prevents the Ubuntu servers from crashing, but also speeds up the update progress, because it uses BitTorrent. A bunch of TorrentFreak readers were kind enough to write a basic tutorial to guide you through the upgrade process, which we have posted below.
Update to Ubuntu ‘Intrepid Ibex’ using BitTorrent
Step 1: Setting sources.list to a close-local mirror
First off, it’s definitely recommended to reset to a local mirror. This way, you will download any needed files from a closer and supposedly faster source.
Either do an auto-check: System -> Administration -> Software Sources -> Download From: -> Other -> Select Best Server (It’ll run a couple hundred tests (takes less than five minutes) and select the best mirror for you. Make sure to remember which mirror it is, because you will need that later.)
Or select your local mirror yourself according to your country.
Step 2: Disable 3rd Parties repositories
It is also very much recommended to disable 3rd party repositories! If you don’t know exactly what you are doing, go to the 3rd Parties tab and deselect all of the entries there.
Step 3: Install apt-p2p
Next you need to install “apt-p2p”. Version 0.2.5 is needed because of a major bug in older versions. This is beta software, so it might not be stable for everybody. If it can’t download the file via BitTorrent, however, it will revert to http download.
As apt-p2p is not in the hardy repos yet, we have to fetch it from a server directly. Below I have have two scripts for 32-bit and 64-bit. Use the one that matches your OS.
For 32bit versions use this script, and for 64bit versions use this script.
Save the script file as “apt-p2p.sh” on your desktop. Then open a terminal (Applications > System > Terminal) and issue these commands (you’ll be prompted for your user password):
sudo sh apt-p2p.sh
The scripts will create a apt-p2p folder in the /temp folder, enter that folder and download apt-p2p from the intrepid repositories (they work fine on hardy), including all dependencies. Finally, it will install everything in the required order.
Step 4: Prepare the sources.list
Once installed type the following:
gksudo gedit /etc/apt/sources.list
Now you are looking at the sources.list file for Ubuntu; this specifies which servers to contact for updates and new programs. You should see a bunch of lines that look similar to this:
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner
deb http://*mirror-address*/ubuntu/ hardy main universe restricted multiverse
deb-src http://*mirror-address*/ubuntu/ hardy main universe restricted multiverse
where **mirror-address** is the address of the mirror you chose earlier.
Don’t worry, you may not have all of these, and you may have more. However, you only want to change ones that are similar to these. You want to change these to look like this:
deb http://localhost:9977/archive.canonical.com/ubuntu hardy partner
deb-src http://localhost:9977/archive.canonical.com/ubuntu hardy partner
deb http://localhost:9977/*mirror-address*/ubuntu/ hardy main universe restricted multiverse
deb-src http://localhost:9977/*mirror-address*/ubuntu/ hardy main universe restricted multiverse
So basically just insert “localhost:9977″ after the “http://”. Now close the program and save the file. Note: If you messed anything up, go back to the terminal and run this command:
This WILL overwrite your sources.list file with your backup and we are almost done!
Step 5: Update the packages & upgrade to Intrepid
Back at the terminal, type the following command:
This will update the list of software, as well as fully integrate apt-p2p. If you get any errors, run the following commands (Warning: If not done carefully, these commands could destroy your system):
sudo apt-get update
Once everything looks okay, you’ll want to forward the ports for apt-p2p to your system (if you have a router, see http://portforward.com, port for apt-p2p is 9977 TCP and UDP). At this point, you’re all set to receive regular updates via BitTorrent. If you want to upgrade to Intrepid ahead of time you may type one of the following commands in the terminal:
Click on the “upgrade” button on the top right of that window and follow the wizard. When asked, that no valid mirror was found and whether it shall replace hardy with intrepid, then select “Yes”.
or use
Note: When issuing a “dist-upgrade” in the terminal you will first need to manually alter the entries in the sources.list from “hardy” to “intrepid”.
Now you’re all set, and by using BitTorrent to update Ubuntu you will be updated much faster, and help relieve the strain on the update servers on launch day. As always, tips and suggestions are welcome in the comments.

Pingback: McColley.net » Blog Archive » How To Upgrade Ubuntu Using BitTorrent [Ubuntu]
Pingback: Usar BitTorrent para actualizar Ubuntu a Intrepid Ibex « Ubuntu Life
Pingback: Usar BitTorrent para actualizar de Hardy Heron a Intrepid Ibex « Código Byte
Pingback: Actualizar Ubuntu Mediante Bittorrent « Paradise of Linux
Pingback: Upgrade to Ubuntu ‘Intrepid Ibex’ using BitTorrent
Pingback: Apt-p2p, fare l’upgrade da Hardy a Intrepid tramite BitTorrent - k-hole
Pingback: delade | How To Upgrade Ubuntu Using BitTorrent [Ubuntu]
Pingback: pligg.com
Pingback: The Inquirer ES : Hoy llega Ubuntu 8.10
Pingback: Ubuntu 8.10 Intrepid Ibex
Pingback: Tectonic » Tips for a better Ubuntu download
Pingback: Aggiorna a Ubuntu 8.10 con apt-p2p | Crisis
Pingback: .:: www.LoPsT.com ::. » Post Topic » Ubuntu 8.10 Intrepid Ibex (Versión Final)
Pingback: The Third Half » Blog Archive » New Ubuntu
Pingback: Efinditnow › Download Ubuntu 8.10, the Intrepid Ibex, Now [Ubuntu]
Pingback: Usando o poder do bittorrent para fazer upgrade ao Ubuntu « O Vigia
Pingback: links for 2008-10-30 « Bloggitation
Pingback: Querystring » How To Upgrade Ubuntu Using BitTorrent
Pingback: Update/Upgrade multiple Ubuntu PCs with Apt-Cacher | A No Nonsense Blog
Pingback: Download Ubuntu 8.10 Intrepid Ibex
Pingback: Ubuntu 8.10: Primeras Impresiones | arturogoga
Pingback: Descarga Ubuntu 8.10 Intrepid Ibex
Pingback: Fondos de Pantalla » Blog Archive » Descarga Ubuntu 8.10 Intrepid Ibex
Pingback: links for 2008-10-30 « My Weblog
Pingback: Use BitTorrent to Upgrade to Ubuntu ‘Intrepid Ibex’ « Bloggitation
Pingback: Boycott Novell » Links 31/10/2008: Ubuntu 8.10 Released, Strong Week for GNU/Linux Overall
Pingback: IT News » Blog Archive » Vydané Ubuntu 8.10
Pingback: Ubuntu 8.10 Intrepid Ibex | Noticias, novedades, tecnología, programación - Bit & Bit
Pingback: Ubuntu 8.10 disponible
Pingback: Use BitTorrent to Upgrade to Ubuntu 8.10 (TorrentFreaks) | Thomas Nicholson
Pingback: A.Faith Blog » Ubuntu 8.10
Pingback: Ubuntu 8.10 Intrepid Ibex « Josfc Beta
Pingback: Use BitTorrent to Upgrade to Ubuntu ‘Intrepid Ibex’ « World News
Pingback: DHCPme » Blog Archive » How To Upgrade Ubuntu Using BitTorrent [Ubuntu]
Pingback: Descarga Ubuntu 8.10 Intrepid Ibex - Comunidad Flogger Ahreeee....
Pingback: lifegeekblog » Blog Archive » E’ uscita la versione 8.10 di Ubuntu: ecco il modo migliore per aggiornare le precedenti release
Pingback: How to upgrade Ubuntu Hardy to Intrepid « Mitch’s Blog
Pingback: E’ uscita la versione 8.10 di Ubuntu: ecco il modo migliore per aggiornare le precedenti release | Yourpage live news aggregator
Pingback: Franky’s blog » Blog Archive » E’ uscita la versione 8.10 di Ubuntu: ecco il modo migliore per aggiornare le precedenti release
Pingback: Ubuntu 8.10 Discussion Thread - Page 2 - Open Source - TechEnclave
Pingback: News: Pre Order Ubuntu 8.10 Intrepid Ibex CD's - Page 3 - India Broadband Forum
Pingback: Actualizar a Intrepid Ibex mediante BitTorrent | NI BLANCO NI NEGRO
Pingback: Boycott Novell » IRC: #boycottnovell @ FreeNode: October 30th, 2008 - Part 1
Pingback: How To Upgrade Ubuntu Using BitTorrent - Softsaurus.org
Pingback: edib - Informática
Pingback: David.R.Gilson » Blog Archive » Bookmarks for October 29th through November 3rd
Pingback: J’s blog » Blog Archive » Much delayed catchup blogging…