package apache2.2-common 2.2.14-5ubuntu8.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #655039 reported by Emanuel Calso
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: apache2

Here's the output when i tried to upgrade apache.
Setting up apache2.2-common (2.2.14-5ubuntu8.2) ...
ERROR: Module reqtimeout does not exist!
dpkg: error processing apache2.2-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
 apache2-mpm-worker depends on apache2.2-common (= 2.2.14-5ubuntu8.2); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2:
 apache2 depends on apache2-mpm-worker (= 2.2.14-5ubuntu8.2) | apache2-mpm-prefork (= 2.2.14-5ubuntu8.2) | apache2-mpm-event (= 2.2.14-5ubuntu8.2) | apache2-mpm-itk (= 2.2.14-5ubuntu8.2); however:
  Package apache2-mpm-worker is not configured yet.
  Package apache2-mpm-prefork is not installed.
  Package apache2-mpm-event is not installed.
  Package apache2-mpm-itk is not installed.
 apache2 depends on apache2.2-common (= 2.2.14-5ubuntu8.2); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                          Errors were encountered while processing:
 apache2.2-common
 apache2-mpm-worker
 apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up apache2.2-common (2.2.14-5ubuntu8.2) ...
ERROR: Module reqtimeout does not exist!
dpkg: error processing apache2.2-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of apache2:
 apache2 depends on apache2.2-common (= 2.2.14-5ubuntu8.2); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2-mpm-worker:
 apache2-mpm-worker depends on apache2.2-common (= 2.2.14-5ubuntu8.2); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-worker (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apache2.2-common
 apache2
 apache2-mpm-worker

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: apache2.2-common 2.2.14-5ubuntu8.2
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
Architecture: amd64
Date: Tue Oct 5 17:02:05 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
SourcePackage: apache2
Title: package apache2.2-common 2.2.14-5ubuntu8.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Revision history for this message
Emanuel Calso (bloodpet) wrote :
Revision history for this message
Darik Horn (dajhorn) wrote :

If this bug has broken a production system, then don't touch the package (until it is fixed) and just start Apache manually like this:

  # /etc/init.d/apache start

Revision history for this message
Darik Horn (dajhorn) wrote :

A kludge that will let the bad apache2.2-common package install is:

1. Open the '/var/lib/dpkg/info/apache2.2-common.postrm' file in a text editor.

2. Go to line 77 and disable the `a2enmod` command by prefixing it with a colon character like this:

  if dpkg --compare-versions "$2" lt 2.2.15-1~0; then
    : a2enmod -q reqtimeout
  fi

3. Run `dpkg --configure -a` and the apache2.2-common installation will finish.

4. Remember that you applied this change.

Revision history for this message
Darik Horn (dajhorn) wrote :

Typo!

The file correct file name is: /var/lib/dpkg/info/apache2.2-common.postinst

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

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

Changed in apache2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Miquel (k-informatica) wrote :

Try to find /etc/apache2/.mpm* and delete it,
next try:
apt-get install -f

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.