wsl to set version code example
Example 1: wsl version
wsl --list --verbose
wsl --set-version <distribution name> <versionNumber>
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