Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.23 KB

WSL_alreadyinstalled.md

File metadata and controls

51 lines (33 loc) · 1.23 KB

If WSL is already installed

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

WSL is already installed on your machine

If Ubuntu is already in the list of distributions

Run

wsl -s Ubuntu

to set the default distribution to Ubuntu.

Ubuntu is already in the list of distributions

If Ubuntu is not yet in the list of distributions

Run

wsl --install -d Ubuntu

to install the Ubuntu distribution, and then

wsl -s Ubuntu

to set the default distribution to Ubuntu.

Run wsl --install from CLI

After Ubuntu distribution has been checked/installed

...you can now continue with accessing the Unixshell.