You can run Ubuntu Linux on a Windows 10 PC without wiping Windows or setting up dual boot. Right-click Start, choose Windows PowerShell (Admin), run wsl --install -d Ubuntu, and restart your PC. After rebooting, Ubuntu opens and asks you to create a Linux username and password. The Windows Subsystem for Linux (WSL) gives you a full Linux terminal, apt package manager, and access to your Windows files. Ubuntu under WSL is also the easiest home for developer services, for example a Redis server installed from the official Redis packages.

Windows 10 reached end of support in October 2025. WSL still works, but consider Windows 11 for ongoing security updates.
Requirements
- Windows 10 version 2004 (build 19041) or later. Check with Windows + R >
winver. - Virtualization enabled in BIOS/UEFI (usually on by default; check Task Manager > Performance > CPU > Virtualization).
- A few GB of free disk space.
Step 1: Install WSL and Ubuntu
- Right-click Start and select Windows PowerShell (Admin) or Terminal (Admin).
- Run:
wsl --install -d Ubuntu - Wait while Windows enables the required features and downloads Ubuntu.
- Restart your PC when prompted.
To see other available versions, run wsl --list --online. You can install a specific release, such as wsl --install -d Ubuntu-24.04.
Step 2: Set Up Ubuntu
- After restarting, Ubuntu opens automatically (or launch Ubuntu from Start).
- Wait for the initial setup, then enter a new Linux username and password. These are separate from your Windows account. The password won’t show as you type.
- Update packages:
sudo apt update && sudo apt upgrade -y
Step 3: Use Ubuntu with Windows
- Open Ubuntu: from Start, or type
wslin any terminal. - Access Windows files from Ubuntu: they’re under
/mnt/c/. - Access Ubuntu files from Windows: type
\\wsl$in File Explorer’s address bar. - Install software: use
sudo apt install(for example,sudo apt install git python3). - Check versions:
wsl -l -vshows installed distributions and whether they use WSL 2.
Alternative: Install from the Microsoft Store
Open the Microsoft Store, search for Ubuntu, and click Get. If WSL isn’t enabled yet, Ubuntu will prompt you or fail to start; run wsl --install first.
Other Ways to Run Ubuntu
- Virtual machine: install a free hypervisor such as VirtualBox or Hyper-V (Windows 10 Pro), download the Ubuntu Desktop ISO from ubuntu.com, and create a VM. Good for testing the full desktop.
- Dual boot: install Ubuntu on its own partition and choose Windows or Ubuntu at startup. Best performance, but back up your data first and plan disk space carefully.
- Linux GUI apps: Windows 11’s WSLg runs Linux desktop apps natively; on Windows 10 you’d need a separate X server.
Can I run Ubuntu on Windows 10 without WSL?
Yes. You can use a virtual machine such as VirtualBox, or install Linux alongside Windows 10 with dual boot. WSL is the easiest option for command-line work, while a virtual machine or dual boot gives you the full Ubuntu desktop.
For the full desktop on a Windows 11 machine, dual booting a Windows 11 PC with Linux covers shrinking drive C and the installer choices.
Fixing WSL Install and Sign-In Errors
- Error 0x80370102: virtualization is off. Enable Intel VT-x or AMD-V (SVM) in BIOS/UEFI.
- “wsl is not recognized”: update Windows 10 through Windows Update, or enable Windows Subsystem for Linux in Turn Windows features on or off.
- Installation stuck at 0%: run
wsl --update, then try again, or install Ubuntu from the Microsoft Store. - Forgot the Linux password: run
wsl -u rootin PowerShell, thenpasswd yourusername.
How to Run Ubuntu After It’s Installed
Once setup is done, you don’t need to repeat any of the steps above. To open Ubuntu again, use any of these:
- Click Start and select Ubuntu from the app list.
- Open PowerShell or Command Prompt and type
wsl(orubuntu) and press Enter. - If you use Windows Terminal, click the down arrow next to the tab bar and pick the Ubuntu profile.
To close Ubuntu, type exit. WSL shuts the Linux environment down in the background after a short idle period. To stop it right away, run wsl --shutdown from PowerShell.
How do I uninstall Ubuntu?
See our full guide on how to uninstall Ubuntu on Windows 10.
Run wsl --unregister Ubuntu (this deletes its files), then uninstall the Ubuntu app from Settings.
First Commands to Run
A fresh Ubuntu install is often a few weeks behind on updates. Run this first:
sudo apt update && sudo apt upgrade -y
Enter the Linux password you created during setup when asked. After that, install software the same way you would on any Ubuntu machine. For example, sudo apt install git installs Git, and sudo apt install python3-pip adds Python’s package installer.
WSL 1 vs. WSL 2
The wsl --install command uses WSL 2 by default, which runs a real Linux kernel and gives better speed and compatibility. Check which version your Ubuntu install uses with wsl -l -v in PowerShell. If it shows version 1, switch it with wsl --set-version Ubuntu 2. The walkthrough on how to install WSL2 on Windows 10 covers the version switch in more detail.
Sharing Files Between Windows and Ubuntu
- Windows files from Ubuntu: Your C: drive appears at
/mnt/c. For example, your Windows Documents folder is at/mnt/c/Users/YourName/Documents. - Ubuntu files from Windows: Open File Explorer and type
\\wsl$in the address bar, or runexplorer.exe .inside Ubuntu to open the current Linux folder in File Explorer.
For the best performance, keep Linux project files inside the Ubuntu file system (your home folder) rather than on /mnt/c.

Kermit Matthews runs Live2Tech from just outside Philadelphia. He is an IT specialist with over 20 years of experience, from a university help desk to small-business IT, IT management and his own consulting practice, and has written tech guides full time since 2020. Steps are checked against the current software on a real device or the maker’s official documentation. More about Kermit.