-
在“控制面板>程序>启用或关闭Windows功能”中勾选“适用于Linux的Windows子系统”,然后重启电脑。
-
在Windows Store中搜索Ubuntu,然后选择一个版本完成下载和安装。
-
第一次启动时需要等待一段时间让子系统完成安装工作,为系统设置一个默认用户和密码,然后就能在Windows上使用Linux了。
备注
- 让子系统使用阿里云国内源解决下载缓慢的问题
先备份/etc/apt/sources.list文件,然后修改为下面的内容:
deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe - 子系统在Windows平台上的文件地址:
C:\Users\Linzijie\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs