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 universe
4, copy the above into the Sources.list file, and then refresh the list: #sudo apt-get update
Install Ubuntu dual System series--replacement source