WSL2安装

下载适用于 x64 计算机的最新 WSL2 Linux 内核更新包
https://docs.microsoft.com/zh-cn/windows/wsl/wsl2-kernel
启用“适用于 Linux 的 Windows 子系统”可选功能
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
启用“虚拟机平台”可选功能
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
将 WSL 2 设置为默认版本
wsl --set-default-version 2
安装所选的 Linux 分发版
打开 Microsoft Store,并选择你偏好的 Linux 分发版
Ubuntu 16.04 LTS
Ubuntu 18.04 LTS
openSUSE Leap 15.1
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 15 SP1
Kali Linux
Debian GNU/Linux
Fedora Remix for WSL
Pengwin
Pengwin Enterprise
Alpine WSL

参考链接
https://docs.microsoft.com/zh-cn/windows/wsl/install-win10#update-to-wsl-2

猜你喜欢

转载自www.cnblogs.com/kylingx/p/12984135.html