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