How to set the Ubuntu update source to stop updating support

Source: Internet
Author: User
1, Ubuntu update source Description

The location of the Ubuntu update source is usually

/etc/apt/sources.list
You can modify it by any tool, and its content form is generally like this

deb http://old-releases.ubuntu.com/ubuntu/xxxx main restricted universe multiverse Deb http:// Old-releases.ubuntu.com/ubuntu/xxxx-security main restricted universe multiverse Deb http://old-releases.ubuntu.com/ Ubuntu/xxxx-updates main restricted Universe Multiverse Deb Http://old-releases.ubuntu.com/ubuntu/xxxx-proposed main Restricted Universe Multiverse Deb Http://old-releases.ubuntu.com/ubuntu/xxxx-backports main restricted universe Multiverse deb-src http://old-releases.ubuntu.com/ubuntu/xxxx main restricted universe multiverse deb-src http:// Old-releases.ubuntu.com/ubuntu/xxxx-security main restricted universe multiverse deb-src http:// Old-releases.ubuntu.com/ubuntu/xxxx-updates main restricted universe multiverse deb-src http:// old-releases.ubuntu.com/ubuntu/xxxx-proposed main restricted universe multiverse deb-src http:// Old-releases.ubuntu.com/ubuntu/xxxx-backports main restricted universe multiverse 
Where the Deb represents the installation package file, the DEB-SRC representative is the installation source address, and they all have 5 configuration addresses that represent different upgrade configurations, and typically all 5 addresses use the same address.

When we configure a different Ubuntu version of the source, we need to replace the XXXX with the corresponding Ubuntu version code, otherwise configured source even if available, but the version may be problematic. 2, view the Ubuntu version Code of command:

Lsb_release-a
The output is usually as follows:

No LSB modules are available.
Distributor ID:	ubuntu
Description:	ubuntu 13.10 Release
:	13.10
codename:	<strong >saucy</strong>
Which codename behind is the version code, replace the above XXXX can


3. See if the update source is valid

Once we have found a source and changed the source address and version code, we also need to check if the source address is valid; that is, not all of the source addresses we found support all versions of Ubuntu. The view is to access the above HTTP path in the browser, will list a list of directories, we directly look at the Dists directory, if there is our Ubuntu version code of the corresponding directory, it means that the source is valid.

That is, if your Ubuntu version is code-named Saucy (13.10), the dists directory must have saucy subdirectories and 4 other subdirectories that begin with saucy.


4, update the source package

After you set up the update source, you need to update the Local pack list and use the command

sudo apt-get update
If there is no error with not found, there is no problem with the source

5, does not support the update of the Ubuntu version of the source

Some versions of Ubuntu are not permanently updated, so most of the domestic sources are not always supported, so how do you choose the source for this type of version? Ubuntu official still has a stop maintenance of the source address, usually directly replace the address for

http://old-releases.ubuntu.com/releases/
The Ubuntu version of the stop maintenance can be viewed here

Http://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8#.E5.81.9C.E6.AD.A2.E7.BB.B4.E6.8A.A4.E7.9A.84.E7.89.88.E6.9C.AC


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.