}

How to Install Aircrack-ng on Debian and Kali Linux (2026)

How to Install Aircrack-ng on Debian and Kali Linux (2026)

Quick answer: Kali Linux ships with Aircrack-ng pre-installed — just open a terminal and run aircrack-ng --version to confirm. On Debian, run sudo apt install aircrack-ng and you are ready to go.

Aircrack-ng is the de facto standard suite for auditing WiFi network security. It covers the full workflow: capturing packets with airodump-ng, injecting frames with aireplay-ng, and cracking WEP/WPA keys with aircrack-ng itself. This guide covers every installation method — from the one-liner on Debian to compiling the latest development build from source.


Kali Linux: Aircrack-ng Is Pre-Installed

Kali Linux includes Aircrack-ng in its default installation. No extra steps are required.

Verify the installation

aircrack-ng --version

Expected output (version numbers vary by Kali release):

Aircrack-ng 1.7  - (C) 2006-2022 Thomas d'Otreppe
https://www.aircrack-ng.org

If the command is not found — for example after a minimal Kali netinstall — reinstall the package:

sudo apt update
sudo apt install aircrack-ng

Confirm the full suite is present

Aircrack-ng is a suite of tools, not a single binary. Verify the key components are available:

which aircrack-ng airodump-ng aireplay-ng airmon-ng

All four paths should resolve. If any are missing, the package above installs all of them.


Debian: Install via APT

Aircrack-ng is available in the official Debian repositories (Bullseye, Bookworm, and later). This is the recommended method for most users.

sudo apt update
sudo apt install aircrack-ng

The package manager pulls in all required dependencies automatically. Once the installation finishes, verify it:

aircrack-ng --version

Note on Debian stable vs. backports

The version in Debian stable lags behind the latest upstream release. If you need a newer version for a specific feature or bug fix, enable backports:

echo "deb http://deb.debian.org/debian bookworm-backports main" | sudo tee /etc/apt/sources.list.d/backports.list
sudo apt update
sudo apt install -t bookworm-backports aircrack-ng

Build Aircrack-ng from Source

Building from source gives you the latest development code and access to experimental features not yet in packaged releases. This is the right path if you need bleeding-edge WPA3 support or want to contribute patches.

Step 1: Install build dependencies

sudo apt update
sudo apt install build-essential git libnl-3-dev libnl-genl-3-dev \
    libssl-dev ethtool shtool rfkill zlib1g-dev libpcap-dev \
    libsqlite3-dev libhwloc-dev libcmocka-dev python3-setuptools \
    python3-pip pkg-config

Key packages and what they do:

Package Purpose
libnl-3-dev / libnl-genl-3-dev Netlink socket library for wireless interface control
libssl-dev OpenSSL headers for WPA/WPA2 cracking support
libpcap-dev Packet capture library for airodump-ng
zlib1g-dev Compression support
ethtool Network interface diagnostics
rfkill Manage hardware RF kill switches

Step 2: Clone the repository

git clone https://github.com/aircrack-ng/aircrack-ng.git
cd aircrack-ng

Step 3: Configure and build

autoreconf -i
./configure --with-experimental
make

The --with-experimental flag enables features still under active development, including some WPA3-SAE cracking utilities. Omit it if you want a conservative stable build.

Step 4: Install system-wide

sudo make install

Verify the installed binary:

aircrack-ng --version

Step 5 (optional): Run the test suite

make check

This runs the bundled unit tests and confirms your build is sound.


Common Installation Errors

configure: error: libnl-3 not found

You are missing the Netlink library. Install it:

sudo apt install libnl-3-dev libnl-genl-3-dev

Then re-run autoreconf -i && ./configure --with-experimental.

configure: error: OpenSSL not found

sudo apt install libssl-dev

make: command not found

You are missing the build toolchain:

sudo apt install build-essential

aircrack-ng: command not found after make install

The install prefix defaults to /usr/local. Ensure /usr/local/bin is in your PATH:

export PATH="/usr/local/bin:$PATH"
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc

APT reports E: Unable to locate package aircrack-ng

Your package lists are stale. Run sudo apt update first, then retry the install. On very minimal systems, confirm the main component is enabled in /etc/apt/sources.list.

Monitor mode interface not appearing

The Aircrack-ng suite requires a wireless adapter that supports monitor mode. If airmon-ng start wlan0 fails or produces no wlan0mon interface, the issue is the driver, not Aircrack-ng. See the Alfa AWUS036ACH setup guide and the best Kali-compatible USB WiFi adapters for compatible hardware recommendations.


Next Steps

With Aircrack-ng installed you can follow the complete WPA2 handshake capture and crack tutorial, which walks through putting an adapter into monitor mode, capturing a four-way handshake with airodump-ng, deauthenticating a client to force a reconnect with aireplay-ng, and running aircrack-ng against the capture file.

If your adapter does not support monitor mode or packet injection out of the box, the best Kali-compatible USB WiFi adapters guide lists hardware known to work with the full Aircrack-ng suite.


Frequently Asked Questions

Q: Does Aircrack-ng work on Debian without Kali?

Yes. Aircrack-ng is a standard package in Debian's repositories. sudo apt install aircrack-ng works on any supported Debian release. The only difference is that Kali includes it by default and ships kernel patches that improve driver support for injection-capable adapters.

Q: Which version of Aircrack-ng should I use?

For most users, the packaged version from apt is sufficient. Build from source only if you need a specific unreleased feature or you are doing development work. The packaged version on Debian stable is typically one major release behind upstream; Kali tracks upstream more closely.

Q: Can I use Aircrack-ng on WSL (Windows Subsystem for Linux)?

Aircrack-ng installs fine on WSL, but monitor mode and packet injection require direct access to a USB WiFi adapter that supports those modes. WSL 2's networking stack does not pass through USB devices by default. You need usbipd-win to attach a USB adapter to WSL 2, and even then driver support varies. For serious wireless auditing, a native Linux install or a live Kali boot is strongly recommended.