Aircrack-ng is a network software suite consisting of a detector, packet sniffer, WEP and WPA/WPA2-PSK cracker and analysis tool for 802.11 wireless LANs. It works with any wireless network interface controller whose driver supports raw monitoring mode and can sniff 802.11a, 802.11b and 802.11g traffic. (Wikipedia)
Further information: Ubuntu 12.04: Aircrack-ng installieren (German)
Execute the following commands
apt-get install build-essential libssl-dev iw wget http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz tar xfvz aircrack-ng-1.1.tar.gz cd aircrack-ng-1.1 vim common.mak
Search for the line ...
CFLAGS ?= -g -W -Wall -Werror -O3
... and change it to
CFLAGS ?= -g -W -Wall -O3
Save the file.
Build and install the program
make make install
Check the success by checking the version: