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
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
ProcVersionSign
Uname: Linux 5.4.0-42-generic x86_64
Apache2ConfdDir
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-
grub-pc-bin:amd64: Install
grub-common:amd64: Install
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
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
RelatedPackageV
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:
[Sat Aug 01 12:36:12.877070 2020] [core:notice] [pid 1276] AH00094: Command line: '/usr/sbin/apache2'
Hi Ricardo:
From your log: mod-php7. 2
info: Executing deferred 'a2enmod php7.2' for package libapache2-
ERROR: Module php7.2 does not exist!
But that package isn't available in Ubuntu 20.04 anymore. mod-php7. 4 and that would work. mod-php7. 2, libapache2- mod-php7. 3
It's successor would be libapache2-
It also would remove the older version as it has:
Conflicts: libapache2-
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: mod-php7. 2 sources. list to focal
# start with bionic
$ apt install libapache2-
# update /etc/apt/
$ 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.