If after opening the Command Prompt or PowerShell as administrator, and then running wsl --install
, a help text is shown, it means that you already have some version of WSL installed on your machine.
In that case, run the following command to get a list of available distributions (we want the Ubuntu one):
wsl -l -v
Run
wsl -s Ubuntu
to set the default distribution to Ubuntu.
Run
wsl --install -d Ubuntu
to install the Ubuntu distribution, and then
wsl -s Ubuntu
to set the default distribution to Ubuntu.
...you can now continue with accessing the Unixshell.