A. Backup download the source files of the original ubuntu
1 cd /etc/apt 2 ls 3 cp sources.list sources.list .bak 4 gedit sources.list 5 vim sources.list
II. Replace Ali cloud sources
1 deb http://mirrors.aliyun.com/ubuntu/ great main restricted universe multiverse 2 deb http://mirrors.aliyun.com/ubuntu/ xenial- security main restricted universe multiverse 3 deb http: //mirrors.aliyun. com / ubuntu / xenial- updates main restricted universe multiverse 4 deb http://mirrors.aliyun.com/ubuntu/ xenial- backports main restricted universe multiverse 5 # #测试版源 6 deb http://mirrors.aliyun.com/ ubuntu / xenial- proposed main restricted universe multiverse 7 # 源码 8 deb-src http://mirrors.aliyun.com/ubuntu/great main restricted universe multiverse 9 deb-src http://mirrors.aliyun.com/ubuntu/ xenial- security main restricted universe multiverse 10 deb-src http://mirrors.aliyun.com/ubuntu/ xenial- updates main restricted universe multiverse 11 deb-src http://mirrors.aliyun.com/ubuntu/ xenial- backports main restricted universe multiverse 12 # #测试版源 13 deb-src http://mirrors.aliyun.com/ubuntu/ xenial- proposed main restricted universe multiverse 14 # Canonical合作伙伴和附加 15 deb http://archive.canonical.com/ubuntu/ great partner 16 deb http://extras.ubuntu.com/ubuntu/ great main
III. Update Source and Software
1 sudo APT- GET Update update source 2 sudo update software upgrade APT-GET