Ubuntu Configure any version of Apt-get image

Source: Internet
Author: User

We know that, so far, Ubuntu has a number of distributions, such as 11.04, 11.10, that are now the newest 16.*. And we usually install software through Apt-get, if the OS version is different, then the configuration of the mirror source is different, otherwise there will be no corresponding software, software version mismatch and a series of strange problems. Here, I'll tell you how to configure a different version of the image source. Here, I will take NetEase's image source as an example.
Search "NetEase apt-get source", basic can search to the following content. As a new author of Ubuntu, I foolishly think that this configuration conforms to all versions, and as a result, there is a problem with the above-mentioned version mismatch between the installation software and the dependency package.

deb http://mirrors.163.com/ubuntu/ codename main restricted universe  multiversedeb http://mirrors.163.com/ubuntu/ codename-security main restricted  universe multiversedeb http://mirrors.163.com/ubuntu/ codename-updates main  restricted universe multiversedeb http://mirrors.163.com/ubuntu/ codename-proposed  main restricted universe multiversedeb http://mirrors.163.com/ubuntu/  codename-backports main restricted universe multiversedeb-src http://mirrors.163.com/ ubuntu/ codename main restricted universe multiversedeb-src http:// Mirrors.163.com/ubuntu/ codename-security main restricted universe multiversedeb-src  http://mirrors.163.com/ubuntu/ Codename-updates main restricted universe  Multiversedeb-src http://mirrors.163.com/ubuntu/ codename-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/  Codename-backports main restricted universe multiverse

In the above configuration, the version is the keyword "codename", which is a form of Ubuntu expression version (Ubuntu called it as codename), which corresponds to a distribution version. The corresponding relationship between version number and codename is the following table. This only needs to replace the above codename string with the specific codename in the following.

Version number Codename11.04:natty11.10:oneiric12.04:precise12.10:quantal13.04:raring13.10:saucy14.04:trusty1 4.10:utopic15.04:vivid15.10:wily ...

If you don't know codename, just enter the command "Lsb_release-a" in the Ubuntu command line to display its codename. As below, Trusty is the codename of 14.04.

# Lsb_release-ano LSB modules is available. Distributor ID:UbuntuDescription:Ubuntu 14.04 Ltsrelease:14.04codename:trusty

Replace the modified configuration with/etc/apt/sources.list, then enter Apt-get Update, and after updating the index, you can install the software through the Apt-get installation.


Ubuntu Configure any version of Apt-get image

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.