Windows 更新破坏了 Linux 2 的 Windows 子系统

fff*_*ost 8 windows windows-subsystem-for-linux wsl2

我一直在使用 Windows Subsystem for Linux 2,但是在应用了等待了一段时间的 Windows 更新后,现在当我打开 Ubuntu 终端应用程序时,它是空白的,我无法输入:

  • 保持打开状态后,最终输出:
    Installing, this may take a few minutes...
    
      WslRegisterDistribution failed with error: 0x80080005
      Error: 0x80080005 Server execution failed
    
      Press any key to continue...
    
    Run Code Online (Sandbox Code Playgroud)
  • Installing, this may take a few minutes...
    
      WslRegisterDistribution failed with error: 0x80080005
      Error: 0x80080005 Server execution failed
    
      Press any key to continue...
    
    Run Code Online (Sandbox Code Playgroud)

我似乎还找不到任何相关信息;有人知道该怎么办吗?

Sum*_*uma 8

正如JosefZ所评论的,以下过程解决了该问题:

  • 运行(Win+ Roptionalfeatures.exe
  • 取消选中适用于 Linux 的 Windows 子系统,然后单击OK 允许系统在出现提示时重新启动
  • 再次运行 ( Win+ R)optionalfeatures.exe
  • 勾选适用于 Linux 的 Windows 子系统并单击OK

这将有效地卸载 WSL 并再次安装。

现有的 WSL 安装似乎不受此过程的任何影响(它们看起来与以前完全相同)。