Enable the "Windows Subsystem for Linux" feature
Search for "Turn Windows features on or off"
and restart your computer
Download the WSL update package
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
Just download and install
Set default WSL version
You can use the following command to set the default version to WSL2 through PowerShell or cmd
wsl --set-default-version 2
Install a Linux distribution
Set username and password
open ubuntu