FS#58693 - [aircrack-ng] Failed to spawn binary: No such file or directory

Attached to Project: Community Packages
Opened by Michał Goliński (golinski) - Tuesday, 22 May 2018, 11:37 GMT
Last edited by Eli Schwartz (eschwartz) - Friday, 25 May 2018, 01:20 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jonathan Steel (jsteel)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In the latest version of aircrack-ng, we get the following error:

$ aircrack-ng
F: Failed to spawn binary: No such file or directory

Checking with strace gives the culprit:

execve("/usr/libexec/aircrack-ng/aircrack-ng--avx2", ["/usr/libexec/aircrack-ng/aircrac"...], 0x557e1cc0a2c0 /* 1 var */) = -1 ENOENT (No such file or directory)

The package contains the file at /usr/lib/aircrack-ng/aircrack-ng--avx2, but it seems this is not found by the master executable.

I use the latest (a of now) version:

aircrack-ng 1.2-2
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Friday, 25 May 2018, 01:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  aircrack-ng 1.2-4
Comment by Michał Goliński (golinski) - Tuesday, 22 May 2018, 11:49 GMT
Moreover, the man pages end up now in wrong directories (i.e., /usr/share/man/man1/man1 instead of /usr/share/man/man1).
Comment by Jonathan Steel (jsteel) - Wednesday, 23 May 2018, 07:00 GMT
This change was for  FS#58567  but not sure how this issue slipped through. I've reverted it and will investigate further before trying to make this change again. Fixed in 1.2-3.
Comment by Tommy Schmitt (spinka) - Wednesday, 23 May 2018, 10:44 GMT
I tested the following and it worked. Sorry for not catching it earlier:

build() {
cd $pkgname-$_pkgver

./autogen.sh

./configure --prefix=/usr --libexecdir=/usr/lib

make sqlite=true experimental=true
}

package() {
cd $pkgname-$_pkgver

make DESTDIR="$pkgdir" sqlite=true experimental=true \
sbindir=/usr/bin install pkglibexecdir=/usr/lib/aircrack-ng
}
Comment by Tommy Schmitt (spinka) - Wednesday, 23 May 2018, 10:49 GMT
There are also missing some dependencies:

aircrack-ng E: Dependency pcre detected and not included (libraries ['usr/lib/libpcre.so.1'] needed in files ['usr/bin/airodump-ng'])
aircrack-ng E: Dependency libpcap detected and not included (libraries ['usr/lib/libpcap.so.1'] needed in files ['usr/bin/besside-ng-crawler'])

Upstream info:

If you want SSID filtering with regular expression in airodump-ng (-essid-regex) pcre development package is required.
In order to build besside-ng, besside-ng-crawler, easside-ng, tkiptun-ng and wesside-ng, libpcap development package is required
Comment by Tommy Schmitt (spinka) - Wednesday, 23 May 2018, 10:57 GMT
During build it also complains about missing python which is used by some buildscripts: https://github.com/aircrack-ng/aircrack-ng/search?utf8=%E2%9C%93&q=python&type=
Comment by Tommy Schmitt (spinka) - Wednesday, 23 May 2018, 11:21 GMT
Another thing: experimental features shall be enabled with "./configure --with-experimental" not "make sqlite=true experimental=true" which doesn't have any effect (I'm not sure if they should be enabled at all). I prepared the folowing (added 'check' section):

pkgname=aircrack-ng
_pkgver=1.2
pkgver=${_pkgver//-/}
pkgrel=3
pkgdesc="Key cracker for the 802.11 WEP and WPA-PSK protocols"
arch=('x86_64')
url="https://www.aircrack-ng.org"
license=('GPL2')
depends=('openssl' 'sqlite' 'iw' 'net-tools' 'wireless_tools' 'ethtool' 'pcre' 'libpcap' 'python')
conflicts=('aircrack-ng-scripts')
replaces=('aircrack-ng-scripts')
provides=('aircrack-ng-scripts')
source=(https://download.aircrack-ng.org/$pkgname-$_pkgver.tar.gz)
md5sums=('bb11ec14e1fe505d8d0d51cee0c54df9')

build() {
cd $pkgname-$_pkgver

./autogen.sh

./configure --prefix=/usr --libexecdir=/usr/lib --with-experimental

make
}

check() {
cd $pkgname-$_pkgver

make check
}

package() {
cd $pkgname-$_pkgver

make DESTDIR="$pkgdir" sbindir=/usr/bin install pkglibexecdir=/usr/lib/aircrack-ng
}
Comment by Jonathan Steel (jsteel) - Thursday, 24 May 2018, 18:00 GMT
Thanks, updated in 1.2-4
Comment by Tommy Schmitt (spinka) - Thursday, 24 May 2018, 19:20 GMT
Perfect! I think this can be closed now.

Loading...