How to Install Ubuntu on Windows 11: A Step-by-Step Guide

If you want to use Linux without giving up Windows 11, installing Ubuntu on Windows 11 is a convenient way to get the best of both worlds. You can run Ubuntu alongside Windows, use Linux development tools, learn Linux commands, install software packages, and experiment with a different operating system without replacing your existing Windows installation.

There are several ways to install Ubuntu on a Windows 11 computer. The easiest method for most beginners is Windows Subsystem for Linux (WSL). WSL lets you run a Linux environment directly inside Windows without creating a traditional dual-boot setup or a separate virtual machine.

In this guide, you’ll learn how to install Ubuntu on Windows 11 step by step. We’ll cover the simplest WSL method, alternative installation options, first-time Ubuntu setup, useful commands, troubleshooting, and tips for getting the most from Ubuntu on Windows 11.

Table of Contents

What Is Ubuntu?

Ubuntu is a popular Linux distribution based on Debian. It is widely used by developers, students, system administrators, and people who want to explore Linux.

Ubuntu includes a Linux command-line environment and access to thousands of open-source software packages.

When you install Ubuntu through WSL, you can use Linux commands and applications while continuing to use your normal Windows desktop and Windows programs.

Can You Install Ubuntu on Windows 11?

Yes. Windows 11 supports Ubuntu through Windows Subsystem for Linux.

You don’t necessarily need to create a separate partition or remove Windows. Instead, WSL creates a Linux environment that runs within Windows.

For most users, this is the easiest approach because it requires less configuration than traditional dual booting.

Ubuntu on Windows 11: Installation Options

Before starting, it’s useful to understand the main options.

Method Best For Difficulty
WSL Beginners, developers, Linux tools Easy
Virtual machine Testing a complete Linux desktop Moderate
Dual boot Using Ubuntu as a separate operating system Advanced
Bootable USB Installing Ubuntu directly on a PC Advanced

This guide focuses primarily on WSL, because it is usually the simplest way to install Ubuntu on Windows 11.

What You Need Before Installing Ubuntu

Before beginning the installation, make sure your Windows 11 PC is updated.

You should also have:

  • A Windows 11 computer
  • An administrator account
  • An active internet connection
  • Enough available storage
  • Windows Terminal or PowerShell
  • Virtualization support enabled when required by your WSL configuration

If you’re using WSL 2, Windows may need certain virtualization-related features enabled.

Check Your Windows 11 Version

It is a good idea to check your Windows version before installing Ubuntu.

Step 1: Open Windows Settings

Press Windows + I to open Settings.

Step 2: Open System Information

Select System, then choose About.

Step 3: Check Windows Specifications

Look under Windows specifications.

You can see your edition, version, and build number there.

If Windows Update is available, installing the latest updates can help prevent compatibility problems.

The Easiest Way to Install Ubuntu on Windows 11

The easiest method is to use the wsl command from an administrator terminal.

Windows can install WSL and Ubuntu with a single command on supported Windows 11 systems.

Step 1: Open Windows Terminal as Administrator

First, open the Start menu.

Search for Windows Terminal.

Right-click it and select Run as administrator.

If Windows asks for permission through User Account Control, select Yes.

You can also use PowerShell with administrator privileges.

Step 2: Run the WSL Installation Command

In Windows Terminal, enter:

wsl --install

Press Enter.

Windows will enable the required WSL components and install a default Linux distribution, which is commonly Ubuntu.

The process can take several minutes depending on your computer and internet connection.

Step 3: Restart Windows 11

After the installation finishes, Windows may ask you to restart your computer.

Save your work and restart Windows.

You can also restart manually if necessary.

Restarting allows Windows to finish enabling the required components.

Step 4: Launch Ubuntu

After Windows restarts, open the Start menu.

Search for Ubuntu.

Select the Ubuntu application.

The first launch can take a little longer than normal because Windows needs to prepare the Linux environment.

Step 5: Create Your Linux Username

Ubuntu will ask you to create a username.

