how to set wsl 2 as default version code example
Example 1: how to set wsl 2 as default
wsl --set-default-version 2
Example 2: change wsl to version 1
wsl --set-version Ubuntu-18.04 1
// Run the above command from windows powershell
// This assumes you are running Ubuntu 18.04