ubuntu16.04设置阿里云镜像源

Step1:阿里云官方镜像站https://developer.aliyun.com/mirror/

Step2:找到ubuntu,找到对应版本的镜像地址,复制
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

Step3:备份/etc/apt/sources.list为sources.list-bak

Step4: 修改sources.list(ggdG清空后粘贴复制的文本,保存)

Step5: sudo apt-get update更新镜像源

你可能感兴趣的:(ubuntu16.04设置阿里云镜像源)