windows子系统安装ubuntu,修改成阿里云安装源

一直用centos,最近发现ubuntu也挺好,这么好用的系统居然出自南非,真令中华大地的码农汗颜。

 

 

修改源文件

vi /etc/apt/source.list

 

清空改成阿里云的内容:

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

 

 

 

完成,切记要再用sudo apt-get update 更新一下,即可。 

然后发现比自带的官方源快多了。

你可能感兴趣的:(windows子系统安装ubuntu,修改成阿里云安装源)