Install WSL 2

For Ubuntu downloaded from the Microsoft store, WSL 2 might not be available directly by running the command

wsl --set-version Ubuntu 2

If it errors out, download the "WSL2 Linux kernel update package for x64 machines" update package from https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package

Run this command to verify the current version

wsl -l -v

When success, it should look something like:

PS C:\WINDOWS\system32> wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Stopped         2

Last updated

Was this helpful?