ubuntu16 update apt source

1. Backup system comes source
mv /etc/apt/sources.list /etc/apt/sources.list.bak

2. Modify /etc/apt/sources.list file
vim /etc/apt/sources.list

加入如下内容:
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 / 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/ 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 / cool-security multiverse

3. Update the entry into force
apt-get update

Guess you like

Origin www.cnblogs.com/nan424164292/p/11617386.html