Arch Linux is officially supported on WSL 2
Step 1 – Ensure WSL 2 is Installed
wsl --installStep 2 – Install Arch Linux
wsl --install -d archlinuxThis downloads and installs the official Arch Linux WSL image.
Step 3 – Initial Setup
Inside archlinux shell, Set a root password:
passwdUpdate system:
pacman -SyuInstall sudo if missing:
pacman -S sudoCreate a new user with admin rights:
useradd -m -G wheel <username>
passwd <username>
EDITOR=nano visudo # Uncomment %wheel ALL=(ALL) ALLBack to Window PowerShell, Set default user:
wsl --manage archlinux --set-default-user <username>