libapache2-mod-python failed to purge

Bug #500390 reported by David
56
This bug affects 14 people
Affects Status Importance Assigned to Milestone
synaptic
Invalid
Undecided
Unassigned
libapache2-mod-python (Debian)
Fix Released
Unknown
libapache2-mod-python (Ubuntu)
Fix Released
Medium
Mathias Gug
Nominated for Karmic by Jean-Baptiste Lallement

Bug Description

Binary package hint: libapache2-mod-python

I installed libapache2-mod-python. Then I removed it via synaptic, but forgot to completely remove it. So I then found the package and selected the "Mark for complete removal" option. Upon clicking apply, it pops up saying an error occurred." E: libapache2-mod-python: subprocess installed post-removal script returned error exit status 1"

== DESCRIPTION ==
When purging the package libapache2-mod-python.postrm is run twice, each time executing "a2dismod python". The script should only disable the module when called with the 'remove' argument.

== VERSION ==
libapache2-mod-python | 3.3.1-8build1 | karmic-updates | source, amd64, i386
libapache2-mod-python | 3.3.1-8build1 | lucid | source, amd64, i386

== HOW TO REPRODUCE ==
# apt-get install libapache2-mod-python
# dpkg --purge libapache2-mod-python
(Reading database ... 103003 files and directories currently installed.)
Removing libapache2-mod-python ...
Module python disabled.
Run '/etc/init.d/apache2 restart' to activate new configuration!
Purging configuration files for libapache2-mod-python ...
ERROR: Module python does not exist!
dpkg: error processing libapache2-mod-python (--purge):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 libapache2-mod-python

ProblemType: Package
Architecture: i386
Date: Fri Dec 25 12:09:40 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-removal script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: libapache2-mod-python (not installed)
ProcVersionSignature: Ubuntu 2.6.31-16.53-generic
SourcePackage: libapache2-mod-python
Title: package libapache2-mod-python (not installed) failed to install/upgrade: subprocess installed post-removal script returned error exit status 1
Uname: Linux 2.6.31-16-generic i686

Revision history for this message
David (davidboy) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Not a synaptic issue but a packaging issue in libapache2-mod-python. Closing synaptic task.

Changed in synaptic:
status: New → Invalid
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Confirmed in karmic & lucid (3.3.1-8build1)

Changed in libapache2-mod-python (Ubuntu):
status: New → Confirmed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Patch against lucid + SRU

* Only disable apache module when postrm is called with the remove argument to avoid to disable it twice.
* Tolerates a failure of a2dismod.

summary: - libapache2-mod-python causes synaptic to crash when purging
+ libapache2-mod-python failed to purge
description: updated
Changed in libapache2-mod-python (Debian):
status: Unknown → New
Revision history for this message
Benjamin Drung (bdrung) wrote :

I have unsubscribed ubuntu-universe-sponsors. The package is in main. Therefore I subscribe ubuntu-main-sponsors.

Mathias Gug (mathiaz)
Changed in libapache2-mod-python (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Mathias Gug (mathiaz)
importance: Undecided → Medium
Revision history for this message
Mathias Gug (mathiaz) wrote :

Thanks Jean-Baptiste for the patch. I've uploaded a version based on the debian patch proposal (which is quite similar to the debdiff posted here).

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libapache2-mod-python - 3.3.1-8ubuntu1

---------------
libapache2-mod-python (3.3.1-8ubuntu1) lucid; urgency=low

  [ Jean-Baptiste Lallement ]
  * debian/libapache2-mod-python.postrm: Don't fail if the module has already
    been disabled. (LP: #500390)
 -- Mathias Gug <email address hidden> Thu, 07 Jan 2010 17:10:37 -0500

Changed in libapache2-mod-python (Ubuntu):
status: In Progress → Fix Released
Changed in libapache2-mod-python (Debian):
status: New → Fix Committed
Changed in libapache2-mod-python (Debian):
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.