- Windows 10/11.
- I highly recommend installing the new and shiny Windows Terminal, just go to the Windows Store and search ‘Windows Terminal’.
WSL2 is the most recent version of WSL and can be installed in Windows 10 or Windows 11, so that’s the version we are going to install.
First, we need to open up a PowerShell or a cmd prompt with elevated privileges, now we will check what distributions do we have available to install running this command:
wsl --list --online
We will see a list of the available distributions that we can install like this:
NAME FRIENDLY NAME Ubuntu Ubuntu Debian Debian GNU/Linux kali-linux Kali Linux Rolling Ubuntu-20.04 Ubuntu 20.04 LTS
In my case I´d like to install Ubuntu 20.04, since this is the last and default distribution we can just run:
Or we can specify the Linux distro we like:
wsl --install -d Ubuntu-20.04
If everything went well, we can now use Ubuntu by opening a new tab in Windows Terminal and selecting Ubuntu. That was not my case, y faced an error:
wslRegisterDistribution failed with error: 0x80370102
What I did to fix this was enable the CPU Virtualization in the BIOS, which lead us to conclude that what Windows does is create a VM for executing Linux.
That would be all for this time.