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
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-
ProcVersionSign
Uname: Linux 6.2.0-36-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
AptOrdering:
libapache2-
php8.1:amd64: Install
php8.1-
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Fri Nov 17 10:47:31 2023
ErrorMessage: installed libapache2-
InstallationDate: Installed on 2023-11-02 (14 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
Python3Details: /usr/bin/
PythonDetails: N/A
RelatedPackageV
dpkg 1.21.1ubuntu2.2
apt 2.4.11
SourcePackage: php8.1
Title: package libapache2-
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
modified.
information type: | Private Security → Public |
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) ... 8.1/mods- available/ mbstring. ini 8.1/mods- available 8.1/mods- available mod-php8. 1 (8.1.2-1ubuntu2.14) ... 8.1/apache2/ php.ini mod-php8. 1 (--configure): mod-php8. 1 package post-installation script subprocess returned error exit status 1
Not replacing deleted config file /etc/php/
WARNING: Module mbstring ini file doesn't exist under /etc/php/
WARNING: Module mbstring ini file doesn't exist under /etc/php/
Setting up libapache2-
Not replacing deleted config file /etc/php/
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
dpkg: error processing package libapache2-
installed libapache2-
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: www.ubuntu. com/support/ community
http://