WSL: Normal user cannot see Linux Distributions installed with separate admin account

Hi

Sorry I don’t have screen shots for my issue.

I have recently been running WSL 2 just fine, running multiple Linux distros, however I recently experienced something very unusual and I’m assuming it’s a bug.

So, I had installed Ubuntu version 20.04 LTS and 18.04 LTS and Debian and Kali. They were running just fine and showing up in Powershell under WSL -l -v.

All the sudden things stopped working, the distro’s do not appear in WSL -l -v for some reason, I had installed Docker to play around it for a bit which also showed up in the WSL list but I don’t think that is the reason for the cause of the error I am experiencing.

I tried the following to try and resolve the issue, uninstall everything that is (Linux distros and even WSL itself) and then install them again, still no luck.

My problem is with the (Ubuntu distro) installed, it is not showing up in the WSL list for some reason, I get Windows Subsystem for Linux has no installed distributions even though I has been installed.

Please help me with this, I thought I would report it just in case other people are having the same issue.

I hope I have given you enough context, if you need more details from me, PLEASE feel free to email me on majdsawaf91@hotmail.com.

For the mean time I thank you for your support and hope to hear from you soon.

Majd

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Your Distribution version: [On Debian or Ubuntu run `lsb_release -r` in WSL]
Whether the issue is on WSL 2 and/or WSL 1: [run `cat /proc/version` in WSL]

Steps to reproduce

Expected behavior

Actual behavior

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21 (1 by maintainers)

Most upvoted comments

FWIW my issue was with permissions. The user tied to WSL was a non-admin user and so PowerShell ran as admin was just accessing the admin users distributions. Gotta love managing multiple user accounts on a laptop for work!

FWIW my issue was with permissions. The user tied to WSL was a non-admin user and so PowerShell ran as admin was just accessing the admin users distributions. Gotta love managing multiple user accounts on a laptop for work!

I had the exact problem, and your comment helped me. This issue should be pointed elsewhere on the WSL documentation . I have a non-admin account for everyday use, and an admin account for elevated commands. In my opinion this is a standard security configuration, both home and work.

So I did all the WSL kernel configuration and upgrade on a privileged powershell (rus as Administrator). The kernel updated fine but I couldn’t see any distro with wsl -l -v. I have installed at least 1 distro from the store. It turns out that I needed to run a normal powershell to see the distros and upgrade them to v2.

Agreed - we can improve our documentation on the scenario where there are two accounts used for normal and admin. Because distros are installed per-user, this can be confusing and we can give clearer guidance.

FWIW my issue was with permissions. The user tied to WSL was a non-admin user and so PowerShell ran as admin was just accessing the admin users distributions. Gotta love managing multiple user accounts on a laptop for work!

This saved me hours of banging my head! Thank you for sharing!

FWIW my issue was with permissions. The user tied to WSL was a non-admin user and so PowerShell ran as admin was just accessing the admin users distributions. Gotta love managing multiple user accounts on a laptop for work!

I’ve been at this issue for hours. Microsoft makes no mention of this. Thank you so much!

Try this:

Check for updates for Windows 10 Disable any third-party antivirus/security/endpoint management software Uninstall all distros from the Start Menu by right-clicking and clicking Uninstall Stop LxssManager in Services Uninstall both WSL 1 and WSL 2 Restart Windows In PowerShell run:

DISM /Online /Cleanup-Image /RestoreHealth

Re-enable WSL 1 and WSL 2 from PowerShell Restart Windows Install Ubuntu from Microsoft Store

And report back.

Hi Canhua,

Thanks for getting back to me.

Yes, your procedure is exactly what I did, but still no luck.

I have used it and was on the WSL 2 platform before, but for some reason it just stopped working, a very unusual problem, but I hate to say it, it definitely looks like a bug.

I have attached some snapshots to help you.

Please let me know if you require any other details otherwise hope to hear from you soon.

Thank you, Majd

There are Ubuntu or Ubuntu 20.04 LTS in Windows Start Menu, when you click it, it will launch the distro. What’s the output in that terminal? After you install distros from store, you have to launch it and finish the setup by typing username and password. It doesn’t show up in wsl -l -v until you launched the distro once.