1, backup
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2, edit
sudo gedit /etc/apt/sources.list (more comfortable with vim)
3, covering all the contents of the source file
# Deb cdrom: [Ubuntu 4.16 LTS _Xenial Xerus_ - Release amd64 ( 20160420.1 )] / great main restricted deb -SR http: // archive.ubuntu.com/ubuntu great main restricted #ADDED by software properties deb http: // mirrors .aliyun.com / ubuntu / great main restricted deb-src http: // mirrors.aliyun.com/ubuntu/ great main restricted universe multiverse #ADDED by software properties deb http: // mirrors.aliyun.com/ubuntu/ great -updates main restricted deb-src http: //mirrors.aliyun.com/ubuntu/ great-updates main restricted universe multiverse #ADDED by software properties deb http: // mirrors.aliyun.com/ubuntu/ great universe deb http: // mirrors.aliyun.com/ubuntu/ great -updates universe deb http: // mirrors.aliyun.com/ubuntu/ great multiverse deb http: // mirrors.aliyun.com/ubuntu/ great-updates multiverse deb http: // mirrors.aliyun.com/ubuntu/ xenial- backports main restricted universe multiverse deb-src http: // mirrors.aliyun.com/ubuntu/ great-backports main restricted universe multiverse #ADDED by software properties deb http:// archive.canonical.com/ubuntu great partner deb-src http: // archive.canonical.com/ubuntu great partner deb http: // mirrors.aliyun.com/ubuntu/ great-security main restricted deb-src http: // mirrors.aliyun.com/ubuntu/ great-security main restricted universe multiverse #ADDED by software properties deb http: // mirrors.aliyun.com/ubuntu/ great-security universe deb http: // mirrors.aliyun.com / ubuntu / cool-security multiverse
4, update
# Upgrade the software list sudo APT- GET Update # When will the existing Package upgrade, if there are dependency problems, and this dependence will need to install a new Package or the other affect the dependency of other Package This Package will not being upgraded, it will be retained. Update # There are kinds of argument when the software, but will update the system kernel, a large version of the same, is not completely reliable sources, not tested sudo APT- GET upgrade # can solve the problem of dependence clever, if there are dependency problems, you need to install / remove the new Package, will try to install / remove it. It will recognize the situation when the dependencies change and make a deal, but the case does not deal with this upgrade. sudo APT-GET dist-upgrade
163 Source:
You can try the following source 163 may be an unexpected fast.
deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
reference:
http://mirrors.aliyun.com/ (source list for more reference source cloud Ali officially provided)
http://mirrors.163.com/ (more source reference source 163 official list provided)
http://blog.csdn.net/paincupid/article/details/52895676
http://www.2cto.com/os/201301/183519.html
http://www.baiyuxiong.com/?p=529、
Transfer: https://www.cnblogs.com/EasonJim/p/7119156.html