Upgrade to quantal: php-apc upgrade (or remove) fails, missing php5dismod
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-apc (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On upgrading to quantal, php-apc failed to upgrade, and could not be manually removed via apt.
php5dismod does not exist (but is called via /var/lib/
Errors were encountered while processing:
php-apc
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt-get remove php-apc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
php-apc
0 upgraded, 0 newly installed, 1 to remove and 45 not upgraded.
1 not fully installed or removed.
After this operation, 256 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 91083 files and directories currently installed.)
Removing php-apc ...
/var/lib/
dpkg: error processing php-apc (--remove):
subprocess installed pre-removal script returned error exit status 127
Errors were encountered while processing:
php-apc
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ cat /var/lib/
#!/bin/sh
set -e
dpkg-maintscrip
case "$1" in
remove|
php5dismod apc
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: php-apc 3.1.10-1
ProcVersionSign
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.1.1-0ubuntu1
Architecture: amd64
Date: Thu May 31 10:31:18 2012
ProcEnviron:
TERM=screen
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: php-apc
UpgradeStatus: Upgraded to quantal on 2012-03-05 (87 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.