package apache2 2.4.7-1ubuntu4.16 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1707375 reported by Yaroslav on 2017-07-29

This bug report will be marked for expiration in 44 days if no further activity occurs. (find out why)

10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Undecided
Unassigned

Bug Description

Error

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: apache2 2.4.7-1ubuntu4.16
ProcVersionSignature: Ubuntu 4.4.0-83.106~14.04.1-generic 4.4.70
Uname: Linux 4.4.0-83-generic x86_64
NonfreeKernelModules: wl
Apache2ConfdDirListing: False
Apache2Modules:
 Error: command ['/usr/sbin/apachectl', '-D DUMP_MODULES'] failed with exit code 1: AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf:
 Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
 Action '-D DUMP_MODULES' failed.
 The Apache error log may have more information.
ApportVersion: 2.14.1-0ubuntu3.25
Architecture: amd64
Date: Sun Jul 23 20:49:51 2017
DuplicateSignature: package:apache2:2.4.7-1ubuntu4.16:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-06-19 (39 days ago)
InstallationMedia: Ubuntu 14.04.5 LTS "Trusty Tahr" - Release amd64 (20160803)
RelatedPackageVersions:
 dpkg 1.17.5ubuntu5.7
 apt 1.0.1ubuntu2.17
SourcePackage: apache2
Title: package apache2 2.4.7-1ubuntu4.16 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
error.log: Error: [Errno 2] No such file or directory: '/var/log/apache2/error.log'

Yaroslav (yaroslav20) wrote :
tags: removed: need-duplicate-check
Andreas Hasenack (ahasenack) wrote :

Thanks for filing this bug in Ubuntu.

This is possibly the error:
Setting up apache2 (2.4.7-1ubuntu4.16) ...
ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first!
dpkg: error processing package apache2 (--configure):
 subprocess installed post-installation script returned error exit status 1

That error message is printed when a2enmod is called to enable another mpm module without disabling the current one first.

For example:
ubuntu@trusty-apache:~$ sudo a2query -M
event
ubuntu@trusty-apache:~$ sudo a2enmod mpm_prefork
Considering conflict mpm_event for mpm_prefork:
ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first!
Considering conflict mpm_worker for mpm_prefork:

Somehow you got yourself into that situation during package installation.

Could you please provide the following:
- output of "sudo a2query -M"
- output of "sudo /usr/sbin/apachectl -D DUMP_MODULES" (might fail, as it did fail when apport opened this bug)
- ls -la /etc/apache2/mods-enabled/
- dpkg -l|grep apache

Thanks

Changed in apache2 (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers