3

I have installed Ubuntu 18.04 for windows subsystem for linux on windows 10, after enabling WSL in Powershell (instructions here: https://learn.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.

3
  • Yes, should have said - Debian won't install, get's hung at "Installing, this may take a few minutes". OpenSUSE installs fine. Commented Oct 26, 2018 at 16:09
  • 1
    Also I've just discovered that Ubuntu 16.04 installs ok, it's just 18.04 which is having this issue Commented Oct 26, 2018 at 16:10
  • Can you collect log with logon method?
    – Biswapriyo
    Commented Oct 26, 2018 at 16:38

1 Answer 1

3

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.

As a last resort, deregister the one you have problem 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.

!!! Warning !!!

Deregistering deletes all files! wslconfig.exe /u Ubuntu

!!! Warning!!!

2
  • That deregister tip helped me. Thanks! Commented Dec 2, 2019 at 19:19
  • 3
    Note that /u (aka /unregister) deletes all the user files in your distro, which is not necessarily what you expect. A last resort. Commented Jan 6, 2020 at 0:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.