xtables-addons-common fails to install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to install xtables-
root@lab-pi:~# uname -a
Linux lab-pi 4.14.50-v7+ #1122 SMP Tue Jun 19 12:26:26 BST 2018 armv7l GNU/Linux
root@lab-pi:~# dpkg -s libc6 | grep ^Version
Version: 2.24-11+deb9u3
root@lab-pi:~# apt-get install xtables-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
cpp-4.6 gcc-4.6 linux-headers-
Suggested packages:
gcc-4.6-locales libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath-dbg libmudflap0-dbg libcloog-ppl1 | libcloog-ppl0 libppl-c4 libppl12
| libppl9 binutils-gold libtext-csv-xs-perl
The following NEW packages will be installed:
cpp-4.6 gcc-4.6 linux-headers-
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.2 MB/13.6 MB of archives.
After this operation, 51.2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Fetched 13.2 MB in 9s (1,446 kB/s)
Selecting previously unselected package cpp-4.6.
(Reading database ... 115505 files and directories currently installed.)
Preparing to unpack .../0-cpp-
Unpacking cpp-4.6 (4.6.4-5+rpi1) ...
Selecting previously unselected package gcc-4.6.
Preparing to unpack .../1-gcc-
Unpacking gcc-4.6 (4.6.4-5+rpi1) ...
Selecting previously unselected package linux-headers-
Preparing to unpack .../2-linux-
Unpacking linux-headers-
Selecting previously unselected package linux-kbuild-3.6.
Preparing to unpack .../3-linux-
Unpacking linux-kbuild-3.6 (3.6-1~
Selecting previously unselected package linux-headers-
Preparing to unpack .../4-linux-
Unpacking linux-headers-
Selecting previously unselected package xtables-
Preparing to unpack .../5-xtables-
Unpacking xtables-
Selecting previously unselected package xtables-
Preparing to unpack .../6-xtables-
Unpacking xtables-addons-dkms (2.12-0.1) ...
Setting up cpp-4.6 (4.6.4-5+rpi1) ...
Setting up linux-headers-
Setting up xtables-
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up xtables-addons-dkms (2.12-0.1) ...
Loading new xtables-addons-2.12 DKMS files...
It is likely that 4.14.50-v7+ belongs to a chroot's host
Building for 3.6-trunk-rpi, 4.14.50+ and 4.14.50-v7+
Building initial module for 3.6-trunk-rpi
Error! Build of xt_ACCOUNT.ko failed for: 3.6-trunk-rpi (armv7l)
Consult the make.log in the build directory
/var/lib/
Setting up gcc-4.6 (4.6.4-5+rpi1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up linux-kbuild-3.6 (3.6-1~
Setting up linux-headers-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Error! Build of xt_ACCOUNT.ko failed for: 3.6-trunk-rpi (armv7l)
Consult the make.log in the build directory
/var/lib/
root@lab-pi:~#
In /var/lib/
DKMS make.log for xtables-addons-2.12 for kernel 3.6-trunk-rpi (armv7l)
...
/var/lib/
In file included from /var/lib/
/var/lib/
and it fails. But why is it trying to build against kernel 3.6 headers? Well xtables-
So, OK, I start over, but this time I manually apt-get install raspberrypi-
This helps, but still fails:
root@lab-pi:~# apt-get install xtables-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dkms xtables-addons-dkms
Suggested packages:
python3-apport menu libtext-csv-xs-perl
The following NEW packages will be installed:
dkms xtables-
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 415 kB of archives.
After this operation, 2,146 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 415 kB in 1s (209 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 147827 files and directories currently installed.)
Preparing to unpack .../archives/
Unpacking dkms (2.3-2) ...
Selecting previously unselected package xtables-
Preparing to unpack .../xtables-
Unpacking xtables-
Selecting previously unselected package xtables-
Preparing to unpack .../xtables-
Unpacking xtables-addons-dkms (2.12-0.1) ...
Setting up xtables-
Setting up dkms (2.3-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up xtables-addons-dkms (2.12-0.1) ...
Loading new xtables-addons-2.12 DKMS files...
It is likely that 4.14.50-v7+ belongs to a chroot's host
Building for 4.14.50+ and 4.14.50-v7+
Building initial module for 4.14.50+
Error! Build of xt_ACCOUNT.ko failed for: 4.14.50+ (armv7l)
Consult the make.log in the build directory
/var/lib/
Processing triggers for man-db (2.7.6.1-2) ...
root@lab-pi:~#
In /var/lib/
---
gcc -Wp,-MD,
-I./arch/
nclude/
t-function-
-mno-thumb-
o-frame-address -O2 --param=
t-variable -fno-omit-
ow -fno-merge-
le-pointer-types -Werror=
xtensions/
/var/lib/
/var/lib/
aration]
else if (nf_ct_
cc1: some warnings being treated as errors
scripts/
---
and sure enough, it appears that nf_ct_is_
So in summary, seems like the solution is moving to a newer version of xtables-addons, and fixing the dependency to be the correct kernel headers.