我正在尝试在 Windows 10 Pro 下使用 WSL,虽然 WSL 本身安装没有问题,但我无法在其下安装任何 Linux 发行版。
PS C:\WINDOWS\system32> wsl --version
WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19042.2486
PS C:\WINDOWS\system32> wsl -l
Windows Subsystem for Linux has no installed distributions.
Use 'wsl.exe --list --online' to list available distributions
and 'wsl.exe --install <Distro>' to install.
Distributions can also be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND
PS C:\WINDOWS\system32> wsl -l -o
The following is a list of valid distributions that can be installed.
Install using 'wsl.exe --install <Distro>'.
NAME FRIENDLY NAME
Ubuntu Ubuntu
Debian Debian GNU/Linux
kali-linux Kali Linux Rolling
SLES-12 SUSE Linux Enterprise Server v12
SLES-15 SUSE Linux Enterprise Server v15
Ubuntu-18.04 Ubuntu 18.04 LTS
Ubuntu-20.04 Ubuntu 20.04 LTS
Ubuntu-22.04 Ubuntu 22.04 LTS
OracleLinux_8_5 Oracle Linux 8.5
OracleLinux_7_9 Oracle Linux 7.9
PS C:\WINDOWS\system32> wsl --install Ubuntu
Installing: Ubuntu
Error: 0x80244018 0.0% ]
Error code: Wsl/InstallDistro/0x80244018
PS C:\WINDOWS\system32> wsl --install Debian
Installing: Debian GNU/Linux
Error: 0x80244018 0.0% ]
Error code: Wsl/InstallDistro/0x80244018
PS C:\WINDOWS\system32>
正如我在其中一篇帖子中发现的那样,我确实尝试过禁用代理,但没有尝试禁用Error: 0x80244018
代理Catastrophic Failure
。
有人可以推荐我可以做什么来安装发行版吗?
我相信您已经发现(从您的代理评论中),此错误通常是由于 Windows 更新服务失败造成的。默认情况下,WSL 使用此服务从 Microsoft Store 安装分发,但许多其他 Windows 组件和应用程序也使用此服务。
虽然以下信息可能对 WSL 有所帮助,但您可能有更重要的问题需要解决。如果是这种情况,您可能想要发布一个范围更广的新问题,而不仅仅是这个关注 WSL 的问题。
也就是说,我建议的安装 WSL 发行版的解决方法是尝试:
该
--web-download
选项会跳过应用商店(并且不应使用 Windows 更新服务),并会直接下载分发版然后进行安装。或者,如果您可以访问除此系统之外的工作 Docker 安装,则可以使用导入任何 Linux 发行版以与 WSL 一起使用中找到的步骤。