WSL命令无法使用求助:CMD/PowerShell执行WSL命令均提示“The system cannot find the file specified.”
WSL命令无法使用求助:CMD/PowerShell执行WSL命令均提示“The system cannot find the file specified.”
各位好,我最近在更新Docker的时候碰到了个头疼的问题——不管是在CMD还是PowerShell里操作(哪怕用管理员权限运行终端),执行任何WSL相关命令都会报错:"The system cannot find the file specified."
我已经试过这些办法,但都没能解决问题:
- 用Windows功能里的「关闭再开启WSL和虚拟机平台(VMP)」功能,重启电脑后问题还是存在
- 尝试通过
dism.exe命令先禁用再启用WSL组件,命令执行过程是正常的,而且返回了WSL已成功启用的信息,具体输出如下:
Deployment Image Servicing and Management tool Version: 10.0.22621.2792 Image Version: 10.0.22631.4037 Feature Information: Feature Name : Microsoft-Windows-Subsystem-Linux Display Name : Windows Subsystem for Linux Description : Provides services and environments for running native user-mode Linux shells and tools on Windows. Restart Required : Possible State : Enabled Custom Properties: ServerComponent\Description : Provides services and environments for running native user-mode Linux shells and tools on Windows. ServerComponent\DisplayName : Windows Subsystem for Linux ServerComponent\Id : 1033 ServerComponent\Type : Feature ServerComponent\UniqueName : Microsoft-Windows-...
现在实在没思路了,有没有大佬能帮忙分析下问题根源,或者给点新的排查方向呀?
备注:内容来源于stack exchange,提问作者Trung Hiếu Trần
相关产品推荐
相关产品推荐

