I'm trying to get WSL 2 working on my Windows 10 machine. I have followed the "Manual" directions in this page:
And then downloaded 2 different Ubuntu distros linked in this page:
https://learn.microsoft.com/en-us/windows/wsl/install-manual
I set the default version to WSL 2.
After invoking "Add-AppxPackage" (with no errors) and restarting, the WSL still reports that I have no installed distributions.
See:
I have confirmed that all Hyper-V options have been enabled in Windows Features, along with Virtual Machine Platform, and Windows Subsystem for Linux.
I have tried "wsl /install" but it simply reports the same "Windows Subsystem for Linux has no installed distributions."
I have tried Add-AppxPackage with both administrator rights and non adminstrator rights with no difference.
How can I get WSL to allow me to install a distro?
wsl --list --verbose
at some point - What was the result of that command? My first hunch was that perhaps the distribution was installed, but not set as default. But that doesn't fit for two reasons - First, Microsoft's error messages are usually smarter than that. And second, even after setting an unused WSL instance to default, and then deleting it, WSL automatically set a different distro as default. So I'm suspecting there's always a default distro set for WSL.Enter new UNIX username:
and WSL is ready.