Windows Subsystem for Linux shows "no installed distributions" in run-as-Administrator PowerShell window

I have successfully installed WSL 2 and Ubuntu on my Windows machine.

My user account is not an administrator account.

If I start PowerShell and type bash it successfully starts bash, and wsl --list shows the Ubuntu distribution.

However if I run PowerShell as Administrator and type bash I get the following message:

Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:

and the wsl --list command shows the same message.

Worst part is that I'm pretty sure this worked yesterday(!)

7

1 Answer

You have installed the linux distro using the ordinary user credentials. If you start the powershell as normal user, you should see the correct info. wsl state and installed apps seem to be specific to a user account.

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like