package apache2 2.4.52-1ubuntu4.1 failed to install/upgrade: il sottoprocesso installato pacchetto apache2 script post-installation ha restituito lo stato di errore 1

Bug #1987111 reported by Rapper_skull
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

apache2 failed to install when upgrading from Ubuntu 20.04 to 22.04.1.

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: apache2 2.4.52-1ubuntu4.1
ProcVersionSignature: Ubuntu 5.4.0-124.140-generic 5.4.195
Uname: Linux 5.4.0-124-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
000-default.conf: Error: [Errno 40] Troppi livelli di collegamenti simbolici: '/etc/apache2/sites-enabled/000-default.conf'
Apache2ConfdDirListing: False
Apache2Modules:
 Error: command ['/usr/sbin/apachectl', '-D DUMP_MODULES'] failed with exit code 1: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
 Action '-D DUMP_MODULES' failed.
 The Apache error log may have more information.
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Fri Aug 19 16:57:27 2022
ErrorMessage: il sottoprocesso installato pacchetto apache2 script post-installation ha restituito lo stato di errore 1
InstallationDate: Installed on 2019-06-30 (1145 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, unpackaged
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.7
SourcePackage: apache2
Title: package apache2 2.4.52-1ubuntu4.1 failed to install/upgrade: il sottoprocesso installato pacchetto apache2 script post-installation ha restituito lo stato di errore 1
UpgradeStatus: Upgraded to jammy on 2022-08-19 (0 days ago)
modified.conffile..etc.apache2.apache2.conf: [modified]
modified.conffile..etc.apache2.sites-available.000-default.conf: [modified]
mtime.conffile..etc.apache2.apache2.conf: 2020-10-06T14:07:27.558381
mtime.conffile..etc.apache2.sites-available.000-default.conf: 2020-10-06T13:01:43.730417

Revision history for this message
Rapper_skull (rapper-skull) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Lena Voytek (lvoytek) wrote :

Hello,

From your logs I see:

info: Executing deferred 'a2enconf javascript-common' for package javascript-common
ERROR: Conf javascript-common does not exist!

This matches another bug reported recently for apache2. As such I will mark this as a duplicate. In the meantime you may be able to fix this issue by installing javascript-common then retrying the update:

sudo apt install javascript-common

If you have any additional information or if this fails please post to this bug: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1986959

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.