package php8.1-common 8.1.2-1ubuntu2.19 failed to install/upgrade: installed php8.1-common package post-installation script subprocess returned error exit status 10

Bug #2083437 reported by John Doe

This bug report will be marked for expiration in 56 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php8.1 (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

idk i was told to install an update and this happened

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: php8.1-common 8.1.2-1ubuntu2.19
ProcVersionSignature: Ubuntu 6.8.0-40.40~22.04.3-generic 6.8.12
Uname: Linux 6.8.0-40-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.6
Architecture: amd64
CasperMD5CheckResult: pass
Date: Tue Oct 1 09:47:02 2024
DuplicateSignature:
 package:php8.1-common:8.1.2-1ubuntu2.19
 Setting up php8.1-common (8.1.2-1ubuntu2.19) ...
 dpkg: error processing package php8.1-common (--configure):
  installed php8.1-common package post-installation script subprocess returned error exit status 10
ErrorMessage: installed php8.1-common package post-installation script subprocess returned error exit status 10
InstallationDate: Installed on 2024-01-17 (258 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
Python3Details: /usr/bin/python3.10, Python 3.10.12, unpackaged
PythonDetails: /usr/bin/python3.10, Python 3.10.12, unpackaged
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.3
 apt 2.4.13
SourcePackage: php8.1
Title: package php8.1-common 8.1.2-1ubuntu2.19 failed to install/upgrade: installed php8.1-common package post-installation script subprocess returned error exit status 10
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
John Doe (6hhhhvxw) wrote :
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

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

From DpkgTerminalLog.txt, we see:

dpkg: error processing package php8.1-common (--configure):
 installed php8.1-common package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of php8.1-gd:
 php8.1-gd depends on php8.1-common (= 8.1.2-1ubuntu2.19); however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1-gd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php8.1:
 php8.1 depends on php8.1-common; however:
  Package php8.1-common is not configured yet.

dpkg: error processing package php8.1 (--configure):
 dependency problems - leaving unconfigured

For some reason, php8.1-common's postinst script failed. But I also noticed something in your bug description:

 Python3Details: /usr/bin/python3.10, Python 3.10.12, unpackaged

It seems like you're using Python from a third-party package (and not the one shipped officially by Ubuntu). Python is a core component of the system and using an unsupported version can impact seemingly unrelated things.

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
John Doe (6hhhhvxw) wrote (last edit ):

I clicked ubuntu.com/support/community and was redirected to https://discourse.ubuntu.com/t/community-support/709, which has an error stating "503 Service Temporarily Unavailable"

As for Python, I do not recall changing the install for it. I reported this because an error dialogue popped up and prompted me to report it here, so I did; usually I would just press the "send" button that comes with error dialogues, but this one prompted me to report here.

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

That discourse link should hopefully be back up now.

Have you done any other special changes to your system?

Are you able to reproduce the upgrade failure with the following command?

$ sudo apt install php8.1-common --reinstall

What commands did you run for the update, was it simply:
$ sudo apt update
$ sudo apt upgrade

Or something different?

Revision history for this message
Mitchell Dzurick (mitchdz) wrote (last edit ):

Also you can check the python version by:

$ sudo apt-cache policy python3.10
$ sudo apt-cache policy python3.10.12

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.