< Browse > Home / Linux / Blog article: [Ubuntu] Using apt-p2p For Faster Upgrades From Intrepid to Jaunty

| RSS

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

April 4th, 2009 Posted in Linux

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

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • MySpace
  • Twitter
Related Posts
  • No Related Posts
Follow Discussion

View Comments to “[Ubuntu] Using apt-p2p For Faster Upgrades From Intrepid to Jaunty”

  1. chris Says:

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

  2. chris Says:

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

  3. chris Says:

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

  4. chris Says:

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

  5. chris Says:

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

  6. chris Says:

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

  7. chris Says:

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

  8. chris Says:

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

  9. chris Says:

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

  10. chris Says:

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

  11. chris Says:

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

  12. chris Says:

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

  13. chris Says:

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

  14. Moot Says:

    What ports to port forward for upload?

  15. Moot Says:

    What ports to port forward for upload?

  16. Moot Says:

    What ports to port forward for upload?

  17. chenhow Says:

    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

  18. chenhow Says:

    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

  19. chenhow Says:

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

  20. chenhow Says:

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

  21. chenhow Says:

    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

  22. chenhow Says:

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

  23. blink4blog Says:

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

  24. blink4blog Says:

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

  25. blink4blog Says:

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

  26. chenhow Says:

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

  27. chenhow Says:

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

  28. chenhow Says:

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

  29. hawaiijobs152 Says:

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

Trackbacks

  1. meneame.net  
  2. 使用apt-p2p更新Ubuntu  

Leave a Reply

blog comments powered by Disqus

World Vision / WWF

World Vision
One Life - Do Something
I support WWF

Subscribe

Follow Me Twitter Follow Me Friendfeed Subscribe RSS to receive content updates in your favorate reader
Follow Me Facebook Follow Me LinkedIn
RSS Subscribe in a reader
RSS Or, subscribe via email:
     

Recent Post

    • [Centos] Kickstart (Unattended) Linux OS installation
    • Singtel Iphone 4 Launching Date
    • Create Bootable USB Drive For Centos Installation
    • PC Server For Research
    • I’m Back Again

Popular Post