package apache2 2.4.27-2ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1741293 reported by Moishe770 on 2018-01-04
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Undecided
Unassigned

Bug Description

1) apache2-systemd.conf
   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
ProcVersionSignature: Ubuntu 4.13.0-21.24-generic 4.13.13
Uname: Linux 4.13.0-21-generic x86_64
Apache2ConfdDirListing: False
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
RelatedPackageVersions:
 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:

Moishe770 (moishe770) wrote :
tags: removed: need-duplicate-check
ChristianEhrhardt (paelzer) wrote :

Hi Moishe,
it seems to hang on enabling php7.1
From your log:
info: Executing deferred 'a2enmod php7.1' for package libapache2-mod-php7.1
ERROR: Module php7.1 does not exist!

I installed the same on a fresh 17.10 system but it worked fine.
From the bit the logs tell me I'd assume something is odd with the config or package content of libapache2-mod-php7.1.

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:
$ dpkg --verify libapache2-mod-php7.1

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

ChristianEhrhardt (paelzer) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Since it seems likely to me that this is a local configuration problem, rather than a bug in Ubuntu, I'm marking this bug as Incomplete.

If indeed this is a local configuration problem, you can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Or if you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

Changed in apache2 (Ubuntu):
status: New → Incomplete
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  Edit
Everyone can see this information.

Other bug subscribers