package apache2 2.4.29-1ubuntu4.2 failed to install/upgrade: installed apache2 package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
your call, your update scripts...
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: apache2 2.4.29-1ubuntu4.2
ProcVersionSign
Uname: Linux 4.15.0-23-generic x86_64
Apache2ConfdDir
Apache2Modules:
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Mon Jul 2 08:48:56 2018
ErrorMessage: installed apache2 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-03-15 (108 days ago)
InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64 (20180228)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2
apt 1.6.1
SourcePackage: apache2
Title: package apache2 2.4.29-1ubuntu4.2 failed to install/upgrade: installed apache2 package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
error.log:
[Mon Jul 02 00:08:38.922951 2018] [mpm_prefork:
[Mon Jul 02 00:08:38.923655 2018] [core:notice] [pid 1141] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 02 08:47:48.222968 2018] [mpm_prefork:
tags: | removed: need-duplicate-check |
Thanks for filing this bug in Ubuntu.
This is the error reported in the logs:
info: Executing deferred 'a2enconf apache2-doc' for package apache2-doc
ERROR: Conf apache2-doc does not exist!
dpkg: error processing package apache2 (--configure):
installed apache2 package post-installation script subprocess returned error exit status 1
Could you please check if you have these files:
ls -la /etc/apache2/ conf-available/ apache2- doc.conf /etc/apache2/ conf-enabled/ apache2- doc.conf
This is what I get on a system where I installed apache2-doc: apache2doc: ~# ls -la /etc/apache2/ conf-available/ apache2- doc.conf /etc/apache2/ conf-enabled/ apache2- doc.conf conf-available/ apache2- doc.conf conf-enabled/ apache2- doc.conf -> ../conf- available/ apache2- doc.conf
root@bionic-
-rw-r--r-- 1 root root 221 Oct 23 2017 /etc/apache2/
lrwxrwxrwx 1 root root 34 Jul 3 18:07 /etc/apache2/
The file installed in conf-available is part of the apache2-doc package, and it is enabled via a command like this in the post-installation step:
a2enconf apache2-doc
I just did a fresh install of 2.4.29-1ubuntu4.1 and upgraded it to 2.4.29-1ubuntu4.2, and it went just fine, so let's see if we can find what's different on your system.