Ubuntu on WSL doesn't launch

Viewed 8555

I have installed Ubuntu 18.04 for windows subsystem for linux on windows 10, after enabling WSL in Powershell (instructions here: https://docs.microsoft.com/en-us/windows/wsl/install-win10).

I've done this before on a desktop but now I'm doing it on a laptop. I had no issues with the previous installation but this time around ubuntu will not launch. I get the ubuntu console popping up briefly before disappearing.

Also trying to run bash.exe from the command line fails silently (doesn't hang, just exits with no message), which may be related.

I'm struggling to figure this out as I have no idea where any error messages might be logged. Does anyone know how I can investigate further why this is happening?

Setup is a windows 10 Pro, os build 17134.376, everything up to date.

1 Answers

I'm struggling to figure this out as I have no idea where any error messages might be logged. Does anyone know how I can investigate further why this is happening?

Check with wslconfig.exe /l all registered distros, try to deregister the one you have problem with ( e.g. wslconfig.exe /u Ubuntu [^1]) and run the ubuntu.exe in your distro once again. Just a wild guess, it might be also a problem, if you have more than one copy of the linux distribution in you home directory.

[^1]: Warning: deregistering will delete all the associated files!

Related