Installing Linux on Windows 11 (WSL)

https://youtu.be/CcwNTmOxOdI

In this quick guide, we’ll go over getting Linux installed on your Windows 11 system using Windows Subsystem for Linux (WSL). This is a great way to get a true Linux command line on your Windows system without having to dual boot or replace. We’ll set up latest WSL version and install latest Ubuntu.

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Reboot your computer and resume.

wsl –set-default-version 2
wsl –update
-or-
https://github.com/microsoft/WSL/releases

Class not registered
Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG

wsl –list –online
wsl –install -d Ubuntu-24.04

If the Windows 11 instance is running in a VM, make sure that you’ve enabled nested VM support for that VM.