Package 'php-apc' is not installed, so not removed
The following packages will be REMOVED:
libapache2-mod-php5 php5-common php5-json
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 11.2 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 120082 files and directories currently installed.)
Removing libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.21) ...
ERROR: Module php5 does not exist!
dpkg: error processing package libapache2-mod-php5 (--remove):
subprocess installed pre-removal script returned error exit status 1
Removing php5-json (1.3.2-2build1) ...
dpkg: php5-common: dependency problems, but removing anyway as you requested:
libapache2-mod-php5 depends on php5-common (= 5.5.9+dfsg-1ubuntu4.21); however:
Package php5-common is to be removed.
Removing php5-common (5.5.9+dfsg-1ubuntu4.21) ...
Processing triggers for libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.21) ...
Errors were encountered while processing:
libapache2-mod-php5
E: Sub-process /usr/bin/dpkg returned an error code (1)