mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.12k stars 104 forks source link

wsltty exits immediately after Windows 11 update KB5032190 #343

Closed analytic-garden closed 1 year ago

analytic-garden commented 1 year ago

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

CoeJoder commented 1 year ago

And did you install wsltty 3.7.0.2 (released last night)?

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.

mintty commented 1 year ago

Please use wsltty-3.7.0.2-x86_64-install.exe instead, assuming you have a 64-bit system. Maybe I should drop the 32-bit installers, it was just requested for some obscure Intel Windows on ARM processor configuration, don't know if that's really still a use case.

CoeJoder commented 1 year ago

Please use wsltty-3.7.0.2-x86_64-install.exe instead, assuming you have a 64-bit system.

That worked! Thanks

tsangwpx commented 1 year ago

I did install 3.7.0.2 as well and it's still occurring for me too. image

Sometimes WSL2 state seems broken and even wsl command report error. wsl --shtudown does not help. Restart "WSL Service" in services.msc or reboot the machine.

KiKoS0 commented 1 year ago

I restarted, installed the 64-bit version and it worked. Thank you!

Sieboldianus commented 9 months ago

I can confirm, wsltty-3.7.0.2 solved the issue for me. I first tried to overwrite installed files from Chocolatey in C:\ProgramData\chocolatey\lib\wsltty\... (because choco is still on 3.6.4), but this did not work. I had to uninstall and install manually: