Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Install Arch Linux on WSL 2 in Windows

Install the official Arch Linux distribution on WSL 2, verify it in PowerShell, then update packages and check your Linux user.

Table of Contents

Install the official Arch Linux image with wsl --install -d archlinux from PowerShell. Arch requires WSL 2. If the command can’t find the distribution, update WSL and check the online list before troubleshooting inside Linux.

1. Set up WSL 2

If WSL is new to this computer, open Windows Terminal as administrator and run:

wsl --install --no-distribution

Restart Windows if asked. If WSL is already installed, start with wsl --update. Then use wsl --list --online to check the distribution name.

How to Install Arch Linux in Windows Subsystem for Linux Picture 1

2. Install and launch Arch Linux

In PowerShell, run:

wsl --set-default-version 2
wsl --install -d archlinux
wsl --list --verbose
wsl -d archlinux

In the list of installed distributions, look for archlinux with VERSION 2. If installation opens an Arch shell automatically, you can run the verification commands from a separate PowerShell window.

How to Install Arch Linux in Windows Subsystem for Linux Picture 2 How to Install Arch Linux in Windows Subsystem for Linux Picture 3

3. Check your user and update Arch

Run whoami in the Arch shell. If it returns root, update with pacman -Syu. If you’re signed in as a regular user with sudo configured, run sudo pacman -Syu. This synchronizes the package database and updates installed packages together. The ArchWiki instructions also cover creating and setting a regular default user.

If Arch won’t install or start

  • Virtualization error: Check that hardware virtualization is enabled and that WSL 2 works on your PC.
  • Distribution missing: Run wsl --update and wsl --list --online again. Check the ArchWiki for the supported image architecture.
  • Service or hardware issue: WSL 2 can run systemd on supported versions, and access to hardware is different from a native Arch installation. Check what your workload requires before troubleshooting the distribution itself.

For other WSL commands, see Microsoft’s command reference. If you’re deciding whether WSL fits your workflow, see what Windows Subsystem for Linux is useful for.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.