Occasionally WSL hangs on Windows 10. Opening "Ubuntu" bash just hangs. Any way to restart WSL without rebooting Windows ?
From the Services window search for a Windows Subsystem for Linux service called LxssManager. Right-click on Lxssmanager service and select the option Restart. This will reboot/restart the windows subsystem for Linux -WSL (Ubuntu, Debian, Kali, OpenSUSE, etc).
search for the LxssManager and grab the PID, then run task manager as administrator, in the details tab, search for the svchost.exe containing the PID, right click it and select 'end process tree'.
I believe the most effective way today for WSL2, in Cmd Prompt / PowerShell:
wsl --shutdown
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With