You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 15:08:07