-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wsltty exits immediately after Windows 11 update KB5032190 #343
Comments
Possibly duplicate of #342. What does |
Same issue. C:\Users\zzz>wsl --version C:\Users\zzz>wsl -l -v
|
PS C:\Users\bbth> wsl -l -v
|
In addition, running opens a window with the following text: /bin/wslbridge2: Exit 1. |
Same,
Emacs28 runs happily, and runs /bin/bash in ansi-term. |
What I meant above is: please try |
Forcing WSLv1 allows wsltty to run again without issue for me. More details, hopefully this helps for troubleshooting: I have a similar issue, although I do not appear to have KB5032190 installed. In fact, I am on Windows 10, version 22H2. wsltty had been working just fine until this morning. The only Windows update patch that I see was recently installed is KB4023057, aside from Microsoft Defender updates. I am using wsltty 3.7.0. Executing wslbridge2.exe shows this message which looks similar to analytic-garden's previous comment, just not trimmed:
This is with WSLv2:
WSL version:
|
One other oddity, which may or may not be related, my hand-crafted /etc/resolv.conf was obliterated at the same time wsltty issues started. I had previously configured WSL to not generate this file on startup, which it did not, so I ended up with no /etc/resolv.conf at all. |
I've added a hint to use WSL V1 to the project page. |
|
Recntly I've been getting the following error launching wslbridge.exe:
WSL Version:
I think it might be down to KB5031455 Windows update as WSLtty still works ok on another machine without this update. Windows version:
|
I have same issue(have tried WSLTTY 3.6.5 or 3.7.0). I try to start For state of WSL instance is
For state of WSL instance is
If the state is My WSL Version:
WSL: You can download WSL releases release for older version. |
Hello! Downgrading WSL to The implementation of COM API |
same issue here with WSL v2 |
I have the same issue with WSL v2
which should be the same (japanese) message as "The supplied kernel information version is invalid" in #343 (comment)
which also should be the same versions as in #343 (comment) |
I have a Cygwin terminal installed. It is mintty 3.1.0. It works with WSL2. |
Same issue here with Ubuntu 20.04.6 LTS on WSL v2. Downgrading to WSL v1 is kind of a non-starter for me. I have little choice but to go with another terminal until such time as this one is fixed (which is unfortunate as this is my favorite WSL terminal by a country mile!) |
@MaxwellWibert
Hope this helps. We don't need to give up such a wonderful terminal! |
As a user who prefers wsltty to other terminals, there's no way I'm messing with WSL to keep wsltty. I'll have to learn to deal with another terminal until you guys can fix the problem. |
I'm not a developer of wsltty, just a heavy user of it. I just needed a workaround because I can't work without Emacs on wsltty. |
Thanks for pointing out the 1.3.17 release as a workaround, I've updated the project page to reflect this. For an adaptation (which I wouldn't call a fix as it's not really broken, rather Windows API documentation is broken), I don't know what @Biswa96 likes to do; my approach would be to go without any specific Windows functions instead. |
That's fine for now, but this is not a long-term solution, since WSL is deeply tied into Windows and MS does global updates. We can't get stuck on any particular version of WSL. |
My current workaround to use WSL2 with mintty is to run 'mintty -e wsl &' from an existing cygwin installation — this works without wslbridge, though I am not sure if there is a performance hit using this method. |
Running |
Thx to @kafkafuura. I decided to use 'mintty -e wsl' as a workaround after trying Tabby and Windows Terminal. Then I realized the output of 'duf' command is colored on mintty which was not in color on wsltty. Using mintty 3.7.0 for both cases. |
What is duf? |
|
i wish the github workflow use cygwin for building |
Yes, I agree and shall add that also. |
@xuefer Here is the first nightly build of wslbridge2 compiled in cygwin https://github.com/Biswa96/wslbridge2/actions/runs/6954957979 |
@Biswa96 |
Cool, good job. Nicely done. Everything's fine as far as i see |
FWIW it used to work pre the 23H2 with WSL 2.x, it's just since that update. I believe people have found the issues now, but as extra info typing EDIT: Is there any way to get mintty to start up as |
See reference above to explain that wslbridge (as involved in wsltty) is a much better gateway to WSL than wsl.exe which limits terminal functionality. |
Nope I've been running 2.x for ages on both Windows 10 and 11.
What terminal functionality does it limit out of interest? So far everything I've done with |
i suppose @Ktabata is right about "You don't have to downgrade to WSL1. We mean that WSL2 v1.3 works well.". which mean v1.3 is WSL2, the version number is confusing So are you sure you're using WSL2 v2.x for ages? when @mintty said "Was WSL 2.x introduced with 23H2" he meant WSL2 v2.x (instead of WSL2 v1.x)
|
@xuefer I'm not sure what you mean quite, but this is my output for
Are you saying there's a 2.x of WSL 2? Because I haven't changed anything and wsltty was working with For completeness:
It's all very confusing! I'm on Windows 11 and yet that says Windows 10.x? Seems like nothing here makes much sense. But if a fix is found and will be releaseed soon I'll continue to use But for me |
you're on 2.x of WSL 2 already. but what they said about "2.x" is not about "WSL2 vs WSL1", since you (and me) are confused when you mention https://learn.microsoft.com/en-us/windows/wsl/compare-versions#exceptions-for-using-wsl-1-rather-than-wsl-2 about "default to exec wsl.exe" thing: you may try to copy wsl.exe as bash.exe (or sh.exe) and put it beside mintty.exe, or to ....\bin, the exact name and path depends on which variant version of mintty you're using, be it cygwin or msys2 assume itself (mintty) in different folder, finding /bin/bash (or /bin/sh) |
@xuefer Yeah it seems there's some confusion around all of this for sure 🙃 |
Here is the new release of wslbridge2 https://github.com/Biswa96/wslbridge2/releases/tag/v0.12. The wslbridge2-cygwin can be drag-and-drop in existing wsltty installation. |
Released 3.7.0.2. |
I fully uninstalled the old version, installed new version, but same issue. It crashes at startup |
What WSL version are you using? Does wsl.exe work? |
Yes I am able to run wsl.exe from the built-in terminal. |
And did you install wsltty 3.7.0.2 (released last night)? |
It looks like a valid issue but I can not reproduce it in my system using latest Windows 11 and WSL 2.0.11.0. Have you tried the x86_64 wsltty installer? Do you have any setting in wsl.conf or .wslconfig file? Are you using docker for windows? |
Yes, I installed using wsltty-3.7.0.2-i686-install.exe after fully uninstalling the previous version, having removed both the ...\AppData\Roaming\wsltty and ...\AppData\Local\wsltty folders first. I'm running bare metal Windows 11. |
Please use wsltty-3.7.0.2-x86_64-install.exe instead, assuming you have a 64-bit system. |
That worked! Thanks |
I restarted, installed the 64-bit version and it worked. Thank you! |
I can confirm,
|
wsltty 3.7.0 starts and immediately exits with no error message. wsltty worked prior to latest Windows update.
Launching C:\Users\bbth\AppData\Local\wsltty\bin\mintty.exe produces the following message:
/bin/bash: Exit 126.
Failed to run '/bin/bash': No such file or directory
/bin/bash exists.
Launching wsl from Windows terminal works. Launching other terminal programs such as Gnome-terminal or xfce4-terminal work under WSL.
Windows info
Windows 11 Pro Version 10.0.22631 Build 22631
2023-11 Cumulative Update for Windows 11 Version 23H2 for x64-based Systems (KB5032190)
PS C:\Users\bbth> wsl --version
WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.2715
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
The text was updated successfully, but these errors were encountered: