Open powershell as admin and type
wsl --install
open windows feature, turn on Virtual Machine Platform and Windows Subsystem for Linux press ok and restart the machine. Type into terminal to list all the available distro
wsl --list --online
with wsl —install the default ubuntu will be installed, if we want to install another one we just need to go
wsl --install --distribution DistroName
After installing and restarting create sudo username and password and start using it.