[Jaunty, Karmic SRU] openafs-modules-dkms' postinst fails repeatedly when headers missing

Bug #463429 reported by rwun
44
This bug affects 5 people
Affects Status Importance Assigned to Milestone
openafs (Ubuntu)
Fix Released
Undecided
Unassigned
Jaunty
Fix Released
Undecided
Unassigned
Karmic
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: openafs-modules-dkms

IMPACT: If openafs-modules-dkms is installed but the necessary kernel headers to build kernel modules are not, openafs-modules-dkms' postinst will continually fail to complete.

DEVELOPMENT: This bug was fixed in Lucid by syncing in 1.4.11+dfsg-5; for the Jaunty and Karmic SRU, we simply backport the fix synced in from Debian.

PATCH: http://launchpadlibrarian.net/35845647/openafs_1.4.9.dfsg1-0%2Bubuntu3.2.debdiff for Jaunty; http://launchpadlibrarian.net/35845649/openafs_1.4.11%2Bdfsg-1%2Bubuntu0.2.debdiff for Karmic

INSTRUCTIONS: Uninstall linux-headers-`uname -r`, then install openafs-modules-dkms. Observe that openafs-modules-dkms' postinst fails. Observe also that running "dpkg --configure -a" repeatedly does not resolve the problem. Observe also that installing linux-headers-`uname -r` and then running "dpkg --configure -a" still doesn't fix the problem.

REGRESSION: Unlikely. The only changes being made here are to maintainer scripts, and it's backporting a patch from Debian. The likelihood of bizarre toolchain bugs also seems fairly low, given that openafs has had relatively recent SRUs for both Jaunty and Karmic.

==============================
original bug report:

continuing problem

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 3
NonfreeKernelModules: openafs
Package: openafs-modules-dkms 1.4.9.dfsg1-0+ubuntu3
SourcePackage: openafs
Title: package openafs-modules-dkms 1.4.9.dfsg1-0+ubuntu3 failed to install/upgrade: subprocess post-installation script returned error exit status 3
Uname: Linux 2.6.28-12-netbook i686

Revision history for this message
rwun (pmaceves) wrote :
Revision history for this message
Evan Broder (broder) wrote :

I believe this should be fixed in Lucid when 1.4.11+dfsg-5 gets synced in (it's a few days away from hitting Debian testing at the moment).

I'll work on pulling some patches for SRUs together for Jaunty and Karmic

Changed in openafs (Ubuntu):
status: New → Confirmed
assignee: nobody → Evan Broder (broder)
status: Confirmed → In Progress
Revision history for this message
Evan Broder (broder) wrote :

I believe that the attached patch should fix this issue for Jaunty (as well as the issue Steve reported in bug #368471).

I have a build in my PPA (https://launchpad.net/~broder/+archive/ubuntu-tests), but haven't had a chance to do extensive testing yet.

Revision history for this message
Evan Broder (broder) wrote :

And this patch should fix the issue for Karmic.

Same deal - build in the PPA (https://launchpad.net/~broder/+archive/ubuntu-tests), but I haven't tested it yet.

Revision history for this message
Evan Broder (broder) wrote :

Let's try writing those patches again, this time with actual LP closers, instead of LP references.

First, Jaunty

Revision history for this message
Evan Broder (broder) wrote :

Next, Karmic

Evan Broder (broder)
description: updated
summary: - package openafs-modules-dkms 1.4.9.dfsg1-0+ubuntu3 failed to
- install/upgrade: subprocess post-installation script returned error exit
- status 3
+ [Jaunty, Karmic SRU] openafs-modules-dkms' postinst fails repeatedly
+ when modules missing
Changed in openafs (Ubuntu):
assignee: Evan Broder (broder) → nobody
status: In Progress → Fix Released
Evan Broder (broder)
summary: [Jaunty, Karmic SRU] openafs-modules-dkms' postinst fails repeatedly
- when modules missing
+ when headers missing
description: updated
description: updated
Revision history for this message
John Dong (jdong) wrote :

The Jaunty and Karmic debdiffs look reasonable to me... ACK from motu-sru.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted openafs into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in openafs (Ubuntu Karmic):
status: New → Fix Committed
tags: added: verification-needed
Changed in openafs (Ubuntu Jaunty):
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted openafs into jaunty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Evan Broder (broder) wrote :

The packages in -proposed fix repeated installation failures for me on both Jaunty and Karmic.

Evan Broder (broder)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openafs - 1.4.11+dfsg-1+ubuntu0.2

---------------
openafs (1.4.11+dfsg-1+ubuntu0.2) karmic-proposed; urgency=low

  * Backport fix for Debian #553542 to Karmic: (LP: #463429)
    - In the postinst of openafs-modules-dkms, if the openafs module
      is already added in DKMS, try to remove it first before adding
      it. This should more correctly handle the case of a user
      installing this package without the correct kernel headers,
      having it fail in postinst, and then installing the correct
      headers and having dpkg attempt to configure the package again.
      Thanks, Philipp Kaluza. (Closes: #553542)
 -- Evan Broder <email address hidden> Fri, 13 Nov 2009 10:07:28 -0500

Changed in openafs (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openafs - 1.4.9.dfsg1-0+ubuntu3.2

---------------
openafs (1.4.9.dfsg1-0+ubuntu3.2) jaunty-proposed; urgency=low

  * Backport fix for Debian #553542 to Jaunty: (LP: #463429)
    - In the postinst of openafs-modules-dkms, if the openafs module
      is already added in DKMS, try to remove it first before adding
      it. This should more correctly handle the case of a user
      installing this package without the correct kernel headers,
      having it fail in postinst, and then installing the correct
      headers and having dpkg attempt to configure the package again.
      Thanks, Philipp Kaluza. (Closes: #553542)
 -- Evan Broder <email address hidden> Fri, 13 Nov 2009 10:07:28 -0500

Changed in openafs (Ubuntu Jaunty):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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