我正在尝试使用 WSL2 在我的 Windows 10 家庭版 20H2 OS Build 19042.685 上再次安装 Ubuntu。
问题是 WSL2 安装没有完成。我在执行第 5 步 - 将 WSL 2 设置为默认版本时收到以下消息
PS C:\WINDOWS\system32> wsl
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
Run Code Online (Sandbox Code Playgroud)
之前完成的步骤:
PS C:\WINDOWS\system32> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Deployment Image Servicing and Management tool
Version: 10.0.19041.572
Image Version: 10.0.19042.685
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
PS C:\WINDOWS\system32> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart …
Run Code Online (Sandbox Code Playgroud)