win10中WSL升级为WSL2后cmder无法启动cmder:bash

Conemu doesn’t work with wsl since windows update

源网址链接

问题描述:

  • wslbridge error: failed to start backend process
    note: backend error output: -v: -c: line 0: unexpected EOF while looking for matching `’’
    -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…

解决方案:

A GitHub user posted this workaround which worked for me:
I've fixed the issue by doing this:
1. 先下载这个,解压,将其复制替换原文件,我的安装目录文件位置: cmder\vendor\conemu-maximus5\ConEmu\wsl
  • Download latest cygwin1-20200531.dll.xz from https://cygwin.com/snapshots/ and unpack the file as cygwin1.dll into ConEmu\wsl\ (replacing the original file there)
2. 再下载这个,解压,将其复制替换原文件,我的安装目录文件位置: cmder\vendor\conemu-maximus5\ConEmu\wsl
  • Download @Biswa96’s wslbridge2 from https://github.com/Biswa96/wslbridge2/releases and unpack to the same directory
3. 打开设置,启动-任务,修改启动命令
  • Replacing {WSL::bash} task’s Command with:

    set “PATH=%ConEmuBaseDirShort%\wsl;%PATH%” & %ConEmuBaseDirShort%\conemu-cyg-64.exe %ConEmuBaseDirShort%\wsl\wslbridge2.exe -cur_console:pm:/mnt -eConEmuBuild -eConEmuPID -eConEmuServerPID -l

问题解决:

  • I can now access my Ubuntu under W10 just like before the W10 upgrade. Backscroll and arrows in VIM work as expected.
    The key part of step 3 is to replace conemu-cyg-64.exe --wsl with conemu-cyg-64.exe %ConEmuBaseDirShort%\wsl\wslbridge2.exe.
    Longer term, it looks like the author of ConEmu is working on switching to the new Windows PTY API, which will eliminate the need for the wslbridge hack (and many others) entirely.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值