server - Cannot install php on Ubuntu 16.04 LTS - Ask Ubuntu
this question has answer here:
- unmet dependencies: not configured yet 2 answers
creating config file /etc/php/7.0/cli/php.ini new version setting 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 , overrides insserv: warning: script 'nagios' missing lsb tags , overrides insserv: warning: script 'jira' missing lsb tags , overrides job php7.0-fpm.service failed because control process exited error code. see "systemctl status php7.0-fpm.service" , "journalctl -xe" 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 not configured yet. package libapache2-mod-php7.0 not installed. package php7.0-cgi 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 not configured yet. dpkg: error processing package php (--configure): dependency problems - leaving unconfigured no apport report written because error message indicates it's follow-up error previous failure. no apport report written because error message indicates it's follow-up error previous failure. errors encountered while processing: php7.0-fpm php7.0 php e: sub-process /usr/bin/dpkg returned error code (1)
i upgraded ubuntu 14.04 16.04. before doing removed mysql , php mindset of installing new version afterward.
we installed fresh apache , mysql server 0 issue. when comes php keep getting stuck above warning.
the guide followed https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
how resolve issue , install php?
ok found solution worked me...
cd /var/lib/dpkg/info rm *.postinst apt-get --force-yes install openjdk-7-jre-headless
i assume openjdk installed kick need not have been openjdk.
i proceded purge apache , php
apt-get purge apache2 apt-get purge php apt-get autoremove apt-get autoclean rm -r /etc/apache2 /etc/php
i cleanly install apache2 , php once more , happy apt-get install apache2 apt-get install php
what headache. dpkg --configure -a
did nothing , kept saying initial dependecy error did every other solution find.
Comments
Post a Comment