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


2

启动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

不胜感激。

Answers:


0

在搜索了该线程https://github.com/Microsoft/WSL/issues/2316之后,我决定尝试禁用WSL,重新启动,启用WSL,重新启动和启动Ubuntu似乎已经解决了问题。看来是由于从Windows应用商店安装应用程序时如何处理依赖项的错误所致。


听起来好像您在运行1703时安装了可选功能,并且升级到1709之后就再也没有想过要重新安装它。在那种情况下,第一个错误确实是正确的,该功能的最终版本确实没有安装。安装的是Beta功能和Ubuntu的旧版WSL实例,但您误以为试图启动Ubuntu的更新的Windows Store WSL实例。
Ramhound18年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.