Ubuntu – Can’t install aircrack-ng

aircrack-ngcommand line

Whenever I attempt to install aircrack-ng in terminal I get the following error:

Package aircrack-ng is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  iw

E: Package 'aircrack-ng' has no installation candidate"

I'm new to Ubuntu and so have no idea what to do.

Best Answer

It has been removed from ubuntu repositories as message says. you can install it by doing following procedure

sudo apt-get install build-essential
sudo apt-get install libssl-dev
wget http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz
tar -zxvf aircrack-ng-1.1.tar.gz
cd aircrack-ng-1.1

In the aircrack-ng-1.1 directory there is a file called common.mak, use your favorite editor to open the file and scroll down till you see the following line:

CFLAGS ?= -g -W -Wall -Werror -O3

Delete the -Werror variable, so that the line now looks like the following. Save and exit.

CFLAGS ?= -g -W -Wall -O3

Run make and sudo make install in terminal to get aircrack-ng up and running."

For build-essential go to update manager > settings > ubuntu softwares and see if top main is checked.

enter image description here

Related Question