安装 Ubuntu 22.04 LTS 时出错。
可能的解决方案:
wsl --set-default-version 2并完成!问题解决了!Cho*_*Sun 36
我输入wsl --update并安装了新版本的 wsl。然后我安装了 Ubuntu 并且wsl --install -d ubuntu它工作了。
我想为这个问题提供另一种解决方案。简而言之,问题是wsl内核更新包安装引起的。
按照本页旧版本 WSL 的手动安装步骤所述的步骤进行操作,但在安装时仍然出现相同的问题。怎么会?单击 wsl_update_x64.msi 安装后,它告诉我内核更新已完善,但仍然无法Ubuntu 22.04 LTS安装0x800701bc error code. 我意识到内核更新信息可能是负面的/失败的,可以尝试手动解决一些问题WSL 2 需要更新 Github Issue #5014。
根据 github 上的 onomatopellan 的回答,我可以在解决此问题后安装 Ubuntu 22.04 LTS。
For WSL2 you will need 2 Windows components so make sure they are already enabled:
Microsoft-Windows-Subsystem-Linux
VirtualMachinePlatform
Also it seems some people have problems with the installer extracting the kernel.
You can always extract it manually with:
msiexec /a "wsl_update_x64.msi" /qb TARGETDIR="C:\temp"
and then copy the kernel file from C:\temp to C:\Windows\System32\lxss\tools
Final version shouldn't have this problem since the install comes from Windows Update.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
71914 次 |
| 最近记录: |