package libapache2-mod-php8.1 8.1.2-1ubuntu2.14 failed to install/upgrade: installed libapache2-mod-php8.1 package post-installation script subprocess returned error exit status 1

Bug #2043767 reported by Ashutosh Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php8.1 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

why i am not be able to install many packages and most of the packages are getting broken

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: libapache2-mod-php8.1 8.1.2-1ubuntu2.14
ProcVersionSignature: Ubuntu 6.2.0-36.37~22.04.1-generic 6.2.16
Uname: Linux 6.2.0-36-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
AptOrdering:
 libapache2-mod-php8.1:amd64: Install
 php8.1:amd64: Install
 php8.1-mbstring:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Nov 17 10:47:31 2023
ErrorMessage: installed libapache2-mod-php8.1 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2023-11-02 (14 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.2
 apt 2.4.11
SourcePackage: php8.1
Title: package libapache2-mod-php8.1 8.1.2-1ubuntu2.14 failed to install/upgrade: installed libapache2-mod-php8.1 package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.apache2.mods-available.php8.1.conf: [deleted]
modified.conffile..etc.apache2.mods-available.php8.1.load: [deleted]

Revision history for this message
Ashutosh Kumar (aashutoshtripathy) wrote :
information type: Private Security → Public
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

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

Based on DpkgTerminalLog.txt, it seems like the issue is related to the fact that some configuration files were manually removed:

Setting up php8.1-mbstring (8.1.2-1ubuntu2.14) ...
Not replacing deleted config file /etc/php/8.1/mods-available/mbstring.ini
WARNING: Module mbstring ini file doesn't exist under /etc/php/8.1/mods-available
WARNING: Module mbstring ini file doesn't exist under /etc/php/8.1/mods-available
Setting up libapache2-mod-php8.1 (8.1.2-1ubuntu2.14) ...
Not replacing deleted config file /etc/php/8.1/apache2/php.ini
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
dpkg: error processing package libapache2-mod-php8.1 (--configure):
 installed libapache2-mod-php8.1 package post-installation script subprocess returned error exit status 1

This seems to be causing the installation problem you're seeing, because php8.1 cannot start without its configuration files. Can you please confirm this information?

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 php8.1 (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in php8.1 (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.