【问题标题】:problem trying to initiate a console with WSL 2 in CMDER尝试在 CMDER 中使用 WSL 2 启动控制台时出现问题
【发布时间】:2021-01-28 00:05:07
【问题描述】:

我只是尝试从 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...

有没有人可以解决?

【问题讨论】:

    标签: windows-subsystem-for-linux cmder


    【解决方案1】:

    使用命令wsl.exe 创建一个新配置文件。

    取自 https://github.com/Maximus5/ConEmu/issues/1930#issuecomment-512882561; 它对我有用。

    【讨论】:

      【解决方案2】:

      我找到了这个解决方案:

      这是一个 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”

      现在可以了。

      【讨论】:

        猜你喜欢
        • 2020-04-25
        • 1970-01-01
        • 1970-01-01
        • 2020-07-23
        • 2017-05-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多