Install WSL | Microsoft Docs
docs.microsoft.com › en-us › windowsApr 06, 2022 · To update from WSL 1 to WSL 2 on previously installed Linux distributions, use the command: wsl --set-version <distro name> 2 replacing <distro name> with the name of the Linux distribution that you want to update. For example, wsl --set-version Ubuntu-20.04 2 will set your Ubuntu 20.04 distribution to use WSL 2.