package libapache2-mod-php7.4 7.4.3-4ubuntu2.4 failed to install/upgrade: installed libapache2-mod-php7.4 package post-installation script subprocess returned error exit status 1

Bug #1933264 reported by Robert K. Kirby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php7.4 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Apache2 installed completely and server is running.
Mariadb installed completely and server is running.
PHP failed to install using command 'sudo apt install php php-mysql -y'
Ubuntu 20.04.2 LTS Release: 20.04

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: libapache2-mod-php7.4 7.4.3-4ubuntu2.4
ProcVersionSignature: Ubuntu 5.8.0-55.62~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-55-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Jun 22 12:53:42 2021
ErrorMessage: installed libapache2-mod-php7.4 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-06-10 (12 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.5
SourcePackage: php7.4
Title: package libapache2-mod-php7.4 7.4.3-4ubuntu2.4 failed to install/upgrade: installed libapache2-mod-php7.4 package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apache2.mods-available.php7.4.conf: [deleted]
modified.conffile..etc.apache2.mods-available.php7.4.load: [deleted]

Revision history for this message
Robert K. Kirby (bob060921) wrote :
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for taking the time to file a bug report.

I launched a Focal LXD container and repeated the last commands you issued to install Apache2, MariaDB and php-mysql (as seen in the DpkgHistoryLog.txt). I was able to install all three packages sequentially without any problems.

I tried to purge and reinstall packages to see if I could force any failure, to no avail. Here's what I tried:

# apt purge apache2
# apt install apache2
# apt install --reinstall libapache2-mod-php7.4

These two lines from your bug description seem to be relevant:

modified.conffile..etc.apache2.mods-available.php7.4.conf: [deleted]
modified.conffile..etc.apache2.mods-available.php7.4.load: [deleted]

I'm not sure how those files got deleted, but they shouldn't have. Can you provide more info on the exact steps you took in order to trigger this bug? Also, if you could provide a reliable reproducer for it (you can try using an LXD container for that), that would be great.

Since it seems likely to me that this is a local configuration problem,
rather than a bug in Ubuntu, I am marking this bug as 'Incomplete'.

However, if you believe that this is really a bug in Ubuntu, then we would
be grateful if you would provide a more complete description of the problem
with steps to reproduce, explain why you believe this is a bug in Ubuntu
rather than a problem specific to your system, and then change the bug
status back to "New".

For local configuration issues, you can find assistance here:
http://www.ubuntu.com/support/community

Changed in php7.4 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for php7.4 (Ubuntu) because there has been no activity for 60 days.]

Changed in php7.4 (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.