This question already has an answer here:
- Unmet dependencies: not configured yet 2 answers
Creating config file /etc/php/7.0/cli/php.ini with new version Setting up php7.0-fpm (7.0.8-0ubuntu0.16.04.3) ... Not replacing deleted config file /etc/php/7.0/fpm/php.ini insserv: warning: script 'K01jira' missing LSB tags and overrides insserv: warning: script 'nagios' missing LSB tags and overrides insserv: warning: script 'jira' missing LSB tags and overrides Job for php7.0-fpm.service failed because the control process exited with error code. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details. invoke-rc.d: initscript php7.0-fpm, action "start" failed. dpkg: error processing package php7.0-fpm (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of php7.0: php7.0 depends on php7.0-fpm | libapache2-mod-php7.0 | php7.0-cgi; however: Package php7.0-fpm is not configured yet. Package libapache2-mod-php7.0 is not installed. Package php7.0-cgi is not installed. dpkg: error processing package php7.0 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of php: php depends on php7.0; however: Package php7.0 is not configured yet. dpkg: error processing package php (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates it's a follow-up error from a previous failure. No apport report written because the error message indicates it's a follow-up error from a previous failure. Errors were encountered while processing: php7.0-fpm php7.0 php E: Sub-process /usr/bin/dpkg returned an error code (1)
I just upgraded from Ubuntu 14.04 to 16.04. Before doing so we completely removed mysql and php with the mindset of installing the new version afterward.
We installed a fresh apache and mysql server with zero issue. But when it comes to php we keep getting stuck with the above warning.
The guide we just followed was https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
How to resolve this issue and install php?