简体   繁体   English

在 WSL 下安装任何 Linux 发行版时出现错误 0x80244018

[英]Error 0x80244018 installing any Linux distribution under WSL

I am trying to use WSL under Windows 10 Pro, and while WSL itself was installed without a problem, I cannot install any Linux distribution under it.我正在尝试在 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>

I did try disabling proxy, as I found in one of the posts, but instead of Error: 0x80244018 got Catastrophic Failure .正如我在其中一篇帖子中发现的那样,我确实尝试过禁用代理,但不是Error: 0x80244018 got Catastrophic Failure

Can anybody recommend what I can do to install a distro?有人可以推荐我可以做什么来安装发行版吗?

As I believe you've discovered (from your proxy comment), this error is usually due to a failure in the Windows Update service.我相信您已经发现(从您的代理评论中),此错误通常是由于 Windows 更新服务出现故障所致。 By default, WSL uses this service to install distributions from the Microsoft Store, but many other Windows components and applications use the service as well.默认情况下,WSL 使用此服务从 Microsoft Store 安装分发版,但许多其他 Windows 组件和应用程序也使用此服务。

While the information below may help with WSL, it's likely that you have a more significant issue that you'll need to resolve.虽然以下信息可能对 WSL 有所帮助,但您可能有更重要的问题需要解决。 If that's the case, you'll probably want to post a new question that is broader in scope, rather than just this one that focuses on WSL.如果是这种情况,您可能希望在 scope 中发布一个更广泛的新问题,而不仅仅是关注 WSL 的问题。

That said, my suggested workaround for installing WSL distributions would be to try:也就是说,我建议的安装 WSL 发行版的解决方法是尝试:

wsl --install --web-download Debian

The --web-download option skips the Store (and shouldn't use the Windows Update service), and will download the distribution directly then install it. --web-download选项会跳过应用商店(并且不应使用 Windows 更新服务),并会直接下载分发版然后进行安装。

Alternatively, if you can get access to a working Docker installation apart from this system, you could use the steps found inImport any Linux distribution to use with WSL .或者,如果您可以访问除此系统之外的工作 Docker 安装,则可以使用导入任何 Linux 分发以与 WSL 一起使用中找到的步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM