package apache2 2.4.18-2ubuntu3.4 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
On an upgrade to 16.04 from 14.04
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: apache2 2.4.18-2ubuntu3.4
ProcVersionSign
Uname: Linux 4.4.0-93-generic x86_64
Apache2ConfdDir
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
Date: Thu Sep 7 15:35:07 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-09-13 (359 days ago)
InstallationMedia: Ubuntu 14.04.5 LTS "Trusty Tahr" - Release amd64 (20160803)
RelatedPackageV
dpkg 1.18.4ubuntu1.2
apt 1.2.24
SourcePackage: apache2
Title: package apache2 2.4.18-2ubuntu3.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2017-09-07 (0 days ago)
tags: | removed: need-duplicate-check |
Hi David,
there are a few things in your log that could be related.
First of all - the server has to be restarted on upgrade to pick up th enew code, that restart seems to fail.
But also there is an issue in postinst trying to enable all modules you had.
From the log (1):
info: Executing deferred 'a2enconf javascript-common' for package javascript-common
ERROR: Conf javascript-common does not exist!
dpkg: error processing package apache2 (--configure):
subprocess installed post-installation script returned error exit status 1
Please check if you have "javascript-common" installed.
If you do so please check a2enconf manually and why it might fail.
From the log (2): notice] [pid 11706] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations notice] [pid 11706] AH00171: Graceful restart requested, doing restart apache2. conf: Syntax error on line 2 of /etc/apache2/ mods-enabled/ mpm_prefork. load: Cannot load /usr/lib/ apache2/ modules/ mod_mpm_ prefork. so into server: /usr/lib/ apache2/ modules/ mod_mpm_ prefork. so: undefined symbol: ap_set_ listencbratio notice] [pid 1349] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Thu Sep 07 14:41:48.390332 2017] [mpm_prefork:
[Thu Sep 07 14:41:48.390552 2017] [core:notice] [pid 11706] AH00094: Command line: '/usr/sbin/apache2'
[Thu Sep 07 15:36:28.451387 2017] [mpm_prefork:
apache2: Syntax error on line 140 of /etc/apache2/
[Thu Sep 07 16:42:44.526369 2017] [mpm_prefork:
[Thu Sep 07 16:42:44.558239 2017] [core:notice] [pid 1349] AH00094: Command line: '/usr/sbin/apache2'
The times there are odd, maybe you fixed this already between 15:36 and 16:42?
But from what I found in the net about that it might be an issue in the http config.
If you have modified that you might consider saving your custom config, restart with the one Ubuntu provides [1] and then step by step reenable your changes until you find what broke it.
[1]: https:/ /askubuntu. com/questions/ 66533/how- can-i-restore- configuration- files