dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
执行命令后需要重启电脑以完成 WSL 安装并更新到 WSL 2
x64下载地址:
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
arm下载地址:
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_arm64.msi
wsl --set-default-version 2
之后就可以到 Microsoft Store下载安装Linux系统了