ufw couldn't be removed when ipv6 is turned off

Bug #278670 reported by Michiel Eghuizen on 2008-10-05
10
Affects Status Importance Assigned to Milestone
ufw (Ubuntu)
Undecided
Jamie Strandboge
Hardy
Undecided
Jamie Strandboge

Bug Description

Binary package hint: ufw

IPv6 is turned of in the system, with to following line in /etc/modprobe.d/aliases:
alias net-pf-10 off #ipv6

Release:
root@ubuntu-desktop:/etc/rcS.d# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu intrepid (development branch)
Release: 8.10
Codename: intrepid

Error:
root@ubuntu-desktop:/etc/rcS.d# aptitude purge ufw
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
  ufw{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 106880 files and directories currently installed.)
Removing ufw ...
Purging configuration files for ufw ...
ip6tables v1.4.0: can't initialize ip6tables table `filter': Address family not supported by protocol
Perhaps ip6tables or your kernel needs to be upgraded.
dpkg: error processing ufw (--purge):
 subprocess post-removal script returned error exit status 3
Errors were encountered while processing:
 ufw
E: Sub-process /usr/bin/dpkg returned an error code (1)

Solution is to enable ipv6 temporary and do modprobe ipv6, so ip6tables can be executed when removing the software.

ProblemType: Package
Architecture: i386
Dependencies:

DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-removal script returned error exit status 3
Package: ufw None
PackageArchitecture: all
SourcePackage: ufw
Title: package ufw None failed to install/upgrade: subprocess post-removal script returned error exit status 3
Uname: Linux 2.6.27-4-generic i686

Jamie Strandboge (jdstrand) wrote :

Thank you for using Ubuntu and taking the time to report a bug. I'll upload the fix for this as soon as bazaar.launchpad.net is back online.

Changed in ufw:
assignee: nobody → jdstrand
status: New → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ufw - 0.23.1

---------------
ufw (0.23.1) intrepid; urgency=low

  * debian/postrm: don't fail if iptables or ip6tables fails (LP: #278670)

 -- Jamie Strandboge <email address hidden> Mon, 29 Sep 2008 13:43:11 -0500

Changed in ufw:
status: In Progress → Fix Released
Michael Rivera (rivera) wrote :

Will there be a backport/update for the also broken 8.04 LTS version of this package?

Jamie Strandboge (jdstrand) wrote :

Fix committed in bzr. I will prepare an SRU soon.

Changed in ufw:
assignee: nobody → jdstrand
status: New → Fix Committed
Martin Pitt (pitti) wrote :

Accepted ufw into hardy-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Jamie Strandboge (jdstrand) wrote :

This is fixed in 0.16.2.4:

$ apt-cache policy ufw
ufw:
  Installed: 0.16.2.4
  Candidate: 0.16.2.4
  Version table:
 *** 0.16.2.4 0
        500 http://archive.ubuntu.com hardy-proposed/main Packages
        100 /var/lib/dpkg/status
     0.16.2.3 0
        500 http://192.168.122.1 hardy-updates/main Packages
     0.16.2 0
        500 http://192.168.122.1 hardy/main Packages

Rolf Leggewie (r0lf) wrote :

reported as fixed for hardy. Please release to updates. Thank you.

Marking as verification-done so it catches the attention of those with the power.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ufw - 0.16.2.4

---------------
ufw (0.16.2.4) hardy-proposed; urgency=low

  * debian/postrm: don't fail if iptables or ip6tables fails (LP: #278670)
  * debian/postinst: don't stop in runlevels 0 and 6 (LP: #298736)
  * don't do symlink check anymore (LP: #317700)
  * conf/initscript: don't flush rules on stop when not enabled (LP: #311066)
  * debian/control: update Vcs information

 -- Jamie Strandboge <email address hidden> Sat, 17 Jan 2009 09:04:06 -0600

Changed in ufw:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers