Experience Sharing: Upgrade Ubuntu through P2P

Source: Internet
Author: User
Friends who love watching movies, listening to music, and downloading games should have heard of or used Bittorrent or eMule, which are two classic P2P application technologies on the Internet. This is not the case. Ubuntu9.04 will be officially released on December 31, April 23. The previous tu9.04beta version can be updated through the "Update manager". This requires you to download the updates from the software source slowly, it is very easy to slow down or even interrupt the download speed due to various network reasons. The novel P2P technology is exactly

Friends who love watching movies, listening to music, and downloading games should have heard of or used Bittorrent or eMule, which are two classic P2P application technologies on the Internet. This is not the case. Ubuntu 9.04 will be officially released on July 15, April 23. In the past few days, Ubuntu 9.04 Beta can be updated through the "Update manager, this requires slowly downloading and updating from the software source. It is very easy to slow down or even interrupt the download speed due to various network reasons. The novel P2P technology is a point-based grid network. The more points, the more sources available, in this way, the point together can make full use of the existing bandwidth to obtain the required resources.

With the apt-p2p package, we can use P2P technology to upgrade Ubuntu, install apt-p2p:

$ Sudo apt-get install apt-p2p

After installing the apt-p2p, you should modify the software source to the P2P source, back up it before modification:

$ Sudo cp/etc/apt/sources. list/etc/apt/sources. list. bak

Modify Source:

$ Sudo gedit/etc/apt/sources. list

Replace it with the following:
Deb http://security.ubuntu.com/ubuntu/ jaunty-security universe main multiverse restricted
Deb http: /localhost: 9977/archive.ubuntu.com/ubuntu/ jaunty main universe restricted multiverse
Deb http: // localhost: 9977/archive.ubuntu.com/ubuntu/ jaunty-updates universe main multiverse restricted
Deb http: // localhost: 9977/archive.ubuntu.com/ubuntu/ jaunty-backports universe main multiverse restricted
Deb http: // localhost: 9977/archive.canonical.com/ubuntu jaunty partner

Except for the security components, they are still obtained from the official sources, and all others are obtained from P2P. Modify the source. You may need to do some work according to your network characteristics. If your Ubuntu is on the Internet, for example, directly using PPPoE to connect to the Internet in Ubuntu, you do not need to do anything. If your Ubuntu host is in a vro network, you need to set port 9977 ing in the vro. After completing these operations, you can perform operations like daily source update:

$ Sudo apt-get update
$ Sudo apt-get dist-upgrade

In fact, updating the system through P2P is not a very reliable update method. If you can download a new Ubuntu Alternate ISO version through HTTP or FTP, then, after mounting the ISO in Ubuntu, it is most secure to set the update source to CDROM.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.