package apache2 2.4.27-2ubuntu3 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
1) apache2-
Active: failed (Result: exit-code)
2) systemd[1]: Failed to start The Apache HTTP Server.
3) systemd[1]: apache2.service: Unit entered failed state
4) systemd[1]: apache2.service: Failed with result 'exit-code'
ProblemType: Package
DistroRelease: Ubuntu 17.10
Package: apache2 2.4.27-2ubuntu3
ProcVersionSign
Uname: Linux 4.13.0-21-generic x86_64
Apache2ConfdDir
ApportVersion: 2.20.7-0ubuntu3.6
Architecture: amd64
Date: Thu Jan 4 14:09:22 2018
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-12-06 (29 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-2ubuntu1
RelatedPackageV
dpkg 1.18.24ubuntu1
apt 1.5.1
SourcePackage: apache2
Title: package apache2 2.4.27-2ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
error.log:
tags: | removed: need-duplicate-check |
Hi Moishe, mod-php7. 1
it seems to hang on enabling php7.1
From your log:
info: Executing deferred 'a2enmod php7.1' for package libapache2-
ERROR: Module php7.1 does not exist!
I installed the same on a fresh 17.10 system but it worked fine. mod-php7. 1.
From the bit the logs tell me I'd assume something is odd with the config or package content of libapache2-
You have to be aware that is you modified a config - just reinstalling will not reset to the defaults - see [1].
You could also verify the status of the package vs it's original state with: mod-php7. 1
$ dpkg --verify libapache2-
Also since it fails at enabling it you can
a) check the current status
$ a2query -m php7.1
b) try to enable yourself (after being installed) and see what breaks
$ a2enmod php7.1
[1]: https:/ /askubuntu. com/questions/ 66533/how- can-i-restore- configuration- files