Windows

How to Install Debian with WSL on Windows 11

Richard
Written by
Richard
Jun 20, 2021 Updated Apr 1, 2026 4 min read
How to Install Debian with WSL on Windows 11

This tutorial shows you how to install and run Debian Linux on Windows Subsystem for Linux 2 (WSL2). It’s easier than you might think.

Back in 2017, Windows released Windows Subsystem for Linux. This tool lets you run a Linux environment directly in Windows without needing a separate virtual machine or dual-boot setup.

WSL2 is the newer version. It’s faster and works better with Linux programs. It uses a new architecture that makes running Linux on Windows much smoother.

Why Would You Want This?

Installing Debian with WSL on Windows 11 gives you access to Linux without leaving Windows. You can use Linux command-line tools like bash, ssh, git, and apt. This is helpful for developers who need Linux tools or anyone wanting to try Linux without switching operating systems.

What You Need Before Starting

Make sure your computer meets these requirements:

  • Windows 10 May 2020 (2004) or newer, or Windows 11
  • A computer that supports Hyper-V Virtualization

Step 1: Enable WSL in Windows

⚠️ Admin Privileges Required

First, you need to open PowerShell as an administrator. Click on Start and type “PowerShell”.

Right-click Windows PowerShell and choose “Run as administrator”.

Windows PowerShell running as administrator to enable WSL features

When the window opens, copy and paste this command:

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

Press Enter. You should see a success message that looks like this:

Deployment Image Servicing and Management tool
Version: 10.0.19041.844
Image Version: 10.0.19042.844
Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.

Step 2: Enable Virtual Machine Platform

⚠️ Admin Privileges Required

WSL2 needs the Virtual Machine Platform enabled. This is different from Hyper-V. In the same PowerShell window, run this command:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

If you’re using Windows 10 version earlier than 2004, use this command instead:

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart

Important: After running these commands, restart your computer. The changes won’t work until you do.

Step 3: Set WSL2 as Default

⚠️ Admin Privileges Required

After your computer restarts, open PowerShell as administrator again. Run this command:

wsl --set-default-version 2

If you get an error about a missing Linux kernel, download it from here: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

Run the installer, then try the command above again.

Installing the Linux kernel update package for WSL2 on Windows

Step 4: Download and Install Debian

Now that WSL2 is ready, you can install Debian. Open the Windows Store using this link: Get Debian – Microsoft Store

Debian on Windows lets you use the Debian Terminal and run Linux command-line tools like bash, ssh, git, and apt.

Debian Linux installation process via the Microsoft Store for WSL

Click the “Get” button to download and install Debian.

After installation finishes, you’ll see a “Launch” button.

Launching the installed Debian application on Windows 11

Step 5: Create Your Debian Account

Click “Launch” to start Debian for the first time. The system will ask you to create a user account. This may take a few minutes.

You’ll see a message like this:

Installing, this may take a few minutes…
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: user001
New password:
Retype new password:
passwd: password updated successfully
Installation successful!
user001@DESKTOP-ABC1234:~$

Choose a username and password. Remember them—you’ll use them to log into Debian.

Step 6: Launch Debian Anytime

Now Debian is installed. To open it later, search for “Debian” from the Windows Start menu. You can also pin it to your taskbar for quick access.

Debian Linux app interface running within the Windows environment

Debian Linux command line terminal running inside Windows 11

Troubleshooting Tips

If you run into problems, try these commands in PowerShell:

wsl --set-default-version 1

bcdedit /set hypervisorlaunchtype auto start

Summary

You now know how to install WSL2 and Debian on Windows. Here’s what you did:

  • Enabled Windows Subsystem for Linux (WSL) using PowerShell
  • Enabled the Virtual Machine Platform for WSL2
  • Set WSL2 as your default WSL version
  • Downloaded and installed Debian from the Windows Store
  • Created your Debian user account
  • Launched Debian and pinned it to your taskbar

You now have a full Linux environment running on Windows without needing a virtual machine or dual-boot setup. You can use all your favorite Linux command-line tools directly from Windows.

Frequently Asked Questions

What is WSL and how does it work?

WSL, or Windows Subsystem for Linux, allows users to run a GNU/Linux environment directly on Windows without the need for a virtual machine or dual-boot setup. It provides access to command-line tools and utilities, making it easier for developers to work with Linux-based applications.

How do I enable WSL 2 on Windows 11?

To enable WSL 2 on Windows 11, open PowerShell as an administrator and run the command 'dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart'. Then, enable the Virtual Machine Platform with 'dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart'.

Can I run Debian on Windows 11 using WSL?

Yes, you can run Debian on Windows 11 using WSL. Once WSL is enabled, you can install Debian from the Microsoft Store and access its command-line utilities directly from your Windows environment.

What are the system requirements for WSL 2?

To use WSL 2, you need Windows 10 version 2004 or later, and your computer must support Hyper-V virtualization. Ensure that virtualization is enabled in your BIOS settings for optimal performance.

Is WSL 2 better than WSL 1?

Yes, WSL 2 offers significant improvements over WSL 1, including better performance, complete system call compatibility, and a new architecture that enhances the overall experience of running Linux on Windows.

Was this guide helpful?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2458 articles → Twitter

📚 Related Tutorials

How to Access Linux Files on Windows 11 Using WSL
Windows How to Access Linux Files on Windows 11 Using WSL
How to Enable or Disable Virtual Machine Platform in Windows 11
Windows How to Enable or Disable Virtual Machine Platform in Windows 11
How to Run Apps as Administrator in Windows 11
Windows How to Run Apps as Administrator in Windows 11
How to Use the Run as Command in Windows 11
Windows How to Use the Run as Command in Windows 11

Leave a Reply

Your email address will not be published. Required fields are marked *