Removing php5-geoip (1.1.0-2build1) ... /var/lib/dpkg/info/php5-geoip.prerm: 9: /var/lib/dpkg/info/php5-geoip.prerm: php5dismod: not found dpkg: error processing package php5-geoip (--purge): subprocess installed pre-removal script returned error exit status 127 Removing php5-imap (5.4.6-0ubuntu6) ... Purging configuration files for php5-imap (5.4.6-0ubuntu6) ... Removing php5-json (1.3.6-1build1) ... WARN: php5-common has been removed, you need to cleanup /etc/php5 yourself. Purging configuration files for php5-json (1.3.6-1build1) ... WARN: php5-common has been removed, you need to cleanup /etc/php5 yourself. Removing php5-mcrypt (5.4.6-0ubuntu6) ... Purging configuration files for php5-mcrypt (5.4.6-0ubuntu6) ... Removing php5-memcache (3.0.8-5build1) ... /var/lib/dpkg/info/php5-memcache.prerm: 9: /var/lib/dpkg/info/php5-memcache.prerm: php5dismod: not found dpkg: error processing package php5-memcache (--purge): subprocess installed pre-removal script returned error exit status 127