package libapache2-mod-php5 5.5.9+dfsg-1ubuntu4.22 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 127
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Error while uninstalling apache
ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: libapache2-mod-php5 5.5.9+dfsg-
ProcVersionSign
Uname: Linux 3.13.0-132-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3.27
Architecture: amd64
Date: Fri Jan 26 22:08:37 2018
DuplicateSignature: package:
ErrorMessage: subprocess installed pre-removal script returned error exit status 127
InstallationDate: Installed on 2014-08-04 (1271 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
RelatedPackageV
dpkg 1.17.5ubuntu5.7
apt 1.0.1ubuntu2.17
SourcePackage: php5
Title: package libapache2-mod-php5 5.5.9+dfsg-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
Hi, dpkg/info/ libapache2- mod-php5. prerm: 11: /var/lib/ dpkg/info/ libapache2- mod-php5. prerm: php5query: not found
from your log:
/var/lib/
This file is part of "php5-common"
It seems that due to a set of no-dependency/ forced installs/removals you reached a point where the uninstall of libapache2-mod-php5 fails due to the other package being missing.
Please install the missing package and remove things in order (as it would be done by the dependencies).
That should resolve your issue.
P.S. I also see php7.2-common in your logs, that would only exist in bionic/cosmic - something is odd in your php dependencies for sure.