Enter a username you want to use inside Ubuntu.

This username doesn’t have to match your Windows account name.

Linux usernames are usually written in lowercase.

Step 6: Create a Password

Ubuntu will then ask you to create a password.

Type your preferred password and press Enter.

When you type a Linux password in the terminal, characters may not appear on the screen. This is normal.

Type the password carefully and press Enter.

You may need to enter it a second time for confirmation.

Step 7: Finish the Ubuntu Setup

Once your username and password are created, Ubuntu will open its terminal.

You should see a prompt similar to:

username@computer:~$

This means your Ubuntu environment is ready.

You can now run Linux commands directly from Windows 11.

How to Check Whether Ubuntu Is Installed Correctly

After Ubuntu opens, try a basic command.

Enter:

ls

This displays files and folders in your current Linux directory.

You can also check your Ubuntu version with:

lsb_release -a

If the command works, your Ubuntu installation is functioning properly.

How to Update Ubuntu After Installation

It’s a good idea to update Ubuntu after installing it.

Run:

sudo apt update

Ubuntu may ask for your Linux password.

After the package information is refreshed, run:

sudo apt upgrade

If Ubuntu asks you to confirm the operation, type:

Y

and press Enter.

Keeping Ubuntu packages updated helps you receive bug fixes and security improvements.

How to Install Linux Programs in Ubuntu

Ubuntu uses package management tools to install many applications.

For example, you can install Git with:

sudo apt install git

You can install Python with:

sudo apt install python3

You can search for available packages with:

apt search package-name

Replace package-name with the software you’re looking for.

How to Access Windows Files From Ubuntu

One of the useful features of WSL is that Ubuntu can access Windows drives.

Your Windows C: drive is generally available under:

/mnt/c

For example, you can view its contents with:

cd /mnt/c
ls

Your Windows user folders can usually be accessed through the appropriate path under /mnt/c/Users/.

This makes it easy to work with files stored on Windows while using Linux tools.

How to Access Ubuntu Files From Windows

You can also access Linux files from Windows File Explorer.

In File Explorer’s address bar, you can enter:

\\wsl$

This allows you to browse your installed WSL distributions.

You can then navigate through the Ubuntu filesystem.

For best results, avoid manually modifying important Linux system files from Windows unless you know exactly what you’re doing.

How to Open Ubuntu From Windows Terminal

You don’t have to search for the Ubuntu application every time.

Open Windows Terminal and enter:

wsl

This starts your default Linux distribution.

You can also use:

wsl -l -v

This displays your installed WSL distributions and their WSL versions.

How to Set Ubuntu as Your Default WSL Distribution

If you have multiple Linux distributions installed, you can see them with:

wsl --list --verbose

To set Ubuntu as the default distribution, use:

wsl --set-default Ubuntu

The exact distribution name can vary depending on the installed Ubuntu release.

How to Install Ubuntu From the Microsoft Store

You can also install Ubuntu through the Microsoft Store.

Step 1: Open Microsoft Store

Open Start and search for Microsoft Store.

Step 2: Search for Ubuntu

Enter Ubuntu in the Store search box.

Several Ubuntu versions may be available.

Step 3: Choose an Ubuntu Version

Select the Ubuntu release you want to use.

For a beginner, choosing a current supported release is generally preferable.

Step 4: Select Install

Click Get or Install, depending on the Store interface.

Wait for the installation to finish.

Step 5: Launch Ubuntu

Select Open after installation.

Ubuntu will initialize and ask you to create a Linux username and password.

WSL 1 vs. WSL 2

Windows Subsystem for Linux has two major versions.

WSL 1 uses a compatibility layer to run Linux environments, while WSL 2 uses a real Linux kernel inside a lightweight virtualized environment.

For most modern installations, WSL 2 is the preferred option.

You can check your installed version with:

wsl --list --verbose

If Ubuntu is using WSL 2, the VERSION column should show 2.

How to Set Ubuntu to WSL 2

If your Ubuntu installation is using WSL 1, you can convert it to WSL 2.

