wsl convert instance to version 1 code example
Example 1: 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
Example 2: wsl convert to wsl2
wsl --set-version <Distro> 2
# For setting all future distributions to use WSL 2
wsl --set-default-version 2