更换 ubuntu16.04 安装源

1.备份

cd /etc/apt
sudo cp sources.list sources.list.backup

 

 

2.用新的文件替换掉soures.list

deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

 

3.更新

sudo apt-get update

 

  

posted @ 2017-02-10 12:18  gabin  阅读(5404)  评论(0编辑  收藏  举报