Apt-P2P
Goal
Features
- Downloads from peers, increasing the available bandwidth to the user
- Reduces the bandwidth requirements needed to setup a repository of packages
- Seamlessly integrates with the current APT tool
- Automatically falls back to downloading from an HTTP mirror when peers are not available
- Builds on other already existing tools where possible
- Fast and requires limited CPU and memory
- Will try to download any file it can find a hash for from peers (including Packages.bz2, Sources.gz, …)
To get apt-p2p working on ubuntu :
Install apt-p2p in ubuntu
Configuring apt-p2p
Backup of your source list :
Edit sources.list file
nano /etc/apt/sources.list
Add “localhost:9977? after the “http://” save and exit the file
deb http://localhost:9977/archive.canonical.com/ubuntu intrepid partner
deb-src http://localhost:9977/archive.canonical.com/ubuntu intrepid partner
deb http://localhost:9977/*mirror-address*/ubuntu/ intrepid main universe restricted multiverse
deb-src http://localhost:9977/*mirror-address*/ubuntu/ intrepid main universe restricted multiverse
Remove the cache files : sudo rm -rf /var/cache/apt-p2p/cache/*
Update the source : sudo apt-get update
Start upgrade from Interpid to Jaunty
sudo update-manager -d
More info :apt-p2p