Microsoft began pushing Windows 10’s latest update, Windows 10 May 2020 Update, and the new version brought a series of significant improvements, and WSL 2 is also officially GA in this release. Based on the new architecture, WSL 2 uses a true Linux kernel in lightweight virtual machines that provide full Linux binary application compatibility and improve performance.
Ubuntu was one of the first releases to fully support WSL 2. Canonical says it can download Ubuntu 20.04 LTS from the Microsoft Store if you want to experience WSL 2.
Ubuntu is ready for WSL 2, and all versions of Ubuntu can be upgraded to WSL 2.
For other versions of Ubuntu for WSL and other ways to install WSL, check out the WSL page on the Ubuntu wiki.
To enable WSL 2 on Windows 10 May 2020 update (build 19041 or later), you need to run the following command as an administrator in PowerShell:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Upgrade Ubuntu to WSL 1
wsl.exe –set-version Ubuntu 2
Set WSL 2 as the default version
wsl.exe –set-default-version 2
Note that the system needs to be restarted to complete the activation of WSL 2.