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

Bug #775993 reported by David Ficociello
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: apache2

the problem started when I tried to install Cacti from the repos

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: apache2.2-common 2.2.17-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Thu Apr 28 23:13:19 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
SourcePackage: apache2
Title: package apache2.2-common 2.2.17-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to natty on 2011-04-29 (3 days ago)

Revision history for this message
David Ficociello (davidfic) wrote :
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi David,

Thank you for taking the time to report bugs and trying to make ubuntu server better.

According to the logs, it seems that the reason of failure is because apache cannot find a module named reqtimeout.

Please, make sure that the module is installed or the symlink is correctly set and do the following:

sudo dpkg --configure -a

Should be able to try to reconfigure the package. Let us know the output.

I'm marking this bug as incomplete until further information is provided.

Thanks again.

Changed in apache2 (Ubuntu):
status: New → Incomplete
Revision history for this message
David Ficociello (davidfic) wrote :

I was getting this error in 10.10 after the attempted Cacti install.
After the latest upgrade I am no longer seeing it.
apt-get no longer throws any errors.

sudo dpkg --configure -a produced no output.

Seems you can close this.

thanks

Revision history for this message
Jean-Pierre Riviere (jn-pierre-riviere) wrote :

I have a very similar problem. I can't install apache2 because the same apache2-commons cannot be fetched. and dpkg --configure -a has not any output:

$ sudo dpkg --configure -a
[sudo] password for pipole:

now let's try the install of apache2:

$ sudo apt-get install apache2
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  libnet-daemon-perl libhtml-template-perl libdbi-perl mysql-client-core-5.1
  libdbd-mysql-perl mysql-server-5.1 mysql-client-5.1 mysql-common php5-gd libplrpc-perl
  wwwconfig-common libmcrypt4 mysql-server-core-5.1 libjs-mootools mysql-server
  php5-mcrypt libmysqlclient16 javascript-common php5-mysql dbconfig-common php5-cli
  php5-common
Veuillez utiliser « apt-get autoremove » pour les supprimer.
Les paquets supplémentaires suivants seront installés :
  apache2-mpm-worker apache2.2-common
Paquets suggérés :
  apache2-doc apache2-suexec apache2-suexec-custom
Les NOUVEAUX paquets suivants seront installés :
  apache2 apache2-mpm-worker apache2.2-common
0 mis à jour, 3 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 220 ko/224 ko dans les archives.
Après cette opération, 2 331 ko d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer [O/n] ?
Err http://fr.archive.ubuntu.com/ubuntu/ natty/main apache2.2-common i386 2.2.17-1ubuntu1
  503 Service Unavailable
Impossible de récupérer http://fr.archive.ubuntu.com/ubuntu/pool/main/a/apache2/apache2.2-common_2.2.17-1ubuntu1_i386.deb 503 Service Unavailable
E: Impossible de récupérer quelques archives, peut-être devrez-vous lancer apt-get update ou essayer avec --fix-missing ?

apt-get update does no good and neither option --fix-missing.

This bug occurs on two different pc on which I did a complete new install of 11.04 i386. And also on another one which upgraded from 10.10 (i386 too).

Revision history for this message
David Ficociello (davidfic) wrote :

So I looked over some history and I remember I had to edit this file in order to fix this problem

 /var/lib/dpkg/info/apache2.2-common.postinst

Unfortunately I forget what I actually did as I believe this file has been written over after the upgrade to 11.04.

I'm pretty sure it had to do with this section:

# Note, this line catches new installs as well as upgrades
if dpkg --compare-versions "$2" lt 2.2.15-1~0; then
        a2enmod -q reqtimeout
fi

But again I forget what exactly I did. Hopefully someone more knowledgeable can chime in and add the part that I'm missing.

Good luck

Revision history for this message
Jean-Pierre Riviere (jn-pierre-riviere) wrote :

Today, the server has given me thatfile it refused until today. I admit I rebooted. But I did also reboot previously.

Without a rebot, the bug remained for my second PC. After a reboot, a dpkg --configure -a (still no output)' an apt-get updaete, this PC still cannot load the missing .deb.

I am no more blocked because what I wanted was apache for the first PC but the mystery remains intact.

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

[Expired for apache2 (Ubuntu) because there has been no activity for 60 days.]

Changed in apache2 (Ubuntu):
status: Incomplete → Expired
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.