WSL2 is the easiest way to get real Ubuntu on a Windows 11 PC: one command in PowerShell, one restart, and you have a full Linux terminal running next to Windows — no USB stick, no partitioning, no rebooting to switch systems. You type Linux commands in the Ubuntu window while Windows keeps running normally underneath. This guide installs Ubuntu 26.04 LTS, the current long-term release, with Microsoft's own one-command method, then walks through the first setup, the first update, and the everyday commands you will actually use. It takes about ten minutes plus the download time.
WSL, dual-boot, or a virtual machine — pick the right one
WSL2 (Windows Subsystem for Linux, version 2) runs a real Linux kernel inside Windows. That is what makes it different from the two alternatives. Dual-booting installs Ubuntu on its own partition and you choose one system each time the PC starts — better if you want Ubuntu to own the whole machine, but you cannot use both at once. A virtual machine runs Ubuntu in a window but you have to set it up, give it RAM and disk, and maintain it yourself. WSL2 sits in the middle: Linux is always one click away, shares your files, and needs almost no setup. Pick WSL2 if you want to learn Linux, run Linux tools, code, or try Ubuntu without touching your Windows install. Pick the dual-boot guide instead if you want Ubuntu as your main system, or a virtual machine if you need a completely separate test PC. Nothing in this guide changes your Windows partitions, so there is nothing to undo if you change your mind — removing Ubuntu later is one command.
Before you start — two quick checks
First, check your Windows version. WSL needs Windows 10 version 2004 or newer, or any Windows 11 — which covers every PC this guide is written for. Press Win + R, type winver, and confirm the version. If Windows Update has pending updates, install them first so you are not installing WSL on an out-of-date build. Second, make sure virtualization is switched on. WSL2 needs it, and on most PCs it already is. If the install step below fails with an error about virtualization, restart into your BIOS/UEFI settings (usually F2, F12 or Delete right after power-on), find the virtualization setting — Intel calls it VT-x, AMD calls it AMD-V or SVM — switch it on, save, and try again. You do not need a Microsoft account, a product key, or any paid software for any of this.
Step 1 — Install WSL and Ubuntu with one command
Right-click the Start button and choose Windows Terminal (Admin) or Windows PowerShell (Admin), then approve the administrator prompt. Type exactly this and press Enter:
wsl --install
That one command does the whole job: it switches on the Windows features WSL needs, installs the WSL 2 kernel, and downloads and installs Ubuntu, the default Linux distribution. Wait for it to finish — it downloads a few hundred megabytes, so the time depends on your internet — then restart the PC when it tells you to. The restart is not optional: WSL does not work until after it.
If you want the newest Ubuntu instead of the default, install it by name. First see everything available with wsl --list --online — the list includes Ubuntu, Ubuntu 26.04 LTS, Ubuntu 24.04 LTS and Ubuntu 22.04 LTS, plus Debian, Kali and others. Then run:
wsl --install Ubuntu-26.04
That installs Ubuntu 26.04 LTS, Resolute Raccoon, the release this blog's Ubuntu guides are written around. If the download stalls at 0%, Microsoft's own advice is to try wsl --install --web-download -d Ubuntu-26.04, which downloads the distribution first and then installs it.
Step 2 — Create your Linux username and password
After the restart, Ubuntu opens by itself — if it does not, click Start, type Ubuntu, and open the app. The first launch takes a minute or two. It then asks you to create a username and a password for your Linux user. This is your Ubuntu account, not your Windows or Microsoft account: pick a short lowercase username, and a password you will remember. When you type the password nothing appears on screen — no dots, no stars. That is normal Linux behaviour, not a broken keyboard. Type it, press Enter, type it again to confirm, and Ubuntu finishes setting itself up. You end at a prompt that looks like yourname@PCNAME:~$. You are now inside Ubuntu.
Step 3 — Update Ubuntu before you do anything else
A fresh Ubuntu install is already a little out of date, so update it first. Type this in the Ubuntu window:
sudo apt update && sudo apt upgrade -y
sudo runs the command as administrator and asks for the password you just created — again, nothing shows as you type it. The first command refreshes the list of available software; the second installs the updates. Say yes if it asks about anything, and let it finish. From now on, run this pair every week or so and Ubuntu stays current. While you are here, check that everything is as it should be: wsl --list --verbose in PowerShell shows your distro, whether it is running, and that its version is 2. If it says 1, run wsl --set-version Ubuntu-26.04 2 to move it to WSL 2.
Step 4 — Learn the five commands you will use every day
You only need a handful of commands to live in WSL. wsl in PowerShell (or just opening the Ubuntu app) starts Ubuntu. wsl ~ jumps straight into your Ubuntu home folder. Inside Ubuntu, ls lists files, cd moves between folders, and pwd tells you where you are. Your Windows files are visible under /mnt — your C: drive is at /mnt/c, so cd /mnt/c/Users/YourName/Desktop takes you to your Windows desktop from inside Linux. One habit matters more than the rest: keep your Linux files and projects inside your Ubuntu home folder, not on the Windows drive. Files on /mnt/c work, but they are much slower for Linux tools — builds have been measured running several times faster from the home folder. Use the Windows side for sharing a file in, and the home folder for doing the work.
Step 5 — Optional: make it yours
Two additions are worth doing on day one. First, update WSL itself from time to time: in PowerShell run wsl --update, then wsl --shutdown and start Ubuntu again. Second, if you write code, install Visual Studio Code on Windows and add its WSL extension — it lets you edit files inside Ubuntu from the Windows editor, which is the setup most developers end up with. You do not need either to use Ubuntu, and neither changes how the steps above work.
If something goes wrong
The install fails talking about virtualization: switch it on in BIOS/UEFI as described above — Intel VT-x or AMD-V/SVM — then run wsl --install again. wsl --install shows help text instead of installing: WSL is already installed, so run wsl --list --online and then wsl --install -d Ubuntu-26.04 to add the distribution. Ubuntu opens but asks for a username you do not remember setting: the first launch creates the user, so if you skipped it or mistyped, remove the distro with wsl --unregister Ubuntu-26.04 and install it again — but note that unregister deletes everything inside that distro, so only do it before you have files in there. Ubuntu is slow opening a project on the Windows drive: move the project into your Ubuntu home folder as explained in Step 4. And if Ubuntu ever stops responding, wsl --shutdown in PowerShell stops all distros cleanly, and starting Ubuntu again fixes most stuck states.
Bottom line
Ubuntu on Windows 11 in 2026 is a one-command job: wsl --install in an administrator PowerShell, a restart, a username and password, and one update command. Installing Ubuntu 26.04 LTS by name keeps you on the release this blog covers in its other guides, and keeping your work in the Ubuntu home folder keeps it fast. You get a real Linux system for learning, coding and trying Linux tools, with Windows still right there — and if you ever want Ubuntu on its own instead, the dual-boot guide is the next step, with no relearning needed: the Ubuntu you just installed works the same way.
Comments
No comments yet. Be the first to share your experience.