WSL error "it can't find the path specified"

https://huaweicloud.csdn.net/6356079bd3efff3090b58e82.html

用 powershell 输入以下命令检查是否有路径无效:

·@($env:path -split ";").ForEach({ if($_) {$result = 'MISSING |';if(Test-Path -path $_) { $result = ' OK |'};-join($result, ' ', $_); }})

然后使用 process monitor 找到残留脚本调用的地址 path
process monitor 下载地址:https://learn.microsoft.com/en-us/sysinternals/downloads/procmon

image

或者 更新一下 wsl

wsl --update

posted @ 2024-05-31 23:44  灵火  阅读(3)  评论(0编辑  收藏  举报