我需要运行sudo airmon-ng start wlan0
。在 11.10 中,这可以正常工作,但在 12.04 中却不行:它找不到命令。所以我运行了sudo apt-get install airmon-ng
,但这是我得到的结果:
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:
iw
E: Package 'aircrack-ng' has no installation candidate
有任何想法吗?
答案1
如何在 Ubuntu 12.04 上安装 aircrack-ng。打开终端:
sudo apt-get install build-essential
sudo apt-get install libssl-dev
wget http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz
现在您可以创建新目录
mkdir aircrack
cd Downloads
mv aircrack-ng-1.1.tar.gz ~/aircrack
cd ..
cd aircrack
tar -zxvf aircrack-ng-1.1.tar.gz
cd aircrack-ng-1.1
sudo gedit common.mak
在此文件中找到
CFLAGS ?= -g -W -Wall -Werror -O3
删除 -Werror 看起来像这样
CFLAGS ?= -g -W -Wall -O3
保存并关闭
make
sudo make install
答案2
另一种解决方法是从以下位置获取最新的 iw tarball https://www.kernel.org/pub/software/network/iw/
移除 iw
sudo apt-get 删除 iw
然后从 tarball 中提取源代码,编译并安装。
答案3
自己构建 - 我不知道为什么它不再在 12.04 中,但是根据 aptitude,它已被 iw 包替换或与 iw 包冲突。
% aptitude show iw
Package: iw
New: yes
State: installed
Automatically installed: yes
Version: 3.2-1
Priority: optional
Section: net
Maintainer: Ubuntu Developers <[email protected]>
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.
答案4
您可以从以下链接下载所需的软件包,然后使用 Ubuntu 软件中心进行安装 -
http://ubuntu2.cica.es/ubuntu/ubuntu/pool/universe/a/aircrack-ng/
您可以根据您的 Ubuntu 安装(32 位 / 64 位)下载以下任一软件包:
- http://ubuntu2.cica.es/ubuntu/ubuntu/pool/universe/a/aircrack-ng/aircrack-ng_1.1-1_i386.deb
-http://ubuntu2.cica.es/ubuntu/ubuntu/pool/universe/a/aircrack-ng/aircrack-ng_1.1-1_amd64.deb
礼貌:http://www.aircrack-ng.org/doku.php?id=downloads
注意:我已使用上述软件包在 Ubuntu 12.04 上成功安装它。