First, identify the distribution name:

wsl --list --verbose

Then use:

wsl --set-version Ubuntu 2

Replace Ubuntu with the exact distribution name if necessary.

The conversion can take some time.

How to Update WSL

Windows also provides commands for updating the WSL components.

Open Windows Terminal as administrator and run:

wsl --update

Afterward, you can check WSL information with:

wsl --status

This can be useful when troubleshooting installation or compatibility problems.

How to Install Ubuntu With a Specific WSL Version

If you want to see available distributions, run:

wsl --list --online

Windows will display distributions that can be installed through WSL.

You can then install a specific distribution using:

wsl --install -d Ubuntu

The exact distribution name should match the name displayed by the list command.

How to Install a Linux Desktop With Ubuntu on Windows 11

Installing Ubuntu through WSL primarily gives you a Linux environment and terminal.

If your goal is to use the full Ubuntu desktop with graphical applications, you have additional options.

Option 1: WSL GUI Support

Modern WSL configurations can support Linux graphical applications through Windows’ Linux GUI integration.

This can allow compatible Linux GUI applications to appear alongside normal Windows applications.

Option 2: Virtual Machine

A virtual machine is another option if you want a more complete Ubuntu desktop environment.

Software such as a virtualization platform can run Ubuntu in a virtual computer window.

This is useful when your main goal is exploring the Ubuntu desktop rather than simply using Linux commands.

WSL vs. Dual Boot Ubuntu

A common question is whether WSL or dual booting is better.

WSL is simpler because you can keep Windows as your primary operating system and launch Ubuntu when needed.

Dual booting gives Ubuntu direct control of the computer when you boot into Linux, but it requires more setup and disk management.

Feature WSL Dual Boot
Easy installation Yes No
Keeps Windows Yes Yes
Separate Linux boot No Yes
Beginner-friendly Very Moderate/Advanced
Linux desktop experience Limited/Integrated Full
Disk partitioning Usually unnecessary Required

For learning Linux, programming, scripting, and development tools, WSL is often a convenient starting point.

Common Problems When Installing Ubuntu on Windows 11

Even though WSL makes installation simple, you may encounter problems.

Ubuntu Doesn’t Open

Restart Windows and try launching Ubuntu again.

You can also check the WSL status:

wsl --status

Then try:

wsl

WSL Command Is Not Recognized

If Windows doesn’t recognize wsl, make sure you’re using an updated Windows 11 installation.

Install available Windows updates and restart the computer.

You can also try running Windows Terminal as administrator.

Installation Gets Stuck

If installation appears stuck, check your internet connection.

Restart Windows and try the installation again.

Running the installation command from an administrator terminal can also help.

Virtualization Error Appears

WSL 2 relies on virtualization technologies.

If you see a virtualization-related error, check your computer’s firmware settings and make sure virtualization is enabled.

The exact setting name varies by computer manufacturer and processor.

Ubuntu Has No Internet Connection

Inside Ubuntu, try:

ping -c 4 google.com

If networking isn’t working, restart WSL:

wsl --shutdown

Then start Ubuntu again.

Ubuntu Uses Too Much Storage

WSL distributions use storage on your Windows drive.

Regularly remove unnecessary Linux packages and files.

You should also avoid storing large amounts of unnecessary data inside the Linux environment.

How to Shut Down Ubuntu

You don’t need to manually close Ubuntu every time.

You can close its terminal window normally.

If you want to stop all running WSL distributions, open Windows Terminal and run:

wsl --shutdown

This stops the WSL virtual machine environment.

How to Restart Ubuntu

To restart the WSL environment, run:

wsl --shutdown

Then launch Ubuntu again from the Start menu or Windows Terminal.

How to Uninstall Ubuntu From Windows 11

If you no longer need Ubuntu, you can remove the distribution.

First, check its exact name:

wsl --list --verbose

Then unregister it with:

wsl --unregister Ubuntu

Be careful with this command.

