I have the same problem here. Install and postinst went fine but dpkg still thinks postinst failed.
--- php5_invoke pdo: already enabled for apache2 SAPI php5_invoke opcache: already enabled for apache2 SAPI php5_invoke pdo_pgsql: already enabled for apache2 SAPI php5_invoke mysql: already enabled for apache2 SAPI php5_invoke readline: already enabled for apache2 SAPI php5_invoke pgsql: already enabled for apache2 SAPI php5_invoke json: already enabled for apache2 SAPI php5_invoke mysqli: already enabled for apache2 SAPI php5_invoke pdo_mysql: already enabled for apache2 SAPI dpkg: error processing package libapache2-mod-php5 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: libapache2-mod-php5 E: Sub-process /usr/bin/dpkg returned an error code (1) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1241498 Title: package libapache2-mod-php5 5.5.3+dfsg-1ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1241498/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs