Ubuntu (Kylin) 16.04 换源阿里云

1、 备份原来的源(好习惯)

cd /etc/apt/
cp sources.list sources.list.bak

2、换源 gedit /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-backports main restricted universe multiverse  
##测试版源  
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed 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-backports main restricted universe multiverse  
##测试版源  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse

3、更新源和软件

sudo apt-get update 更新源  
sudo apt-get upgrade 更新软件 

4、重启

5、效果

进入 目录 /etc/apt , 双击 sources.list

Ubuntu (Kylin) 16.04 换源阿里云_第1张图片

 

你可能感兴趣的:(Linux,ubuntu,kylin,阿里云,Kylin,16.04,换源)