package xtables-addons-dkms 3.8-2 failed to install/upgrade: installed xtables-addons-dkms package post-installation script subprocess returned error exit status 7

Bug #1897848 reported by David Burrow
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
xtables-addons (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Crash during release upgrade, stables add-ons in use on system were ipset, condition, and ipt-netflow. After release upgrade, ipset was functional. ipt-netflow will be removed (I have decided to use a different tool), and condition matching was not functional. Running "apt install xtables-addons-dkms" after the release upgrade completed resolved the issue.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: xtables-addons-dkms 3.8-2
ProcVersionSignature: Ubuntu 5.0.0-27.28~18.04.1-generic 5.0.21
Uname: Linux 5.0.0-27-generic x86_64
NonfreeKernelModules: xt_iface xt_condition
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Sep 29 22:49:28 2020
ErrorMessage: installed xtables-addons-dkms package post-installation script subprocess returned error exit status 7
InstallationDate: Installed on 2019-09-06 (389 days ago)
InstallationMedia: Ubuntu-Server 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
PackageArchitecture: all
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2ubuntu0.1
SourcePackage: xtables-addons
Title: package xtables-addons-dkms 3.8-2 failed to install/upgrade: installed xtables-addons-dkms package post-installation script subprocess returned error exit status 7
UpgradeStatus: Upgraded to focal on 2020-09-30 (0 days ago)

Revision history for this message
David Burrow (dnburrow) wrote :
tags: removed: need-duplicate-check
David Burrow (dnburrow)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xtables-addons (Ubuntu):
status: New → Confirmed
Revision history for this message
MikeR (mike-rechtman) wrote :

upgraded from 5.4.0-58-generic to 5.4.0-59-generic
upgrade installation removed xtables-addons-dkms
which was then not possible to reinstall.

Temporary workaround:,
rebooted in 5.4.0-58-generic, did sudo apt-get update, sudo apt-get install xtables-addons-dkms
which completed with errors, but allowed using geoip in iptables.
This procedure failed in 5.4.0-59-generic

Revision history for this message
MikeR (mike-rechtman) wrote :

continued:

DKMS: install completed.
Building initial module for 5.4.0-59-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/xtables-addons-dkms.0.crash'
Error! Build of xt_ACCOUNT.ko failed for: 5.4.0-59-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/xtables-addons/3.8/build/ for more information.
dpkg: error processing package xtables-addons-dkms (--configure):
 installed xtables-addons-dkms package post-installation script subprocess returned error exit status 7
Errors were encountered while processing:
 xtables-addons-dkms

Revision history for this message
Maik Weidemann (weidemann-m) wrote :

Same affects here during kernel update from 5.4.0-58-generic to 5.4.0-59-generic.
Same error message.

Revision history for this message
Maik Weidemann (weidemann-m) wrote :
Revision history for this message
MikeR (mike-rechtman) wrote :

Easier workaround:
sudo apt-get install --install-recommends linux-generic-hwe-20.04

upgrades the kernel to 5.8, and xtables-addons-dkms reinstalls with no errors

Revision history for this message
Anders Larsen (al-alarsen) wrote :

A netfilter modification from 5.10 was backported to all stable kernels including 5.4
xtables-addons must be updated to 3.12 (or later) to match this change!

@MikeR: Kernel 5.8 is obsolete - that is the reason the modification did not make it into that kernel...

Revision history for this message
Anders Larsen (al-alarsen) wrote :

With kernel 5.10 the netfilter API was slightly modified.
This change was backported to the stable kernels (including 5.4) thereby breaking xtables-addons-dkms.
The API change is really very simple; the enclosed patch contains the change that were made to upstream xtables-addons from version 3.8 to 3.12

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Update to kernel API 5.10" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Maik Weidemann (weidemann-m) wrote :

Hello,

with

Package: xtables-addons-common
Version: 3.8-2ubuntu0.2
Linux dagobert 5.4.0-64-generic #72-Ubuntu SMP Fri Jan 15 10:27:54 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

is works again!
Thanks for fixing!

Best regards
Maik

Revision history for this message
MikeR (mike-rechtman) wrote :

Apologies for adding this here, too; problem reappeared after automatic upgrade 24/2/2021
Reverting to previous kernel version was no help.

Updated to 5.8.0-44-generic, and problem installing or re-installing xtables-addons-dkms

from /var/lib/dkms/xtables-addons/3.8/build/make.log:

   70 | return ip_route_me_harder(net, skb, addr_type);
      | ^~~
      | |
      | struct sk_buff *
In file included from ./include/linux/netfilter/x_tables.h:245,
                 from /var/lib/dkms/xtables-addons/3.8/build/extensions/xt_CHAOS.c:17:
./include/linux/netfilter_ipv4.h:19:54: note: expected 'struct sock *' but argument is of type 'struct sk_buff *'
   19 | int ip_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned addr_type);
      | ~~~~~~~~~~~~~^~
In file included from /var/lib/dkms/xtables-addons/3.8/build/extensions/xt_CHAOS.c:24:
/var/lib/dkms/xtables-addons/3.8/build/extensions/compat_xtables.h:70:38: warning: passing argument 3 of 'ip_route_
me_harder' makes pointer from integer without a cast [-Wint-conversion]
   70 | return ip_route_me_harder(net, skb, addr_type);
      | ^~~~~~~~~
      | |
      |

Is there any workaround?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.