Ubuntu, when we use apt installed software, will use the official website to download software, but because of the domestic transfer too much, and the speed of the download is very slow, we can be replaced by some intermediate nodes to download, such as Ali, Zhong Ke source, Tsinghua Source and so on, such a site, They will be synchronized and updated regularly with the official source, and we will synchronize them directly, the speed is much faster than the direct synchronization of the official source, this can greatly increase the speed of our download software.
First, Ubuntu system replacement Source
Files are stored in the APT folder
So go to the folder first
Cd/etc/apt
To back up files before you modify them
sudo cp sources.list Sources.list.bak
To modify a file
sudo vi sources.list
Second, delete the other contents of sources.list, any choice of the content of a source copy paste into, save, for example, select Ali Source
2.1 Ali Source
DEB-SRC http://archive.ubuntu.com/ubuntu xenial main restricted #Added by Software-propertiesdeb/HTTP/ Mirrors.aliyun.com/ubuntu/xenial main RESTRICTEDDEB-SRC http://mirrors.aliyun.com/ubuntu/xenial main restricted Multiverse Universe #Added by Software-propertiesdeb Http://mirrors.aliyun.com/ubuntu/xenial-updates Main RESTRICTEDDEB-SRC http://mirrors.aliyun.com/ubuntu/xenial-updates main restricted Multiverse universe #Added by Software-propertiesdeb http://mirrors.aliyun.com/ubuntu/xenial Universedeb http://mirrors.aliyun.com/ubuntu/ Xenial-updates universedeb http://mirrors.aliyun.com/ubuntu/xenial multiversedeb http://mirrors.aliyun.com/ubuntu/ Xenial-updates multiversedeb http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe MULTIVERSEDEB-SRC http://mirrors.aliyun.com/ubuntu/xenial-backports main restricted universe Multiverse #Added by Software-propertiesdeb Http://archive.canonical.com/ubuntu xenial partnerdeb-src http://archive.canonical.com/ Ubuntu Xenial partnerdeb http://mirrors.aliyun.com/ubuntu/xenial-security main RESTRICTEDDEB-SRC http://mirrors.aliyun.com /ubuntu/xenial-security main restricted Multiverse Universe #Added by Software-propertiesdeb http://mirrors.aliyun.com /ubuntu/xenial-security Universedeb http://mirrors.aliyun.com/ubuntu/xenial-security Multiverse
2.2 Tohoku University source
DEB-SRC http://mirror.neu.edu.cn/ubuntu/xenial main restricted #Added by Software-propertiesdeb/HTTP// Mirror.neu.edu.cn/ubuntu/xenial main RESTRICTEDDEB-SRC http://mirror.neu.edu.cn/ubuntu/xenial restricted multiverse Universe #Added by Software-propertiesdeb http://mirror.neu.edu.cn/ubuntu/xenial-updates main RESTRICTEDDEB-SRC http ://mirror.neu.edu.cn/ubuntu/xenial-updates main restricted Multiverse Universe #Added by Software-propertiesdeb http:/ /mirror.neu.edu.cn/ubuntu/xenial universedeb http://mirror.neu.edu.cn/ubuntu/xenial-updates universedeb/http Mirror.neu.edu.cn/ubuntu/xenial multiversedeb http://mirror.neu.edu.cn/ubuntu/xenial-updates multiversedeb/http Mirror.neu.edu.cn/ubuntu/xenial-backports main restricted universe multiversedeb-src http://mirror.neu.edu.cn/ Ubuntu/xenial-backports main restricted universe Multiverse #Added by Software-propertiesdeb/HTTP/ Archive.canonical.com/ubuntu xenial partner Deb-src Http://archive.canonical.com/ubuntu xenial PartneRdeb http://mirror.neu.edu.cn/ubuntu/xenial-security main RESTRICTEDDEB-SRC http://mirror.neu.edu.cn/ubuntu/ Xenial-security main restricted Multiverse Universe #Added by Software-propertiesdeb http://mirror.neu.edu.cn/ubuntu/ Xenial-security Universedeb http://mirror.neu.edu.cn/ubuntu/xenial-security Multiverse
2.3 Tsinghua University Source
Deb Http://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial main Restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ Ubuntu/xenial-updates main restricteddeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial universedeb/http Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-updates Universedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial Multiversedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-updates Multiversedeb/http Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-backports main restricted Universe Multiversedeb/HTTP Mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-security Main Restricteddeb Http://mirrors.tuna.tsinghua.edu.cn/ubuntu /Xenial-security Universe Deb Http://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenial-security Multiverse
Third, update the download source
sudo apt-get update
Ubuntu to replace the download source