Win10中内置Linux更换阿里源

来源:互联网 发布:淘宝直播好做吗 编辑:程序博客网 时间:2024/05/19 12:13

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 multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse# 源码deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

4.更新配置

sudo apt-get update


注意: 在网上找阿里云源的时候一定要看对版本代码.

原创粉丝点击