Upgrade to quantal: php-apc upgrade (or remove) fails, missing php5dismod

Bug #1006993 reported by Nick Semenkovich
This bug report is a duplicate of:  Bug #1007018: Upgrade or install fails on 12.10. Edit Remove
10
This bug affects 2 people
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/dpkg/info/php-apc.prerm )

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/info/php-apc.prerm: 9: /var/lib/dpkg/info/php-apc.prerm: php5dismod: not found
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/dpkg/info/php-apc.prerm
#!/bin/sh
set -e

dpkg-maintscript-helper mv_conffile /etc/php5/conf.d/apc.ini \
        /etc/php5/mods-available/apc.ini 3.1.10-1~ -- "$@"

case "$1" in
    remove|upgrade|deconfigure)
        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
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
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)

Revision history for this message
Nick Semenkovich (semenko) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in php-apc (Ubuntu):
status: New → Confirmed
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.