ໃຊ້ apt-p2p ເພຶ່ອ Upgrades ຈາກ Intrepid ເປັນ Jaunty

apt-p2p ແມ່ນ p2p proxy ສຳຫລັບ apt dowloads, ຫລືເວົ້າງ່າຍໆຄືແບບໂຫລດ ບິດນັ້ນແຫລະ ພໍດີມື້ນີ້ ຊິອັບເກດ ເຊີ່ເວີ້ຈາກ 8.10 ເປັນ 9.04 ເຊິງຖ້າ ໃຊ້ HTTP download ມັນກໍ່ໄດ້ແຕ່ເຮົາຢາກໃຊ້ແບບນີ້. ຂໍ້ດີໃນການເຮັດ apt-p2p ຄືຊ່ອຍ save bandwidth, ແລະຊ່ອຍປະຫຍັດການເຮັດວຽກຂອງ cpu memory resources ຢູ່ ubuntu mirrors.

ວິທີ:
1. Install apt-p2p

sudo apt-get install apt-p2p

2. Prepare sources.list

#Backup sources.list

root@localhost:-$ 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/*
root@localhost:-$ sudo apt-get update

5. Start upgrade from Interpid to Jaunty

root@localhost :-$ sudo update-manager -d

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

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

7. Done

thanks: http://blog.chenhow.net

Tags: , , , ,

This entry was posted on Monday, May 18th, 2009 at 6:12 pm and is filed under HOW TO. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply




Message:

Ubuntu: For Desktops, Servers, Netbooks and in the cloud