美文网首页
Ubuntu 更换软件源到阿里云

Ubuntu 更换软件源到阿里云

作者: AsaGuo | 来源:发表于2018-08-06 15:34 被阅读129次
  1. 备份原来的源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bakcup
  1. 编辑原来的源
sudo vim /etc/apt/sources.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-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
  1. 更新
sudo apt update

相关文章

网友评论

      本文标题:Ubuntu 更换软件源到阿里云

      本文链接:https://www.haomeiwen.com/subject/abkgvftx.html