package apache2 2.4.41-4ubuntu3 failed to install/upgrade: el subproceso instalado paquete apache2 script post-installation devolvió el código de salida de error 1

Bug #1889988 reported by Ricardo Prieto
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Me figura un error inesperado

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: apache2 2.4.41-4ubuntu3
ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
Uname: Linux 5.4.0-42-generic x86_64
Apache2ConfdDirListing: False
Apache2Modules:
 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.25. Set the 'ServerName' directive globally to suppress this message
 httpd (pid 1276) already running
ApportVersion: 2.20.11-0ubuntu27.4
AptOrdering:
 grub-pc:amd64: Install
 grub2-common:amd64: Install
 grub-pc-bin:amd64: Install
 grub-common:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: skip
Date: Fri Jul 31 13:50:42 2020
ErrorMessage: el subproceso instalado paquete apache2 script post-installation devolvió el código de salida de error 1
InstallationDate: Installed on 2018-06-21 (772 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2ubuntu0.1
SourcePackage: apache2
Title: package apache2 2.4.41-4ubuntu3 failed to install/upgrade: el subproceso instalado paquete apache2 script post-installation devolvió el código de salida de error 1
UpgradeStatus: No upgrade log present (probably fresh install)
error.log:
 [Sat Aug 01 12:36:12.877048 2020] [mpm_prefork:notice] [pid 1276] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
 [Sat Aug 01 12:36:12.877070 2020] [core:notice] [pid 1276] AH00094: Command line: '/usr/sbin/apache2'

Revision history for this message
Ricardo Prieto (ricardoprieto1976) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Ricardo:

From your log:
info: Executing deferred 'a2enmod php7.2' for package libapache2-mod-php7.2
ERROR: Module php7.2 does not exist!

But that package isn't available in Ubuntu 20.04 anymore.
It's successor would be libapache2-mod-php7.4 and that would work.
It also would remove the older version as it has:
Conflicts: libapache2-mod-php7.2, libapache2-mod-php7.3

I was creating a new bionic guest and installing libapache2-mod-php7.2 to check how it would behave on an upgrade.

After the install I got:
# start with bionic
$ apt install libapache2-mod-php7.2
# update /etc/apt/sources.list to focal
$ apt dist-upgrade

This will leave the system with the old PHP working as it did before, but not failing as you've shown.

What is the install status of your libapache2-mod-php7.2 is it gone or still installed.
In general you should upgrade (when your code needing it is ok for php7.4) to the new libapache2-mod-7.4.

I can't find the root cause for your bug TBH, checking libapache2-mod-php7.2 seems to be a good first step.

P.S. I was wondering about the upgrade not switching to php7.4 on it's own so I tried the "real" release to release upgrade path as such things could be covered by do-release-upgrade. That did remove 7.2, but not install 7.4 - I have a friend who worked on that and I'll file a new bug for it as that seems not directly tied to your problem.

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.