package apache2 2.4.18-2ubuntu3.3 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
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
apache2-doc apache2-
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_
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/
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
ProcVersionSign
Uname: Linux 4.10.0-27-generic x86_64
Apache2ConfdDir
Apache2Modules:
Error: command ['/usr/
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)
RelatedPackageV
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/
information type: | Private Security → Public |
tags: | removed: need-duplicate-check |
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