Ubuntu 17 更改国内阿里云镜像源

原文链接: https://my.oschina.net/SethFeng/blog/1560174

查看Ubuntu发行名称

~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 17.04
Release:	17.04
Codename:	zesty
这里记下Codename=zesty

阿里云镜像地址

https://mirrors.aliyun.com/help/ubuntu 帮组文档

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

进行修改

~$ sudo cp /etc/apt/sources.list  /etc/apt/sources.list.bak
~$ sudo vi /etc/apt/sources.list
把地址  deb http://mirrors.aliyun.com/ubuntu/ quantal 的quantal全部替换为我们查到的zesty就可以了。

更新

~$ sudo apt update

转载于:https://my.oschina.net/SethFeng/blog/1560174

你可能感兴趣的:(Ubuntu 17 更改国内阿里云镜像源)