package php8.1-xdebug 3.1.2+2.9.8+2.8.1+2.5.5-4 failed to install/upgrade: installed php8.1-xdebug package post-installation script subprocess returned error exit status 2

Bug #1975409 reported by Mark Thompson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xdebug (Ubuntu)
New
Undecided
Unassigned

Bug Description

xdebug still appears to work, just means everything I tried to install using apt appears to fail. In addition php 8.1 does not appear to have some standard extensions installed. so composer would not work until I added to the php.ini for example extension=pdo and the one for the tokenizer. Both these I have never had to add to the php.ini before.

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: php8.1-xdebug 3.1.2+2.9.8+2.8.1+2.5.5-4
ProcVersionSignature: Ubuntu 5.15.0-30.31-generic 5.15.30
Uname: Linux 5.15.0-30-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
AptOrdering:
 thunderbird-locale-en:amd64: Install
 thunderbird:amd64: Install
 thunderbird-gnome-support:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sun May 22 11:14:39 2022
DuplicateSignature:
 package:php8.1-xdebug:3.1.2+2.9.8+2.8.1+2.5.5-4
 Setting up php8.1-xdebug (3.1.2+2.9.8+2.8.1+2.5.5-4) ...
 /usr/sbin/phpenmod: 31: .: cannot open /usr/lib/php/php-helper: No such file
 dpkg: error processing package php8.1-xdebug (--configure):
  installed php8.1-xdebug package post-installation script subprocess returned error exit status 2
ErrorMessage: installed php8.1-xdebug package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2021-11-05 (197 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2
 apt 2.4.5
SourcePackage: xdebug
Title: package php8.1-xdebug 3.1.2+2.9.8+2.8.1+2.5.5-4 failed to install/upgrade: installed php8.1-xdebug package post-installation script subprocess returned error exit status 2
UpgradeStatus: Upgraded to jammy on 2022-05-03 (18 days ago)

Revision history for this message
Mark Thompson (mark-r-thompson) wrote :
Revision history for this message
Manfred Hampl (m-hampl) wrote :

"/usr/sbin/phpenmod: 31: .: cannot open /usr/lib/php/php-helper: No such file"

Try
sudo apt install --reinstall php-common

Revision history for this message
Mark Thompson (mark-r-thompson) wrote : Re: [Bug 1975409] Re: package php8.1-xdebug 3.1.2+2.9.8+2.8.1+2.5.5-4 failed to install/upgrade: installed php8.1-xdebug package post-installation script subprocess returned error exit status 2

Hi,

Thanks

That has  cleared the the issue with x-debug. The php.ini files still
have the modifications in them I made.

Still wondering how this happened after what appeared a clean upgrade?

Regards,

Mark.

On 22/05/2022 11:41, Manfred Hampl wrote:
> "/usr/sbin/phpenmod: 31: .: cannot open /usr/lib/php/php-helper: No such
> file"
>
> Try
> sudo apt install --reinstall php-common
>

tags: removed: need-duplicate-check
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.