I've installed WSL Ubuntu 20.04 LTS using wsl --install -d ubuntu.
But sometimes it stops responding and freezes when I've been in Linux for a long time.
Windows Version: 21H2. CPU virtualization, Linux subsystem, and virtual machine platform are enabled.
wsl ~a second time. Does it start? If so, add the output ofps n -efHto the question. That may give you some idea what's going on. You may be able tokill <pid>the offending processes from another WSL window and get the first one to start again. – NotTheDr01ds Mar 29 '22 at 20:17wsl --shutdownworks but not everytime There are resources to to restart wsl- https://www.how2shout.com/how-to/how-to-reboot-wsl-windows-subsystem-linux-in-windows-10.html
- https://superuser.com/questions/1126721/rebooting-ubuntu-on-windows-without-rebooting-windows
– laertis Oct 15 '22 at 11:08wslcommand just hangs elevated prompt or not) - reboot is the only one I can recover. – Gordon Jan 01 '23 at 20:34wsl --shutdownbecause nothing gets a response in the terminal. The only way I can end it is by ending WSL in Task Manager, but thereafterwslcommands still don't receive any response in the Windows terminal. Only a Windows restart works. – BadHorsie Sep 04 '23 at 15:47