WSL2 停止工作。当我重新安装 Linux 发行版时,单击启动按钮时会抛出以下错误:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 The system cannot find the path specified.
Press any key to continue...
wsl --help
命令工作正常
但是 wsl -l
命令和其他 wsl 命令会抛出以下错误
The system cannot find the path specified.
检查您的个人资料中的
.wslconfig
文件夹中是否有 %USERPROFILE%
并将其删除!我终于成功了
FIY:https://github.com/microsoft/WSL/issues/3232#issuecomment-777023885
我遇到了同样的问题,这是由于我错误地尝试删除已安装的发行版。如果您的情况相同,这应该很容易修复,请使用
wsl --unregister <DISTRO_NAME>
,在我的例子中是 debian,因此 wsl --unregister debian
取消注册 Debian 可执行文件的旧路径,然后再次安装 Debian。这适用于我的个人案例,但我认为它可能对互联网上的某人有所帮助。
就我而言,问题始于以下错误:
The system cannot find the path specified.
Error code: Wsl/Service/CreateInstance/CreateVm/HCS/ERROR_PATH_NOT_FOUND
Press Enter or Esc to exit...
最终演变成:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 The system cannot find the path specified.
经过无数个小时尝试解决 WSL 问题,并尝试了我在网上找到的几乎所有内容,包括:
wsl --uninstall
并尝试重新安装sfc
和 DISM
来修复系统chkdsk
唯一有效的解决方案是对 Windows 11 进行就地修复,如本指南中所述。
这非常耗时且令人沮丧。希望这些信息能够为面临类似问题的其他人省去麻烦。