Let's talk about Ubuntu8.04HardyLTS software source settings

Source: Internet
Author: User
Article Title: Let's talk about Ubuntu8.04HardyLTS software source settings again. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Preface: Xiao F browsed many domestic and foreign websites and read many articles about Software source settings. He found many articles have misunderstandings about Software source settings, in order to allow new people to smoothly enter the family of Ubuntu, Xiao F made this article to introduce the software source settings in detail.

1. What is Software Sources?

In Ubuntu, a software source is a collection of addresses that can obtain software. The address can be a website, a CD, or a directory on a hard disk. There is a "software warehouse" on the software source, and various software are stored in the software warehouse. When you need a software, you can automatically download it and install it using a new tool (such as synaptic, apt-get, or aptitude.

2. What convenience can I get when Software Sources are set up?

Routine software installation or update is performed by obtaining software packages from the software source. Setting software sources allows you to obtain important security updates in a timely manner to solve security risks, or fix known problems to make it easier to use. Setting software sources can also speed up the above operations and save valuable time.

3. I am a newbie. I will not set it. Is there a simple graphical interface for setting?

The Ubuntu System-System management (Administration) Menu provides the Software source setting (Software Sources) program on the graphical interface, this is not enough! (For more information about the setting method, see the following link)

4. Correct settings!

Before modifying the settings, back up the original settings. This step seems redundant. It is actually a good habit and is conducive to the recovery of configuration errors. Backup method: press Alt + F2, and then enter gksu cp/etc/apt/sources. list/etc/apt/sources. list-backup. Press enter and enter your password.

Then open the setup program: System-System management-Software Sources ). On the first tab, click the menu on the right of "Download From" and select "Others... (Others ...)". In the displayed window, click Select Best Server )". The system will automatically ping the servers in the official server list and select the fastest server!

Press Alt + F2 to open "Run Application" and enter gksu gedit/etc/apt/sources. list. Enter your password if you are prompted. Move the cursor to the end of the file.

(1) Telecom Users Add the following content:

deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu-cn hardy main restricted universe multiversedeb http://us.archive.ubuntu.com/ubuntu/ hardy main restricteddeb-src http://us.archive.ubuntu.com/ubuntu/ hardy restricted main universedeb http://us.archive.ubuntu.com/ubuntu/ hardy universedeb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universedeb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universedeb http://archive.ubuntu.com/ubuntu/ hardy main restricteddeb-src http://archive.ubuntu.com/ubuntu/ hardy restricted main universedeb http://archive.ubuntu.com/ubuntu/ hardy universedeb http://archive.ubuntu.com/ubuntu/ hardy-updates universedeb-src http://archive.ubuntu.com/ubuntu/ hardy-updates universe #Added by software-propertiesdeb http://security.ubuntu.com/ubuntu hardy-security main restricteddeb-src http://security.ubuntu.com/ubuntu hardy-security restricted main universedeb http://security.ubuntu.com/ubuntu hardy-security universe

(2) Add the following content to Netcom/CERNET users:

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiversedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy main restricted universe multiversedeb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiversedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-updates main restricted universe multiversedeb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiversedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-backports main restricted universe multiversedeb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiversedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-security main restricted universe multiversedeb http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main multiverse restricted universedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ hardy-proposed main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu-cn hardy main restricted universe multiversedeb http://us.archive.ubuntu.com/ubuntu/ hardy main restricteddeb-src http://us.archive.ubuntu.com/ubuntu/ hardy restricted main universedeb http://us.archive.ubuntu.com/ubuntu/ hardy universedeb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universedeb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universedeb http://archive.ubuntu.com/ubuntu/ hardy main restricteddeb-src http://archive.ubuntu.com/ubuntu/ hardy restricted main universedeb http://archive.ubuntu.com/ubuntu/ hardy universedeb http://archive.ubuntu.com/ubuntu/ hardy-updates universedeb-src http://archive.ubuntu.com/ubuntu/ hardy-updates universe #Added by software-propertiesdeb http://security.ubuntu.com/ubuntu hardy-security main restricteddeb-src http://security.ubuntu.com/ubuntu hardy-security restricted main universedeb http://security.ubuntu.com/ubuntu hardy-security universe

Then press Ctrl + S to save the document and close the window.

5. Why should I set up so many foreign sources?

Ubuntu projects are jointly maintained by fans around the world, so it is difficult to synchronize updates to server files. As Ubuntu's main server is located in Europe, the project team is located in Norway, while English is the most widely used language among Ubuntu users, therefore, the latest version will soon be released to the European main source and US source of Ubuntu. At the same time, Ubuntu update sources in China often have software packages missing. Therefore, we recommend that you set up official sources in Europe and the United States.

6. Is the higher the source speed?

Unfortunately, Ubuntu software management programs do not have the ability to automatically determine the fastest source. Therefore, no matter how many sources you have set, Ubuntu only finds the source that provides the corresponding software package download and connects to download in the order of the source list. Therefore, we asked Ubuntu to automatically find the fastest source at the time of configuration, and then add the source that may be supplemented to the end. On the contrary, setting too many sources reduces the update speed (apt-get update.

Appendix: List of common software sources not in the official source list (you can try it faster, but do not remove foreign sources)

[1] [2] Next page

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.