Comment 28 for bug 562370

Revision history for this message
Thomas Dahlmann (dahlmann) wrote :

I had this error for a while:

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-suexec:
 apache2-suexec depends on apache2.2-common; however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2-suexec (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apache2-mpm-itk:
 apache2-mpm-itk depends on apache2.2-common (= 2.2.14-5ubuntu8.2); however:
  Package apache2.2-common is not configured yet.
dpkg: error processing apache2-mpm-itk (--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-suexec
 apache2-mpm-itk
E: Sub-process /usr/bin/dpkg returned an error code (1)

I solved it by running:

dpkg --purge --force-all apache2.2-common
 dpkg: apache2.2-common: dependency problems, but removing anyway as you requested:
 libapache2-mod-php5 depends on apache2.2-common; however:
 Package apache2.2-common is to be removed.
 libapache2-mod-perl2 depends on apache2.2-common.
 libapache2-mod-auth-mysql depends on apache2.2-common (>= 2.2.3-3).
 libapache2-mod-geoip depends on apache2.2-common.
 (Reading database ... 116204 files and directories currently installed.)
 Removing apache2.2-common ...
 Purging configuration files for apache2.2-common ...
 dpkg: warning: while removing apache2.2-common, directory '/var/www' not empty so not removed.
 dpkg: warning: while removing apache2.2-common, directory '/var/log/apache2' not empty so not removed.
 dpkg: warning: while removing apache2.2-common, directory '/etc/apache2/sites-available' not empty so not removed.
 Processing triggers for man-db ...
 Processing triggers for ureadahead ...
 Processing triggers for ufw ...

Then reinstall it:
root@server:~# apt-get install apache2.2-common