头像

椰子

单身是因为还不够骚

《Windows10中 bash更换阿里云源》

 6月前  •   分享  •     •   84  •   0

1.查看Ubuntu的版本号, 应该是16.04, 对应的代号是xenial.

找到codename

lsb_release -a

 

2.备份内置数据源

cp /etc/apt/sources.list /etc/apt/sources.list_backup

3.编辑阿里云数据源

sudo vi /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-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

 

4.更新配置

sudo apt-get update

 

上一篇:
下一篇:

 评论


 已有0条评论

    还没有任何评论,你来说两句吧!