package apache2 2.4.7-1ubuntu4.16 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Error
ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: apache2 2.4.7-1ubuntu4.16
ProcVersionSign
Uname: Linux 4.4.0-83-generic x86_64
NonfreeKernelMo
Apache2ConfdDir
Apache2Modules:
Error: command ['/usr/
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:
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)
RelatedPackageV
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/
tags: | removed: need-duplicate-check |
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: trusty- apache: ~$ sudo a2query -M trusty- apache: ~$ sudo a2enmod mpm_prefork
ubuntu@
event
ubuntu@
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: mods-enabled/
- 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/
- dpkg -l|grep apache
Thanks