问题描述
我只是在尝试从 cmder 使用 WSL 时遇到此错误
wslbridge error: Failed to start backend process
note: backend error output: -v: -c: line 0: unexpected EOF while looking for matchi ng `''
-v: -c: line 1: Syntax error: unexpected end of file
ConEmuC: Root process was alive less than 10 sec,ExitCode=0.
Press Enter or Esc to close console...
有没有人怎么解决的?
解决方法
我找到了这个解决方案:
这是 ConEmu 的事情。整个 WSL 部分是针对 WSL 版本 1 的,我猜你正在运行 WSL 版本 2?
您需要一个新版本的 cygwin1.dll 在这里拿一个:https://cygwin.com/snapshots/ 转到 vendor\conemu-maximus5\ConEmu\wsl 并替换 dll。
您需要 wslbridge 2: 从这里获取:https://github.com/Biswa96/wslbridge2/releases(cygwin 版本) 复制内容到同一目录:vendor\conemu-maximus5\ConEmu\wsl
现在编辑您的 WSL bash 任务: 将“conemu-cyg-64.exe --wsl”部分替换为“conemu-cyg-64.exe %ConEmuBaseDirShort%\wsl\wslbridge2.exe”
现在可以使用了。
,使用命令 wsl.exe
创建一个新的配置文件。
取自 https://github.com/Maximus5/ConEmu/issues/1930#issuecomment-512882561; 对我有用。