1.备份系统自带源
mv /etc/apt/sources.list /etc/apt/sources.list.bak
2.修改/etc/apt/sources.list文件
vim /etc/apt/sources.list
加入如下内容
1 | deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties |
3.更新生效
apt-get update
1.备份系统自带源
mv /etc/apt/sources.list /etc/apt/sources.list.bak
2.修改/etc/apt/sources.list文件
vim /etc/apt/sources.list
加入如下内容
1 | deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties |
3.更新生效
apt-get update