Win10 子系统Linux初始配置--WSL

1.启用子系统

Win10 子系统Linux初始配置--WSL_第1张图片

勾选适用于Linux的Windows子系统,重启电脑。

2.应用商店下载linux

Win10 子系统Linux初始配置--WSL_第2张图片

点击下载

3.初始化

启动后,按照提示设置账号密码等

4.更换数据源

#备份数据源配置文件
cp /etc/apt/sources.list /etc/apt/sources.list_backup
#Ubuntu18.04下更改apt源为阿里云源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb 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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
#更新软件列表
sudo apt-get update
#更新软件包
sudo apt-get upgrade

 

你可能感兴趣的:(Win10 子系统Linux初始配置--WSL)