Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
587 views
in Technique[技术] by (71.8m points)

windows subsystem for linux - problem trying to initiate a console with WSL 2 in CMDER

I have this error just trying to use WSL from cmder

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...

does anyone how to solve it?

question from:https://stackoverflow.com/questions/65929221/problem-trying-to-initiate-a-console-with-wsl-2-in-cmder

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I found this solution:

It is a ConEmu thing. The whole WSL part is for WSL version 1, I guess you are running WSL version 2?

You need a new version of cygwin1.dll Grab one here: https://cygwin.com/snapshots/ Go to vendorconemu-maximus5ConEmuwsl and replace the dll.

You need wslbridge 2: Grab it here: https://github.com/Biswa96/wslbridge2/releases (the cygwin version) Copy the content to the same directory: vendorconemu-maximus5ConEmuwsl

Now edit your WSL bash task: Replace the part "conemu-cyg-64.exe --wsl" with "conemu-cyg-64.exe %ConEmuBaseDirShort%wslwslbridge2.exe"

It works now.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...