Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to run sudo airmon-ng start wlan0. In 11.10, this works fine, but in 12.04 it doesn't: it cannot find the command. So I ran sudo apt-get install airmon-ng, but this is the result I get:

Building dependency tree
Reading state information... Done
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:
E: Package 'aircrack-ng' has no installation candidate

Any ideas?

share|improve this question
up vote 4 down vote accepted

How to install aircrack-ng on Ubuntu 12.04. Open terminal:

  1. sudo apt-get install build-essential
  2. sudo apt-get install libssl-dev
  3. wget

Now you can make new directory

  1. mkdir aircrack
  2. cd Downloads
  3. mv aircrack-ng-1.1.tar.gz ~/aircrack
  4. cd ..
  5. cd aircrack
  6. tar -zxvf aircrack-ng-1.1.tar.gz
  7. cd aircrack-ng-1.1
  8. sudo gedit common.mak

in this file find

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

delete -Werror to look like this

  1. CFLAGS ?= -g -W -Wall -O3

save and close

  1. make
  2. sudo make install

Here is my tube link:

share|improve this answer

Another way around it is to grab the latest iw tarball from

Remove iw

sudo apt-get remove iw

Then extract the source code from the tarball, compile and install.

share|improve this answer

Built it yourself- I do not know why it is not in 12.04 anymore, but according to aptitude, it has been replaced by or conflicts with the iw package.

% aptitude show iw
Package: iw                              
New: yes
State: installed
Automatically installed: yes
Version: 3.2-1
Priority: optional
Section: net
Maintainer: Ubuntu Developers <>
Architecture: amd64
Uncompressed Size: 152 k
Depends: libc6 (>= 2.7), libnl-3-200 (>= 3.2.3), libnl-genl-3-200 (>= 3.2.3)
Recommends: crda
Conflicts: iw
Breaks: aircrack-ng (< 1:1.0~rc2-1), aircrack-ng (< 1:1.0~rc2-1)
Replaces: aircrack-ng (< 1:1.0~rc2-1), aircrack-ng (< 1:1.0~rc2-1)
Description: tool for configuring Linux wireless devices
 This package contains the `iw' tool which allows you to configure and show
 information about wireless networking.
share|improve this answer

You can download the required package from teh following link and install it using Ubuntu Software Center-
You can download either of the following packages depending on your Ubuntu installation(32bit/64bit):


N.B: I had installed it successfully on Ubuntu 12.04 using the above package.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.