Ubuntu16.4 Replace the update source and ubuntu16.4 Replace the update
Paste content source https://www.cnblogs.com/Alier/p/6358447.html
1. Back up the original update source
Cp/etc/apt/sources. list/etc/apt/sources. list. if the backup prompts that the permission is insufficient, enter the following two lines, first enter the super user, and then back up sudo-scp/etc/apt/sources. list/etc/apt/sources. list. backup
2. Modify the update source
Open sources. list (this is the file that stores the update source)
sudo vim /etc/apt/sources.list
Copy, paste, and overwrite all the content in the sources. list file.
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricteddeb 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 universedeb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse
3. Make the update source valid
sudo apt-get update