ubuntu16.04更换镜像源
Posted Alvin2016
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu16.04更换镜像源相关的知识,希望对你有一定的参考价值。
1、备份原有
cp /etc/apt/sources.list /etc/apt/sources.list.old
2、打开阿里巴巴镜像源: https://opsx.alibaba.com/mirror,打开帮助找到
ubuntu 16.04 配置如下
deb http://mirrors.aliyun.com/ubuntu/ xenial main deb-src http://mirrors.aliyun.com/ubuntu/ xenial main deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main deb http://mirrors.aliyun.com/ubuntu/ xenial universe deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb http://mirrors.aliyun.com/ubuntu/ xenial-security main deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe
3、修改配置
vi /etc/apt/sources.list,删除原有配置内容,并将上面的找到的ubuntu16.04配置粘贴sources.list
结果如下:
4、sudo apt-get update更新镜像源
以上是关于ubuntu16.04更换镜像源的主要内容,如果未能解决你的问题,请参考以下文章