Bug#273017: apache2-common: post-installation script returned error exit status 1
I ran into the same problem when trying to install apache2 on Sarge.
Turning on debugging of the postinst script (set -x) I got:
Setting up apache2-common (2.0.51-2) ...
+ '[' configure '!=' configure ']'
+ NETSTAT=/bin/netstat
+ '[' '!' -f /etc/apache2/ports.conf ']'
++ uname -r
++ grep 2.2
+ '[' ']'
+ '[' '!' -e /etc/apache2/httpd.conf ']'
+ '[' '' = '<unknown>' -o -z '' ']'
+ '[' '!' -L /etc/apache2/sites-enabled/000-default -a '!' -f /etc/apache2/sites-enabled/000-default ']'
+ '[' -d /var/lock/apache2 ']'
+ chown www-data /var/lock/apache2
+ dpkg --compare-versions '' lt 2.0.50-1
+ a2enmod userdir
dpkg: error processing apache2-common (--configure):
subprocess post-installation script returned error exit status 1
It seems that the worker MPM is the default if apache2 is installed like
'apt-get install apache2'. Explicitly installing the prefork MPM by
continuing the attempt to install apache2 with 'apt-get install
apache2-mpm-prefork' the above problem no longer persists and the
installation/configuration goes fine.
I'm not sure this is related to the submitter's problem because the
solutions are so different, but I hope it helps nevertheless.
Regards
uLI
Reply to: