package apache2 2.4.52-1ubuntu4.5 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
failes to start the apache http server
ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: apache2 2.4.52-1ubuntu4.5
ProcVersionSign
Uname: Linux 5.19.0-45-generic x86_64
Apache2ConfdDir
Apache2Modules:
Error: command ['/usr/
Action '-D DUMP_MODULES' failed.
The Apache error log may have more information.
ApportVersion: 2.20.11-0ubuntu82.5
AptOrdering:
apache2:amd64: Install
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Thu Jun 29 12:06:14 2023
ErrorMessage: installed apache2 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2023-05-30 (29 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
Python3Details: /usr/bin/
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
dpkg 1.21.1ubuntu2.2
apt 2.4.9
SourcePackage: apache2
Title: package apache2 2.4.52-1ubuntu4.5 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: Error: [Errno 2] No such file or directory: '/var/log/
Hello, from your logs I see:
cp: cannot stat '/usr/share/ apache2/ default- site/index. html': No such file or directory
It seems your default site index.html file is missing, did you happen to delete it at any point?
You should be able to finish the installation if you re-add the file, or create one in its place, such as with:
$ touch /usr/share/ apache2/ default- site/index. html
If you have any issues let us know, thanks!