Summary of sources. list of Ubuntu, ubuntusources. list

Source: Internet
Author: User
Tags aliyun

[Go] Summary of sources. list of Ubuntu, ubuntusources. list
I. Role

The/etc/apt/sources. list file is a common editable text file that stores the address of the source server updated by the ubuntu software. And sources. the same list function is/etc/apt/sources. list. d /*. list (* Indicates a file name, which can only consist of letters, numbers, underscores, and periods ). The *. list file under the sources. list. d directory provides a method for writing the source address to a separate file, which is usually used to install third-party software.

deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

The above is the content of the ubuntu official sources. list file, which has the following meanings:

The beginning of each line is deb or deb-src, indicating that the installation is done directly through the. deb file and through the source file.

The deb or deb-src field is followed by a URL followed by five strings separated by spaces, corresponding to the corresponding directory structure. Enter the secret in the browser. Select one of the directories to enter. You can see the directory structure corresponding to the last four columns of sources. list.

For more information, use man source. list.

 

2. Source Selection

Ubuntu has its own software source, and it is slow to obtain data directly from the official software source. By updating images from some sources in China, the download speed is generally faster than that from official sources. However, the download speed varies with sources in China. Here we provide a more detailed list of ubuntu software sources. I personally think that the method to select the ubuntu software source is to first select the source located in the same region and then perform the ping operation. The latency is not too high. Comparing the official ping data of aliyun, sohu, and ubuntu, we can find that the source of aliyun performs the best in latency.

Iii. causes and solutions for 404 not found problems with sudo apt-get install

Recently, when using the sudo apt-get install command on 12.10, 404 not found problem occurs. At this time, ping archive.ubuntu.com to ping, there is no quantal related directory under the http://archive.ubuntu.com/ubuntu/dists/ directory. The specific reason is that ubuntu 12.10 maintenance time does not exceed one year, after the corresponding time, the corresponding source files are transferred to the http://old-releases.ubuntu.com/ubuntu/dists/ directory. The version released by ubuntu can be seen from here. On the one hand, we can see the correspondence between the ubuntu digital version number and the English name, as well as the LTS logo ending with 04, marking long-term maintenance, the source of these versions remains in archive.ubuntu.com for a long time.

Solution:

1) Open the sources. list file using gedit

Sudo gedit/etc/apt/sources. list

2) enter the replacement page (Search-> Replace or ctrl + H) to perform the replacement operation.

4. Directly install the deb File

1) download the deb software kismet.

Curl https://www.kismetwireless.net/code/dists/quantal/kismet/binary-i386/kismet-2011.03.2.i386.deb> kismet-2011.03.2.i386.deb

2) install kismet

Dpkg-I kismet-2011.03.2.i386.deb

3) install related packages as prompted

Sudo apt-get install libnl2

V. References

[1] repository-How do you tell apt to use files in/etc/apt/sources. list. d-Ask Ubuntu

[2] source list-Ubuntu Chinese

[3] Releases-Ubuntu Wiki

[4] How to fix Ubuntu/Debian apt-get 404 Not Found Package Repository Errors (Saucy, Raring, Quantal, Oneiric, Natty ...) | SMyl. es

[5] How do I install a. deb file via the command line askubuntu

[6] Ubuntu. deb package installation method-program life-blog channel-CSDN. NET

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.