Windows 上的 Ubuntu 显示 WSL 未启用,即使 Windows 显示 WSL 已启用

Windows 上的 Ubuntu 显示 WSL 未启用,即使 Windows 显示 WSL 已启用

当我启动 Ubuntu 时,收到以下错误:

The WSL optional component is not enabled. Please enable it and try again.
See https://aka.ms/wslinstall for details.
Error: 0x8007007e
Press any key to continue...

但是,当我使用检查 PowerShell 中的功能时Get-WindowsOptionalFeature -Online,我看到以下内容:

FeatureName : Microsoft-Windows-Subsystem-Linux
State       : Enabled

我将非常感激任何帮助。

答案1

搜索完此帖子后https://github.com/Microsoft/WSL/issues/2316我决定尝试禁用 WSL、重新启动,启用 WSL、重新启动并启动 Ubuntu 似乎已经解决了该问题。似乎是由于从 Windows 商店安装应用程序时处理依赖项的方式存在错误。

相关内容