1. Insurance practice to back up your source files: cp -i /etc/apt/sources.list /etc/apt/sources.list_backup
2. Open sources.list: sudo gedit /etc/apt/sources.list
3. In the source file copy and paste the following in front of Ali cloud most of the source to a file, and then save and exit.
deb-src http: // archive.ubuntu.com/ubuntu great #ADDED main restricted 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/ xenial- 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/ great-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 / great-security multiverse
4.更新:sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade