October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk5 min

How to Install Debian on Windows 11 with WSL and Use APT

Set up Debian on Windows 11 with WSL, then install and update Linux packages from Debian using APT—not as native Windows installers.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can run Debian on Windows 11 through Windows Subsystem for Linux (WSL), then install Debian software inside that Linux environment with apt. Debian .deb packages do not install directly into Windows. In an administrator PowerShell window, use wsl --install -d Debian to select Debian rather than the Ubuntu distribution installed by the plain wsl --install command.

What “Debian package for Windows 11” means

WSL lets Windows host a Linux distribution such as Debian. It gives you a Debian command line and package manager without replacing Windows, but it does not make Debian’s .deb files native Windows installers. Install and manage those packages from within the Debian environment.

As an Amazon Associate I earn from qualifying purchases.

There is also a Debian package named wsl, but it is “Wsman Shell Command Line ‘whistle’”—not Microsoft’s Windows Subsystem for Linux. If your goal is a Debian environment on Windows, install the Debian WSL distribution instead. Microsoft’s WSL installation guide and Debian’s WSL guide describe that setup.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Debian on Windows 11

Microsoft’s one-command installation instructions apply to Windows 11 and Windows 10 version 2004 (build 19041) or later. The Debian-specific route below uses Microsoft’s current install command; Debian’s more detailed WSL 2 guidance assumes Windows 11 and calls for hardware virtualization to be enabled in UEFI/BIOS.

  1. Open PowerShell as an administrator. Search for PowerShell, open its context menu, and choose Run as administrator.
  2. Check the available distribution name if needed. Run wsl --list --online. The Debian distribution is listed as Debian.
  3. Install Debian. Run wsl --install -d Debian. The plain wsl --install command installs Ubuntu by default, so include -d Debian to choose Debian.
  4. Restart Windows if prompted. A restart is part of Microsoft’s one-command installation instructions.
  5. Launch Debian and create its Linux account. The first launch may take a few minutes while the distribution’s files decompress. Enter a Linux username and password when prompted. Password characters may not appear as you type; that is normal for a terminal password prompt.

For a more manual WSL 2 setup, Debian’s guide describes enabling the Windows Subsystem for Linux and Virtual Machine Platform Windows features, restarting, updating WSL, setting WSL 2 as the default if needed, and then installing Debian. See Debian’s WSL instructions for Debian-specific setup details; Microsoft’s install guide is the better authority for the current one-command route.

Install and update Debian packages with APT

Open the Debian distribution—not an ordinary PowerShell prompt—to run Linux package commands. APT updates and installs software inside Debian; Windows does not automatically update that software for you.

  1. Refresh the package index: sudo apt update
  2. Upgrade installed packages: sudo apt upgrade. Debian’s WSL guide also illustrates sudo apt dist-upgrade for distribution upgrades.
  3. Install a package: sudo apt install package-name, replacing package-name with the Debian package you want.

For example, the general form is sudo apt install git. APT may ask for the Linux account password you created during first launch. Microsoft’s WSL environment setup guide recommends updating Debian or Ubuntu with sudo apt update and sudo apt upgrade, and notes that Windows does not update WSL distributions automatically.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

Choose WSL 2, and know when it is not enough

WSL 2 with Debian is a fit when you want Linux command-line tools integrated with Windows and do not need to replace the host operating system. Debian’s guide documents a Debian environment under WSL, including GUI integration, but cautions that software requiring certain services or low-level hardware access may not work as it would on a physical Debian installation.

Option When it fits Important distinction
Debian on WSL 2 You want Debian tools alongside Windows and convenient access to Windows applications and files. Requires WSL setup; the Debian WSL 2 route assumes firmware virtualization. Systemd and GUI apps have setup requirements, and some hardware-dependent software may fail.
Native/dual-boot Debian or a traditional virtual machine You need a standalone Debian installation or a workload that depends on hardware or services WSL does not support. These are alternatives to WSL, not steps in this Windows-integrated setup. The cited guides do not provide a full comparison of their trade-offs.

Do not assume WSL exactly reproduces bare-metal Debian behavior. If your software needs direct low-level hardware access or services unsupported by the Windows kernel or virtualization interface, consider a native installation or a traditional virtual machine instead.

Optional setup: enable systemd in Debian

