1打开Linux 的 Windows 子系统
打开powershell并输入dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
2打开虚拟化
以管理员打开powershell输入下列命令dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
或进入BIOS主板设置打开虚拟化
下载Linux内核的更新包
设置WSL 2作为默认版本
在powershell中输入wsl --set-default-version 2
安装ubuntu
打开微软商店搜索ubuntu
选中图中的版本下载即可