Raspberry Pi: How to install aircrack-ng suite

How to install aircrack-ng suite to your Raspberry Pi.

Installing aircrack-ng suite (for airodump-ng, airbase-ng and so on) is really easy and pretty quick:

First we want to install libssl-dev or we will have some problems with aircrack-ng:

apt-get -y install libssl-dev

Now we can install aircrack-ng (We need working internet connection here):

wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta1.tar.gz
tar -zxvf aircrack-ng-1.2-beta1.tar.gz
cd aircrack-ng-1.2-beta1
make install

This will download aircrack-ng package from aircrack-ng.org site and extract it to a aircrack-ng-1.2-beta1 directory and then install it from there.

Now you probably want to update OUI thingy with command:


and then you need to install iw to get your wifi card to monitor mode:

apt-get -y install iw

after that command:

airmon-ng start wlan0

Should start wlan0 on monitor mode as mon0 and we can try airodump-ng:

airodump-ng mon0

And we should see some info about current wireless networks around us.

39 comments to Raspberry Pi: How to install aircrack-ng suite

  • Bp

    It doesn’t work for me. I can’t get the airmon-ng start wlan0 command to work.

  • xisle35

    I also can’t seem to get airmon-ng to compile, it seems to compile and recognize the rest of the package, but not that darn airmon…

  • xisle35

    no, it appears to compile just fine, however, no airmon-ng to be found

  • Steve

    Worked for me but it was stuck on channel 1. I had to killall wpa_cli wpa_supplicant ifplugd. Then it scanned channels fine.

  • Bob

    I had issues when first running after doing make install do a airodump-ng-oui-update

    I spent hours trying to get it off stuck channel.

  • GW

    pi@raspberrypi ~/aircrack-ng-1.2-beta1 $ airodump-ng-oui-update
    -bash: airodump-ng-oui-update: command not found

    pi@raspberrypi ~/aircrack-ng-1.2-beta1 $ airmon-ng start wlan0
    -bash: airmon-ng: command not found

    Of course I am a total noob, but i followed steps as best as I could.

    Any help? :)

  • Alex

    I received the error: “airmon-ng: command not found” after make install. I then noticed I was in the src/ directory and not the root of the extracted archive. Check that you are compiling from the correct directory. It fixed my airmon-ng problem.

    • Sounds like that your aircrack-ng suite is not installed correctly. You should probably try that again and see if that helps.
      Check do you see any errors when you are installing it.

  • Jaro

    Great solution, everything works fine on Raspbian.

    Good job :-)

    Best Regards

  • Win

    So I installed aircrack-ng for the third time (the first two times I didn’t have an issue) and now I am having issues. After a fresh install of Raspbain on an SD card I did a sudo apt-get update and then followed the installation instructions from this source. I am having the same issue as above, I cannot start “airodump-oui-update” “-bash: airodump-ng-oui-update: command not found”
    I cannot complete a “sudo airmon-ng start wlan0” either “command not found”
    I could really use some help with this.

    • Did you do all that logged in as a root user? You can check that with command whoami and if that says that you are user pi then log in as a root and try again.

  • Fatman

    I needed to install libnl3-dev to get it to work.
    apt-get install -y libnl-3-dev

    • Derpy Hooves

      I needed this too! Apparently libnl3-dev isn’t the package, as I found out here. It’s libnl-3-dev. Thanks for helping!

  • Nick

    After running the command “airmon-ng start wlan0” it says that it found processes that could cause trouble. After killing them it gives me an empty list. It won’t run the “airodump-ng mon0” command. It says:

    Interface mon0:
    ioctl (SIOCGIFINDEX) failed: No such device

    I’m pretty sure that the wlan adapter was listed as wlan0.

  • Maurice Colon


    Great article, thanks for the write-up. Just for the notes and for others…

    I got the following error when trying to ‘make’

    common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3.. Stop.

    I installed libnl1, but that didn’t work. libnl3 worked fine. Here’s the command.

    $apt-get install -y libnl-3-dev

    Cheers & good luck!

  • Dave Spart

    Further to my previous comment, please ammend the last line. Sorry, apologies, the correct libraries to install are as follows..

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

    • fratermus

      Right on, Dave

      “sudo apt-get install libnl-genl-3-dev libnl-3-dev” was exactly what I needed.

      • xpie

        ..everytime i create a new vm maching or live usb and get this error.. i goole the error go below youtube video, click the link to this page and search for your comment.. foe the past…….

  • Michael Burns

    beta 3 is available and I have done make, make install, and it works perfectly… BUT I am trying to install another program that has aircrack-ng as a dependency, but it complains that it is unmet. When using dpkg -l, aircrack-ng is not listed! How the heck can I fix that?

  • Chris

    Kept getting error messages in the “make install” process… All I needed to do was run it as damn superuser! “sudo make install”. Wish the error message has said permission denied or something.

    Thanks for the Tut!

  • John Hatfield

    Works fine on RaspPi B
    RasPi 2 gives error message
    Interface mon0:
    ioctl(SIGCGIFINDEX) failed: No such device

  • foo

    @john “sudo airodump-ng wlan0mon” works well on my Pi2

  • hi I’m stuck at Downloading IEEE OUI file… how many mb it is? and I’m in the philippines our connection are slow here….

  • ohh btw it just finish but airmon-ng command not found…….. and i have install aircrack…. and i can hack WEP… can you message me how?? on Facebook.. cause I have school and i can’t really use my laptop during schooldays

  • miaw

    I, too, when trying to execute the make command was receiving the following:

    “common.mak:85: *** Cannot find development files for any supported version of libnl. install either libnl1 or libnl3.. Stop.”

    I had imaged my Pi with an lean version of Kali Linux, and was banging my head on my desk trying to get the right libnl package but none seemed to work. I checked the common.mak file and saw that to determine versions it uses pkg-config, and lo and behold, this was not a package installed on my version of Kali. As soon as I installed that package, I was good to go (I had already installed libnl-genl-3-dev libnl-3-dev). Probably a super newbie problem that only applies to me, but maybe it’ll help someone out there.

  • carlitos

    hello i get an error ***wireless tools not found*** when running ***airmon-ng wlan0*** command i checked it is the right interface and follow all instructions, all process went well.

  • hiddenotebook

    works perfect on 2015 thank you very much!

  • Xerophyte

    Worked perfectly. Now what? It’s capturing packets and recognizing other waps. What’s next?

  • CK

    after the
    sudo make
    command in ~/aircrack-ng-1.2-rc3 $, the process stops with:

    /usr/bin/ld: cannot find -lnl-genl-3
    collect2: error: ld returned 1 exit status
    Makefile:190: recipe for target ‘wpaclean’ failed
    make[1]: *** [wpaclean] Error 1
    make[1]: Leaving directory ‘/home/pi/aircrack-ng-1.2-rc3/src’
    Makefile:25: recipe for target ‘all’ failed
    make: *** [all] Error 2

    Any suggestions?

  • This article is awesome , helped me a lot.

  • dan

    mon0 wont work, i couldnt get airodump to work with wlan0 cause its not in monitor mode but i tested wlan0 with netsniff-ng and it works, but i also tested mon0 with netsniff-ng and theres nothing going through it. no errors just no traffic. im pretty good with aircrack and linux but i dont know how to get airodump to work with a non monitor interface of get mon0 to work. please help!!

  • Zach Lewis

    Hello, i am upto the tar command but it returns
    tar(child): aircrack-ng-1.2-beta1: cannot open: No such file or directory.
    tar(child): Error is not recoverable: exiting now
    tar: child returned status 2
    tar: child Error is not recoverable: exiting now
    Please help!

  • Kar

    Most of the above errors are causing by missing libraries.
    Best command to run is: sudo apt-get -y install libssl-dev libnl-3-dev libnl-genl-3-dev ethtool in place of apt-get -y install libssl-dev

    this will install all required files

  • tilde

    At first I wasn’t logged in as root and it didn’t work, but you have to use sudo!

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>