I have went through the process of manually enabling WSL 2. There are no errors at any point of the installation process. I'm on Windows Version 10.0.19045 Build 19045
which is supported by WSL 2. Ubuntu and Debian run fine after going through those instructions. Running wsl.exe
or wsl -l -v
; however, fails and instead of running provides the following error messages:
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
I actually installed Ubuntu from the store after following the instructions. I'm able to run most programs that I have installed. After installing Docker, I tried to run it from Ubuntu only to get an error message instructing me to upgrade to WSL 2:
The command 'docker' could not be found in this WSL 1 distro.
We recommend to convert this distro to WSL 2 and activate
the WSL integration in Docker Desktop settings.
For details about using Docker Desktop with WSL 2, visit:
https://docs.docker.com/go/wsl2/
Did I miss a step or is this a bug that needs to be fixed?
In terms of features I have "Virtual Machine Platform" (a subset of Hyper-V) and "Windows Subsystem for Linux" enabled. I disabled Hyper-v because that causes Docker on Windows to fail after install.
Also note that wsl.exe seems to be confussed about what is installed:
PS C:\WINDOWS\system32> wsl --install -d Ubuntu
Ubuntu is already installed.
Launching Ubuntu...
suggesting Ubuntu is available to WSL but then again I cannot run wsl.exe
without error nor can I upgrade any distribution as There is no distribution with the supplied name.