After putting my laptop into hibernation or sleep mode, Ubuntu running on my Windows 11 machine would become unresponsive. Attempting to restart it resulted in the error:
“The Windows Subsystem for Linux instance has terminated.”
After some troubleshooting, I found a way to relaunch it:
Steps to Restart WSL
Open a PowerShell prompt.
Check the status of your WSL instances by running:
wsl -l -v
Example output:
NAME STATE VERSION
* Ubuntu-22.04 Running 2
docker-desktop-data Stopped 2
Shut down WSL completely with:
wsl --shutdown
Verify that WSL has stopped by running:
wsl -l -v
Example output:
NAME STATE VERSION
* Ubuntu-22.04 Stopped 2
docker-desktop-data Stopped 2
Once WSL has been stopped, you can now reopen Ubuntu, and it should work as expected.
Be First to Comment