WSL supports systemd, but Debian may need explicit configuration. Microsoft’s documented steps require WSL version 0.67.6 or newer; for Debian, Microsoft specifically calls for both the systemd and systemd-sysv packages.

Rank #3
  1. Update Debian and install the required packages: run sudo apt update, then sudo apt install systemd systemd-sysv.
  2. Edit the WSL configuration: open /etc/wsl.conf with a text editor running with administrator privileges, such as sudo nano /etc/wsl.conf. Add these lines, preserving any existing settings:
    [boot]
    systemd=true
  3. Restart the WSL environment: exit Debian, then in PowerShell run wsl --shutdown. Launch Debian again.
  4. Verify systemd: in Debian, run systemctl and check that it returns service-manager output rather than an error.

Follow Microsoft’s current systemd configuration instructions if a command behaves differently or you need details for your WSL version. Do not append configuration using a command that applies sudo only to echo; shell redirection is handled by the current shell and may fail to write a protected file.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Optional setup: run Debian GUI apps

Debian’s documented WSL GUI path requires WSL 2 and recommends Debian Bookworm or later; the guide also lists mesa-utils as a Debian-side requirement. Install the package in Debian with sudo apt install mesa-utils if you are following that documented path. Installed apps can be launched from the Debian shell or the Windows Start menu, but integration support does not guarantee that every Linux GUI application will work.

Consult Debian’s WSL guide for its GUI-specific instructions and requirements.

Rank #4
Windows 11 Laptop with i3 Processor 15.6" Work Laptop for College Students
  • 【Efficient Performance】 Powered by Intel Core i3 processor (2 cores, 4 threads, up to 3.4GHz) with 12GB RAM and 256GB SSD. Handles multitasking, office software, online classes, and HD video streaming smoothly. Integrated Intel UHD Graphics 620
  • Backlit Keyboard & Complete Package】Comes with a cool backlit keyboard. Comes with awebcam, dual stereo speakers (8Ω/1.0W each), DC charger, and user manual – ready for late-night studying, online classes, video conferencing, and daily productivity
  • 【Vibrant Display】 15.6-inch Full HD (1920x1080) anti-glare screen with 16:9 aspect ratio delivers crisp images and vivid colors – perfect for studying, watching lectures, or entertainment. Thin-bezel design maximizes viewing area
  • 【Fast Connectivity & Expansion】 Equipped with WiFi 6 (802.11ax) and Bluetooth 5.2 for stable, high-speed wireless. Features 3 x USB 3.0, HDMI 2.1, Type-C (supports PD3.0 fast charging), and a TF card slot expandable up to 2TB – easily connect external monitors, mice, drives, or expand storage for all your files
  • 【Long Battery Life & Portable】 Built-in 11.55V 5000mAh/57.75Wh high-capacity battery delivers approximately 7 hours of mixed-use battery life – enough for a full day of classes and assignments. Lightweight at just 1.63kg (3.6 lbs) and 19.5mm thin, plus a compact packing size – easily slips into a backpack for campus, library, or coffee shop

Use Windows Terminal and keep project files in the right filesystem

Windows Terminal is useful when you work across several command lines; installing a WSL distribution creates a terminal profile for it. For projects built with Linux command-line tools, Microsoft recommends keeping files in the WSL Linux filesystem for best speed. Windows and Linux can access each other’s files, but working across the two filesystems may be significantly slower.

To open the current WSL directory in Windows File Explorer, run explorer.exe . from the Debian shell. Each WSL distribution has its own Linux accounts and passwords, and a distribution installation belongs to the Windows user account that installed it; it is not automatically shared with other Windows accounts. See Microsoft’s environment setup guidance for terminal, file, and account details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Installing Microsoft software packages for Debian

If by “Debian package” you mean software published by Microsoft for Debian, that is a separate case from installing a package from Debian’s repositories. Microsoft’s instructions use a repository configuration package selected for the Debian release and version. It adds the repository information and public key used to validate signed packages; after configuring it, you refresh APT and install the desired software.

Use Microsoft’s current Linux Software Repository instructions to choose the correct configuration package for your Debian release. Avoid copying a repository path or setup command intended for a different release.

Quick Recap

Bestseller No. 1
Bestseller No. 2
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$285.00
Bestseller No. 3
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$245.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.