Install Ubuntu dual System series--replacement source

Source: Internet
Author: User

Ubuntu has a very useful command apt-get, it can help you to download the software, also can install, download and install the command is Apt-get install.

That Ubuntu by default is where to download the software, this can view the file/etc/apt/sources.list

But people often want to download software from a closer place, like their own school, their own company, so we need to replace the default source.

1. Backup Source Configuration file
sudo cp/etc/apt/sources.list/etc/apt/sources.list_backup

2. Edit the source configuration file
Vim/etc/apt/sources.list
Delete everything, just keep the topmost comment (because it is not available because you are afraid of formatting problems, so you want to keep the formatting.) )

3, to find the source of matching their own system, Baidu on a search a lot. Note to match your system, before you change the new source, check to see if the source you want to replace is really there. I remember I wanted to change the source of 14.10, online a lot, but the reality is not there.

For example, I find a 12.04 version of the source:

#电子科技大学 deb http: //ubuntu .uestc.edu.cn /ubuntu/ precise main restricted universe multiverse deb http: //ubuntu .uestc.edu.cn /ubuntu/ precise-backports main restricted universe multiverse deb http: //ubuntu .uestc.edu.cn /ubuntu/ precise-proposed main restricted universe multiverse deb http: //ubuntu .uestc.edu.cn /ubuntu/ precise-security main restricted universe multiverse deb http: //ubuntu .uestc.edu.cn /ubuntu/ precise-updates main restricted universe multiverse deb-src http: //ubuntu .uestc.edu.cn /ubuntu/ precise main restricted universe multiverse deb-src http: //ubuntu .uestc.edu.cn /ubuntu/ precise-backports main restricted universe multiverse deb-src http: //ubuntu .uestc.edu.cn /ubuntu/ precise-proposed main restricted universe multiverse deb-src http: //ubuntu .uestc.edu.cn /ubuntu/ precise-security main restricted universe multiverse deb-src http: //ubuntu .uestc.edu.cn /ubuntu/ precise-updates main restricted universe4, copy the above into the Sources.list file, and then refresh the list: #sudo apt-get update

Install Ubuntu dual System series--replacement source

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.