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

前端之家收集整理的这篇文章主要介绍了Ubuntu 17 更改国内阿里云镜像源前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

查看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://www.f2er.com/ubuntu/350697.html

猜你在找的Ubuntu相关文章