Unregistering a WSL distribution removes that Linux environment and its files. Make sure you’ve backed up anything important before doing it.

You can also remove the Ubuntu application through Settings > Apps > Installed apps when appropriate.

How to Back Up Your Ubuntu WSL Installation

If you’ve spent time configuring Ubuntu, creating a backup can be useful.

WSL supports exporting a distribution to a file.

For example:

wsl --export Ubuntu ubuntu-backup.tar

You can later use the exported file to restore the distribution on a compatible setup.

This is especially useful before making major changes to your WSL environment.

Tips for Using Ubuntu on Windows 11

Once Ubuntu is installed, a few habits can make the experience easier.

Learn Basic Linux Commands

Start with commands such as:

pwd
ls
cd
mkdir
cp
mv
rm
sudo
apt

Understanding these commands will make navigating Ubuntu much easier.

Keep Ubuntu Updated

Run:

sudo apt update

followed by:

sudo apt upgrade

periodically.

Keep Windows Updated

WSL is part of the Windows environment, so keeping Windows 11 updated can also help maintain compatibility.

Use Windows Terminal

Windows Terminal provides a convenient interface for Ubuntu, PowerShell, Command Prompt, and other shells.

You can create separate tabs for Windows and Linux environments.

Back Up Important Files

Don’t assume that files stored inside your Linux environment are automatically backed up.

Keep important projects and documents in a suitable backup location.

Is Ubuntu on Windows 11 Good for Beginners?

Yes. WSL makes Linux much easier to explore because you don’t need to replace Windows or create a traditional dual-boot configuration.

You can learn Linux commands, install development tools, experiment with programming environments, and work with Linux utilities while continuing to use Windows applications.

For someone completely new to Linux, WSL is often a less intimidating starting point than installing Ubuntu as a separate operating system.

Frequently Asked Questions

1. Can I install Ubuntu on Windows 11 without removing Windows?

Yes. WSL lets you install and use Ubuntu alongside Windows without replacing your Windows installation.

2. Is Ubuntu free on Windows 11?

Yes. Ubuntu is open-source software, and WSL provides supported ways to install Ubuntu on Windows.

3. Do I need a separate partition to install Ubuntu through WSL?

No. The WSL method doesn’t require you to create a traditional Ubuntu partition.

4. Can I uninstall Ubuntu later?

Yes. You can remove the Ubuntu WSL distribution when you no longer need it. Remember that unregistering the distribution deletes its Linux environment and stored files.

5. Is WSL better than dual booting Ubuntu?

It depends on your needs. WSL is generally easier for development, Linux commands, scripting, and learning. Dual booting can be preferable when you need a complete Ubuntu operating system running directly on the hardware.

Conclusion

Learning how to install Ubuntu on Windows 11 doesn’t have to involve complicated partitioning or replacing your current operating system. With Windows Subsystem for Linux, you can install Ubuntu and start using Linux tools directly from Windows.

The simplest approach is to open Windows Terminal as an administrator and run wsl --install. After restarting Windows, launch Ubuntu, create your Linux username and password, update the system, and begin exploring Linux commands.

If you’re new to Linux, WSL is a practical place to start. As you become more comfortable, you can explore graphical Linux applications, virtual machines, or even a traditional dual-boot setup if your needs change.

Key Takeaways

  • Windows 11 supports Ubuntu through WSL.
  • wsl --install is one of the easiest installation methods.
  • You can use Ubuntu without removing Windows.
  • WSL 2 is generally the preferred WSL version for modern installations.
  • Ubuntu can access Windows drives through /mnt/.
  • You can update Ubuntu with sudo apt update and sudo apt upgrade.
  • Windows Terminal makes it easy to work with Ubuntu.
  • Back up important Linux files before removing or modifying your WSL distribution.
  • WSL is ideal for learning Linux, programming, scripting, and development.
  • Virtual machines and dual booting are alternatives when you need a different Ubuntu experience.

If you want, I can also make this article more SEO-heavy with stronger keyword variations, AEO-style answers, and a more detailed 2,500-word format.