This guide walks you through installing Ubuntu WSL on Windows 10/11. WSL allows you to run Linux directly on Windows without the need for a virtual machine.
- Windows 10 version 2004+ (Build 19041+) or Windows 11
- Admin privileges
- Internet connection
Open PowerShell as Administrator and run:
wsl --installOr, manually enable features:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestartThen reboot your computer.
wsl --set-default-version 2- Open the Microsoft Store
- Search for
Ubuntu(e.g., Ubuntu 22.04 LTS) - Click Install
After installation:
- Open Ubuntu from the Start Menu
- Wait for setup (may take a few minutes)
- Create your Linux username and password
wsl --list --verboseExpected output:
NAME STATE VERSION
Ubuntu Running 2- Launch Ubuntu: wsl or search “Ubuntu” in Start Menu
- Shut down WSL:
wsl --shutdown - Update Ubuntu:
sudo apt update && sudo apt upgrade
- WSL official docs
- Ubuntu on WSL Docs
- Reset Ubuntu:
wsl --unregister Ubuntu(⚠️ deletes all data) - Check Windows version: winver