WSL 停止工作,出现错误:0x80070003

问题描述 投票:0回答:3

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.
windows-subsystem-for-linux wsl-2
3个回答
10
投票

检查您的个人资料中的

.wslconfig
文件夹中是否有
%USERPROFILE%
并将其删除!我终于成功了

FIY:https://github.com/microsoft/WSL/issues/3232#issuecomment-777023885


2
投票

我遇到了同样的问题,这是由于我错误地尝试删除已安装的发行版。如果您的情况相同,这应该很容易修复,请使用

wsl --unregister <DISTRO_NAME>
,在我的例子中是 debian,因此
wsl --unregister debian
取消注册 Debian 可执行文件的旧路径,然后再次安装 Debian。这适用于我的个人案例,但我认为它可能对互联网上的某人有所帮助。


0
投票

就我而言,问题始于以下错误:

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 问题,并尝试了我在网上找到的几乎所有内容,包括:

  • 删除 .wslconfig
  • 取消注册所有发行版
  • 运行
    wsl --uninstall
    并尝试重新安装
  • 禁用和重新启用 Windows 功能
  • 删除空的 Windows Subsystem for Linux 目录
  • 运行 Windows 更新故障排除
  • 通过设置卸载 WSL
  • 查看 BIOS 设置
  • 运行
    sfc
    DISM
    来修复系统
  • 跑步
    chkdsk
  • 查看权限

唯一有效的解决方案是对 Windows 11 进行就地修复,如本指南中所述。

这非常耗时且令人沮丧。希望这些信息能够为面临类似问题的其他人省去麻烦。

© www.soinside.com 2019 - 2024. All rights reserved.