How to add Ubuntu software source

Source: Internet
Author: User
ArticleDirectory
    • Default software source
    • Change software source
    • Change Internet update attributes
    • Add software source by yourself
Ubuntu software source

We believe that the online update Design of Ubuntu is very convenient because it can improve the system installation speed, it also saves a lot of time for downloading and installing CD/DVD. (currently, multiple CD or DVDs are required for Linux distributions. for users with insufficient Internet bandwidth, this will often cause download difficulties ).

I wonder if you have thought about where the software is stored? Can I specify the download location? To solve this problem, you must mention the software repositories used by ubuntu ).

In ubuntu, the so-called "software source" refers to the software database placed on many servers in the world. Currently, there are about different software packages in the software source. Because the software source is open to all Ubuntu users for updates, you only need to regularly upload the latest version of the software in the software source to ensure that all users use the latest released software package.

Default software source

During Ubuntu installation, the system specifies the default software source based on the selected time zone to speed up downloading updates. For example, during installation, if the selected time zone is Shanghai, the system will specify the Chinese Ubuntu software source.

If you want to know the list of software sources currently used by the system, you must first open the/etc/APT/sources. list file. The following example shows my current computer settings, which lists the software source URLs for different purposes:

# Major bug fix updates produced after the final release of

# Distribution.

Deb http://cn.archive.ubuntu.com/ubuntu/ edgy-Updates main restricted multiverse universe

Deb-Src http://cn.archive.ubuntu.com/ubuntu/ edgy-Updates main restricted multiverse universe # added by software-Properties

# Uncomment the following two lines to add software from the 'Universe'

# Repository.

# N. B. software from this repository is entirely unsupported by the Ubuntu

# Team, and may not be under a free licence. please satisfy yourself as

# Your rights to use the software. Also, please note that software in

# Universe will not receive any review or updates from the Ubuntu Security

# Team.

# Deb http://cn.archive.ubuntu.com/ubuntu/ edgy universe

# Deb-Src http://cn.archive.ubuntu.com/ubuntu/ edgy universe

# Uncomment the following two lines to add software from the 'backports'

# Repository.

# N. B. software from this repository may not have been tested

# Extensively as that contained in the main release, although it except des

# Newer versions of some applications which may provide useful features.

# Also, please note that software in backports will not receive any review

# Or updates from the Ubuntu security team.

# Deb http://cn.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse

# Deb-Src http://cn.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse

Deb http://security.ubuntu.com/ubuntu edgy-security main restricted multiverse universe

Deb-Src http://security.ubuntu.com/ubuntu edgy-security main restricted multiverse universe # added by software-Properties

# Deb http://security.ubuntu.com/ubuntu edgy-security universe

# Deb-Src http://security.ubuntu.com/ubuntu (edgy-security universe)

Deb http://archive.canonical.com/ubuntu dapper-inclucial main

Http://archive.ubuntu.org.cn/ubuntu-cn dapper main universe multiverse restricted

Http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse

Deb http://archive.ubuntu.com/ubuntu/ edgy-Proposed universe main multiverse restricted

Deb-Src http://archive.ubuntu.com/ubuntu/ edgy- proposed universe main multiverse restricted

Deb http://archive.ubuntu.com/ubuntu/ edgy-backports universe main multiverse restricted

Deb-Src http://archive.ubuntu.com/ubuntu/ edgy-backports universe main multiverse restricted

Deb http://static.audacious-media-player.org/ubuntu dapper main

The Deb-Src http://static.audacious-media-player.org/ubuntu dapper main

Change software source

However, if you still try to connect to the default software source when you encounter certain unexpected situations, such as an international cable disconnection caused by an earthquake, or traveling abroad, software Update may fail.

Therefore, you need to change the location of the software source based on the actual situation. Of course, you can directly edit/etc/APT/sources. list file content. However, to avoid incorrect syntax and incorrect software source address, we recommend that you use the software source settings in the graphic interface.Program-- Synaptic.

To open the synaptic program, click the system/System Management/New Software Package Manager option. After you enter the password, the system opens the new software package manager window, as shown in Figure 3-8.

Then, at the top of the new software package manager window that appears, click the "set"/"software library" option. The system opens the "software source" window, as shown in 3-9.

Figure 3-8 "New Software Package Manager" Window

Figure 3-9 "software source" Window

In the image shown in Figure 3-9, you can select the software source location from the "Download from" drop-down list, or you can determine the software package type included in the update. The following types of software packages are available:

Universe: no open-source software officially maintained

Main: Open-Source Software officially maintained

Mulitverse: unofficial Open-Source Software (copyrighted or restricted)

Restricted: officially maintained non-open source software

Source code: source code

Change Internet update attributes

If you want to change the attributes and frequency of Internet update software packages, click the "Internet update" tab above and select the appropriate options as needed, as shown in 3-10.

Figure 3-10 click the "Internet update" tab

Add software source by yourself

To increase the number of software sources, you can also manually add them. Click the "third-party" tab in the upper-left corner, and then click the "add" button in the lower-left corner. The system displays an Information Window and requires you to enter the software source location, as shown in Figure 3-11.

Figure 3-11 Add a software source

You must use the "type location package type" syntax when entering the package. Below are examples provided in this book for your reference:

Deb http://hk.archive.ubuntu.com/ubuntu main

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.