Install php7.0 on ubuntu16.04 to prompt this:
pcd@pcd-all-series:~/Desktop $ sudo apt-get install Php7.0[sudo] PCD password: Reading package list ... Completing the dependency tree that is analyzing the package is reading state information ... Finished php7.0 is already the latest version (7.0.10-2+DEB.SURY.ORG~XENIAL+1). 0 packages were upgraded, 0 new packages were installed, 0 packages were uninstalled, 0 packages were not upgraded. There are 3 packages that are not fully installed or uninstalled. After decompression, it consumes 0 B of extra space. Do you want to continue? [y/n] Y is setting libapache2-mod-php7.0 (7.0.10-2+deb.sury.org~xenial+1) ... Not replacing deleted config file/etc/php/7.0/apache2/php.iniphp_invoke:enable module XmlWriter for Apache2 SAPIPHP_INV Oke:enable module XML for apache2 sapiphp_invoke:enable module FileInfo for apache2 sapiphp_invoke:enable module SHMOP For apache2 sapiphp_invoke:enable module calendar for apache2 sapiphp_invoke:enable module Sysvsem for Apache2 sapiphp_i Nvoke:enable module EXIF for apache2 sapiphp_invoke:enable module XmlReader for apache2 sapiphp_invoke:enable module JS On for apache2 sapiphp_invoke:enable module tokenizer for apache2 sapiphp_invoke:enable module simplexml for apache2 SAP Iphp_invoke:enable module DOM for Apache2 Sapiphp_invokE:enable module POSIX for apache2 sapiphp_invoke:enable module gettext for apache2 sapiphp_invoke:enable module sysvmsg For apache2 sapiphp_invoke:enable module SYSVSHM for apache2 sapiphp_invoke:enable module WDDX for Apache2 sapiphp_invo Ke:enable module XSL for apache2 sapiphp_invoke:enable module readline for apache2 sapiphp_invoke:enable module CType F or apache2 sapiphp_invoke:enable module Phar for apache2 sapiphp_invoke:enable module FTP for apache2 sapiphp_invoke:en Able module Opcache for apache2 sapiphp_invoke:enable module PDO for apache2 sapiphp_invoke:enable module sockets for AP Ache2 sapiphp_invoke:enable module Iconv for apache2 sapidpkg: Error processing package libapache2-mod-php7.0 (--configure): Child process has post installed -installation script returned error status 1 setting php7.0-fpm (7.0.10-2+deb.sury.org~xenial+1) ... Not replacing deleted config file/etc/php/7.0/fpm/php.iniphp_invoke:enable module XmlWriter for FPM Sapiphp_invoke:enab Le module XML for FPM sapiphp_invoke:enable module FileInfo for FPMSapiphp_invoke:enable module SHMOP for FPM sapiphp_invoke:enable module calendar for fpm sapiphp_invoke:enable module s Ysvsem for FPM sapiphp_invoke:enable module EXIF-FPM sapiphp_invoke:enable module XmlReader for FPM Sapiphp_invoke: Enable module JSON for FPM sapiphp_invoke:enable module tokenizer for fpm sapiphp_invoke:enable module simplexml for FPM Sapiphp_invoke:enable module DOM for FPM sapiphp_invoke:enable module POSIX for FPM sapiphp_invoke:enable module Gette XT for FPM sapiphp_invoke:enable module sysvmsg for fpm sapiphp_invoke:enable module SYSVSHM for FPM Sapiphp_invoke:ena BLE module WDDX for fpm sapiphp_invoke:enable module XSL-fpm sapiphp_invoke:enable module readline for FPM sapiphp_i Nvoke:enable module CType for fpm sapiphp_invoke:enable module Phar for FPM sapiphp_invoke:enable module FTP for FPM SA Piphp_invoke:enable module Opcache for FPM sapiphp_invoke:enable module PDO for FPM sapiphp_invoke:enable module socket S for FPM Sapiphp_invoke: Enable module Iconv for FPM sapinotice:not enabling PHP 7.0 FPM by default. Notice:to Enable PHP 7.0 FPM in Apache2 do:NOTICE:a2enmod proxy_fcgi setenvifnotice:a2enconf php7.0-fpmnotice:you is Seeing this message because you has APACHE2 package Installed.initctl: Cannot connect to the upstart:failed to connect to Socket/com/ub Untu/upstart: Deny connection insserv:warning:script ' scrapyd ' missing LSB tags and overridesinsserv:default-start undefined, assum ing empty start runlevel (s) for script ' Scrapyd ' insserv:default-stop undefined, assuming empty Stop runlevel (s) for SCR IPT ' Scrapyd ' 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 "Res Tart "FAILED.DPKG: Error processing package PHP7.0-FPM (--configure): Child process installed post-installation script returned error status 1dpkg: Dependency problem makes php7.0 configuration work not continue : php7.0 relies on libapache2-mod-php7.0 | PHP7.0-FPM | php7.0-cgi; however: Package libapache2-mod-php7.0 Not configured. Package PHP7.0-FPM is not yet configured. Package php7.0-cgi is not installed. DPKG: Error processing package php7.0 (--configure): Dependency problem-still not configured because the error message indicates that this was an error caused by a previous problem, the Apport report was not written. An error occurred while processing: libapache2-mod-php7.0 php7.0-fpm php7.0e:sub-process/usr/bin/dpkg Returne D An error code (1) pcd@pcd-all-series:~/Desktop $
In this case, I install other PHP-related software is also the case, because the configuration work can not continue, really can not solve, to consult the great God here
Reply content:
Install php7.0 on ubuntu16.04 to prompt this:
pcd@pcd-all-series:~/Desktop $ sudo apt-get install Php7.0[sudo] PCD password: Reading package list ... Completing the dependency tree that is analyzing the package is reading state information ... Finished php7.0 is already the latest version (7.0.10-2+DEB.SURY.ORG~XENIAL+1). 0 packages were upgraded, 0 new packages were installed, 0 packages were uninstalled, 0 packages were not upgraded. There are 3 packages that are not fully installed or uninstalled. After decompression, it consumes 0 B of extra space. Do you want to continue? [y/n] Y is setting libapache2-mod-php7.0 (7.0.10-2+deb.sury.org~xenial+1) ... Not replacing deleted config file/etc/php/7.0/apache2/php.iniphp_invoke:enable module XmlWriter for Apache2 SAPIPHP_INV Oke:enable module XML for apache2 sapiphp_invoke:enable module FileInfo for apache2 sapiphp_invoke:enable module SHMOP For apache2 sapiphp_invoke:enable module calendar for apache2 sapiphp_invoke:enable module Sysvsem for Apache2 sapiphp_i Nvoke:enable module EXIF for apache2 sapiphp_invoke:enable module XmlReader for apache2 sapiphp_invoke:enable module JS On for apache2 sapiphp_invoke:enable module tokenizer for apache2 sapiphp_invoke:enable module simplexml for apache2 SAP Iphp_invoke:enable module DOM for Apache2 Sapiphp_invokE:enable module POSIX for apache2 sapiphp_invoke:enable module gettext for apache2 sapiphp_invoke:enable module sysvmsg For apache2 sapiphp_invoke:enable module SYSVSHM for apache2 sapiphp_invoke:enable module WDDX for Apache2 sapiphp_invo Ke:enable module XSL for apache2 sapiphp_invoke:enable module readline for apache2 sapiphp_invoke:enable module CType F or apache2 sapiphp_invoke:enable module Phar for apache2 sapiphp_invoke:enable module FTP for apache2 sapiphp_invoke:en Able module Opcache for apache2 sapiphp_invoke:enable module PDO for apache2 sapiphp_invoke:enable module sockets for AP Ache2 sapiphp_invoke:enable module Iconv for apache2 sapidpkg: Error processing package libapache2-mod-php7.0 (--configure): Child process has post installed -installation script returned error status 1 setting php7.0-fpm (7.0.10-2+deb.sury.org~xenial+1) ... Not replacing deleted config file/etc/php/7.0/fpm/php.iniphp_invoke:enable module XmlWriter for FPM Sapiphp_invoke:enab Le module XML for FPM sapiphp_invoke:enable module FileInfo for FPMSapiphp_invoke:enable module SHMOP for FPM sapiphp_invoke:enable module calendar for fpm sapiphp_invoke:enable module s Ysvsem for FPM sapiphp_invoke:enable module EXIF-FPM sapiphp_invoke:enable module XmlReader for FPM Sapiphp_invoke: Enable module JSON for FPM sapiphp_invoke:enable module tokenizer for fpm sapiphp_invoke:enable module simplexml for FPM Sapiphp_invoke:enable module DOM for FPM sapiphp_invoke:enable module POSIX for FPM sapiphp_invoke:enable module Gette XT for FPM sapiphp_invoke:enable module sysvmsg for fpm sapiphp_invoke:enable module SYSVSHM for FPM Sapiphp_invoke:ena BLE module WDDX for fpm sapiphp_invoke:enable module XSL-fpm sapiphp_invoke:enable module readline for FPM sapiphp_i Nvoke:enable module CType for fpm sapiphp_invoke:enable module Phar for FPM sapiphp_invoke:enable module FTP for FPM SA Piphp_invoke:enable module Opcache for FPM sapiphp_invoke:enable module PDO for FPM sapiphp_invoke:enable module socket S for FPM Sapiphp_invoke: Enable module Iconv for FPM sapinotice:not enabling PHP 7.0 FPM by default. Notice:to Enable PHP 7.0 FPM in Apache2 do:NOTICE:a2enmod proxy_fcgi setenvifnotice:a2enconf php7.0-fpmnotice:you is Seeing this message because you has APACHE2 package Installed.initctl: Cannot connect to the upstart:failed to connect to Socket/com/ub Untu/upstart: Deny connection insserv:warning:script ' scrapyd ' missing LSB tags and overridesinsserv:default-start undefined, assum ing empty start runlevel (s) for script ' Scrapyd ' insserv:default-stop undefined, assuming empty Stop runlevel (s) for SCR IPT ' Scrapyd ' 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 "Res Tart "FAILED.DPKG: Error processing package PHP7.0-FPM (--configure): Child process installed post-installation script returned error status 1dpkg: Dependency problem makes php7.0 configuration work not continue : php7.0 relies on libapache2-mod-php7.0 | PHP7.0-FPM | php7.0-cgi; however: Package libapache2-mod-php7.0 Not configured. Package PHP7.0-FPM is not yet configured. Package php7.0-cgi is not installed. DPKG: Error processing package php7.0 (--configure): Dependency problem-still not configured because the error message indicates that this was an error caused by a previous problem, the Apport report was not written. An error occurred while processing: libapache2-mod-php7.0 php7.0-fpm php7.0e:sub-process/usr/bin/dpkg Returne D An error code (1) pcd@pcd-all-series:~/Desktop $
In this case, I install other PHP-related software is also the case, because the configuration work can not continue, really can not solve, to consult the great God here
sudo mv/var/lib/dpkg/info/var/lib/dpkg/info.bak//renaming the Info folder now
sudo mkdir/var/lib/dpkg/info//re-create a new info folder
sudo apt-get install libapache2-mod-php7.0
sudo apt-get install PHP7.0-FPM
sudo apt-get install php7.0
sudo mv/var/lib/dpkg/info.bak/var/lib/dpkg/info