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

Bug #1706996 reported by SADAN KHAN
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2
0 upgraded, 1 newly installed, 0 to remove and 51 not upgraded.
Need to get 0 B/86.8 kB of archives.
After this operation, 501 kB of additional disk space will be used.
Selecting previously unselected package apache2.
(Reading database ... 205179 files and directories currently installed.)
Preparing to unpack .../apache2_2.4.18-2ubuntu3.3_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.3) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up apache2 (2.4.18-2ubuntu3.3) ...
Enabling module mpm_event.
cp: cannot stat '/usr/share/apache2/default-site/index.html': No such file or directory
dpkg: error processing package apache2 (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Errors were encountered while processing:
 apache2
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: apache2 2.4.18-2ubuntu3.3
ProcVersionSignature: Ubuntu 4.10.0-27.30~16.04.2-generic 4.10.17
Uname: Linux 4.10.0-27-generic x86_64
Apache2ConfdDirListing: False
Apache2Modules:
 Error: command ['/usr/sbin/apachectl', '-D DUMP_MODULES'] failed with exit code 1: AH00526: Syntax error on line 156 of /etc/apache2/apache2.conf:
 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.20.1-0ubuntu2.10
AptOrdering:
 apache2: Install
 apache2: Configure
 NULL: ConfigurePending
Architecture: amd64
Date: Thu Jul 27 20:29:10 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-07-04 (23 days ago)
InstallationMedia: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.20
SourcePackage: apache2
Title: package apache2 2.4.18-2ubuntu3.3 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/apache2/error.log'

Revision history for this message
SADAN KHAN (sadan49) wrote :
Tyler Hicks (tyhicks)
information type: Private Security → Public
tags: removed: need-duplicate-check
Revision history for this message
Joshua Powers (powersj) wrote :

From logs:

cp: cannot stat '/usr/share/apache2/default-site/index.html': No such file or directory
dpkg: error processing package apache2 (--configure):
 subprocess installed post-installation script returned error exit status 1

Revision history for this message
Joshua Powers (powersj) wrote :

Thank you for taking the time to file a bug report.

From the logs it looks like there is a missing file. Can you try running
'sudo apt-get install -f' to see if it now completes, otherwise you may
need to reinstall apache.

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

However, if you believe that this is really a bug in Ubuntu, then we would
be grateful if you would provide a more complete description of the problem
with steps to reproduce, 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".

For local configuration issues, you can find assistance here:
http://www.ubuntu.com/support/community

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.