[Ubuntu] Using apt-p2p For Faster Upgrades From Intrepid to Jaunty

By | April 4, 2009

apt-p2p is a p2p proxy for apt dowloads, it will act as a proxy between apt requests and a repository server, downloading any request files from peers (if possible), else will fallback to direct HTTP download. In general, apt-p2p save bandwidth, use limited cpu and memory resources and reduce congestion on the ubuntu mirrors.

So how apt-p2p can increase the upgrade speed?
As mentioned earlier, apt-p2p will get the request files from peers, therefore, it will avoid the congestion on the ubuntu mirrors.

Steps:
1. Install apt-p2p

sudo apt-get install apt-p2p

2. Prepare sources.list

#Backup sources.list

chenhow@chenhow:-$ sudo cp /etc/apt/sources.list /etc/apt/sources.list-apt-p2p-backup

3. Edit sources.list

#Add “localhost:9977″ after the “http://”
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

4. Update packages

sudo rm -rf /var/cache/apt-p2p/cache/*
chenhow@chenhow:-$ sudo apt-get update

5. Start upgrade from Interpid to Jaunty

chenhow@chenhow:-$ sudo update-manager -d

6. Check peers, downloads and uploads speed and DHT statistics

Open Internet browser, go to http://localhost:9977

7. Done

image_pdfimage_print
  • Pingback: meneame.net

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • chris

    So the literal line you put in includes *mirror-address* <– or are you supposed to actually replace that with something?

  • Moot

    What ports to port forward for upload?

  • Moot

    What ports to port forward for upload?

  • Moot

    What ports to port forward for upload?

  • http://blog.chenhow.net chenhow

    yes, you should replace *mirror-address* with your repository mirror server.. for example:

    before change /etc/apt/sources.list:
    deb http://sg.archive.ubuntu.com/ubuntu/ jaunty-security main restricted

    after:
    deb http://localhost:9977/sg.archive.ubuntu.com/ubu… jaunty-security main restricted

  • http://blog.chenhow.net chenhow

    yes, you should replace *mirror-address* with your repository mirror server.. for example:

    before change /etc/apt/sources.list:
    deb http://sg.archive.ubuntu.com/ubuntu/ jaunty-security main restricted

    after:
    deb http://localhost:9977/sg.archive.ubuntu.com/ubu… jaunty-security main restricted

  • http://blog.chenhow.net chenhow

    U can set ur router to port forward tcp and udp 9977

  • http://blog.chenhow.net chenhow

    U can set ur router to port forward tcp and udp 9977

  • http://blog.chenhow.net chenhow

    yes, you should replace *mirror-address* with your repository mirror server.. for example:

    before change /etc/apt/sources.list:
    deb http://sg.archive.ubuntu.com/ubuntu/ jaunty-security main restricted

    after:
    deb http://localhost:9977/sg.archive.ubuntu.com/ubu… jaunty-security main restricted

  • http://blog.chenhow.net chenhow

    U can set ur router to port forward tcp and udp 9977

  • blink4blog

    what if i dont want to format my /home partition, then i should not able to use ext4 filesystem for upgrade?

  • blink4blog

    what if i dont want to format my /home partition, then i should not able to use ext4 filesystem for upgrade?

  • blink4blog

    what if i dont want to format my /home partition, then i should not able to use ext4 filesystem for upgrade?

  • http://blog.chenhow.net chenhow

    I believe it won't format the partition when upgrading the OS.

  • http://blog.chenhow.net chenhow

    I believe it won't format the partition when upgrading the OS.

  • http://blog.chenhow.net chenhow

    I believe it won't format the partition when upgrading the OS.

  • hawaiijobs152

    Well post.
    For more jobs visit http://www.staffingpower.com

  • Pingback: 使用apt-p2p更新Ubuntu

  • http://www.zonaltrade.com post classified ads free

    I love intrepid.. I dont feel like upgrading it to jaunty

  • http://www.hosting-reviews.in Web Hosting Review

    Whenever you installing why you are using this sudo third party tool.. Can you please explain that.. Thanks in advance..