When php7.0 is installed on ubuntu16.04, the following message is displayed: {code ...} in this case, the installation of other php-related software is also the case, because the configuration work cannot continue, it is really unable to solve the problem, please refer to the great god here to install php7.0 on ubuntu16.04 to prompt this:
:~ /Desktop $ sudo apt-get install php7.0 [sudo] pcd password: Reading the package list... the dependency tree of the software package being analyzed is reading status information... php7.0 is the latest version (7.0.10-2 + deb.sury.org ~ Xenial + 1 ). 0 software packages are upgraded, 0 new software packages are installed, 0 software packages are to be uninstalled, and 0 software packages are not upgraded. Three software packages are not fully installed or uninstalled. After decompression, the extra space of 0 B is consumed. 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. protocol: Enable module xmlwriter for apache2 sapiphp_invoke: Enable module xml for apache2 protocol: Enable module fileinfo for apache2 protocol: Enable module shmop for apache2 protocol: Enable module calendar for apache2 sapiphp_invoke: enable module sysvsem for apache2 sapiphp_invoke: Enable module ex If for apache2 protocol: Enable module xmlreader for apache2 protocol: Enable module json for apache2 protocol: Enable module tokenizer for apache2 protocol: Enable module simplexml for apache2 protocol: Enable module dom for apache2 protocol: enable module posix for apache2 sapiphp_invoke: Enable module gettext for apache2 sapiphp_invoke: Enable module sysvmsg For apache2 protocol: Enable module sysvshm for apache2 protocol: Enable module wddx for apache2 protocol: Enable module xsl for apache2 protocol: Enable module readline for apache2 protocol: Enable module ctype for apache2 protocol: enable module phar for apache2 sapiphp_invoke: Enable module ftp for apache2 sapiphp_invoke: Enable module opcache for apache2 sap Phphp_invoke: Enable module pdo for apache2 sapiphp_invoke: Enable module sockets for apache2 sapiphp_invoke: Enable module iconv for apache2 sapidpkg: error when processing package libapache2-mod-php7.0 (-- configure: the sub-process has installed the post-installation script and returns error status 1. php7.0-fpm (7.0.10-2 + deb.sury.org ~ Xenial + 1 )... not replacing deleted config file/etc/php/7.0/fpm/php. authorization: Enable module xmlwriter for fpm sapiphp_invoke: Enable module xml for fpm sapiphp_invoke: Enable module fileinfo for fpm restart: Enable module shmop for fpm sapiphp_invoke: Enable module calendar for fpm sapiphp_invoke: enable module sysvsem for fpm sapiphp_invoke: Enable module exif for fpm sapiphp_invoke: E Nable 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 gettext for fpm sapiphp_invoke: Enable module sysvmsg for fpm sapiphp_invoke: Enable module sysvshm for fpm sapiph P_invoke: Enable module wddx for fpm sapiphp_invoke: Enable module xsl for fpm sapiphp_invoke: Enable module readline for fpm runtime: Enable module ctype for fpm sapiphp_invoke: Enable module phar for fpm sapiphp_invoke: enable module ftp for fpm sapiphp_invoke: Enable module opcache for fpm sapiphp_invoke: Enable module pdo for fpm sapiphp_invoke: Enable module sockets for fpm sapiphp_inv KE: 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 are seeing this message because you have apache2 package installed. initctl: unable to connect to Upstart: Failed to connect to socket/com/ubuntu/upstart: Refuse to connect to insserv: warning: script 'scrapyd 'missing LSB tags and o Verridesinsserv: Default-Start undefined, assuming empty start runlevel (s) for script 'scrapyd 'insserv: Default-Stop undefined, assuming empty stop runlevel (s) for script '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 "restart" failed. Dpkg: An error occurred while processing the software package php7.0-fpm (-- configure): the sub-process has installed the post-installation script and returned the error status 1 dpkg: dependency problem, making php7.0 configuration unable to continue: php7.0 depends on the libapache2-mod-php7.0 | php7.0-fpm | php7.0-cgi; however: the package libapache2-mod-php7.0 is not configured yet. The software package php7.0-fpm is not configured yet. Php7.0-cgi is not installed. Dpkg: An error occurred while processing the software package php7.0 (-- configure): dependency problem-not configured because the error message indicates this is an error caused by the previous problem and not written to the apport report. Error occurred during processing: libapache2-mod-php7.0 php7.0-fpm php7.0E: Sub-process/usr/bin/dpkg returned an error code (1) pcd @ pcd-All-Series :~ /Desktop $
In this case, the same is true for installing other php-related software. the configuration cannot be continued and cannot be solved.
Reply content:
The following message is displayed when you install php7.0 on ubuntu16.04:
:~ /Desktop $ sudo apt-get install php7.0 [sudo] pcd password: Reading the package list... the dependency tree of the software package being analyzed is reading status information... php7.0 is the latest version (7.0.10-2 + deb.sury.org ~ Xenial + 1 ). 0 software packages are upgraded, 0 new software packages are installed, 0 software packages are to be uninstalled, and 0 software packages are not upgraded. Three software packages are not fully installed or uninstalled. After decompression, the extra space of 0 B is consumed. 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. protocol: Enable module xmlwriter for apache2 sapiphp_invoke: Enable module xml for apache2 protocol: Enable module fileinfo for apache2 protocol: Enable module shmop for apache2 protocol: Enable module calendar for apache2 sapiphp_invoke: enable module sysvsem for apache2 sapiphp_invoke: Enable module ex If for apache2 protocol: Enable module xmlreader for apache2 protocol: Enable module json for apache2 protocol: Enable module tokenizer for apache2 protocol: Enable module simplexml for apache2 protocol: Enable module dom for apache2 protocol: enable module posix for apache2 sapiphp_invoke: Enable module gettext for apache2 sapiphp_invoke: Enable module sysvmsg For apache2 protocol: Enable module sysvshm for apache2 protocol: Enable module wddx for apache2 protocol: Enable module xsl for apache2 protocol: Enable module readline for apache2 protocol: Enable module ctype for apache2 protocol: enable module phar for apache2 sapiphp_invoke: Enable module ftp for apache2 sapiphp_invoke: Enable module opcache for apache2 sap Phphp_invoke: Enable module pdo for apache2 sapiphp_invoke: Enable module sockets for apache2 sapiphp_invoke: Enable module iconv for apache2 sapidpkg: error when processing package libapache2-mod-php7.0 (-- configure: the sub-process has installed the post-installation script and returns error status 1. php7.0-fpm (7.0.10-2 + deb.sury.org ~ Xenial + 1 )... not replacing deleted config file/etc/php/7.0/fpm/php. authorization: Enable module xmlwriter for fpm sapiphp_invoke: Enable module xml for fpm sapiphp_invoke: Enable module fileinfo for fpm restart: Enable module shmop for fpm sapiphp_invoke: Enable module calendar for fpm sapiphp_invoke: enable module sysvsem for fpm sapiphp_invoke: Enable module exif for fpm sapiphp_invoke: E Nable 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 gettext for fpm sapiphp_invoke: Enable module sysvmsg for fpm sapiphp_invoke: Enable module sysvshm for fpm sapiph P_invoke: Enable module wddx for fpm sapiphp_invoke: Enable module xsl for fpm sapiphp_invoke: Enable module readline for fpm runtime: Enable module ctype for fpm sapiphp_invoke: Enable module phar for fpm sapiphp_invoke: enable module ftp for fpm sapiphp_invoke: Enable module opcache for fpm sapiphp_invoke: Enable module pdo for fpm sapiphp_invoke: Enable module sockets for fpm sapiphp_inv KE: 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 are seeing this message because you have apache2 package installed. initctl: unable to connect to Upstart: Failed to connect to socket/com/ubuntu/upstart: Refuse to connect to insserv: warning: script 'scrapyd 'missing LSB tags and o Verridesinsserv: Default-Start undefined, assuming empty start runlevel (s) for script 'scrapyd 'insserv: Default-Stop undefined, assuming empty stop runlevel (s) for script '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 "restart" failed. Dpkg: An error occurred while processing the software package php7.0-fpm (-- configure): the sub-process has installed the post-installation script and returned the error status 1 dpkg: dependency problem, making php7.0 configuration unable to continue: php7.0 depends on the libapache2-mod-php7.0 | php7.0-fpm | php7.0-cgi; however: the package libapache2-mod-php7.0 is not configured yet. The software package php7.0-fpm is not configured yet. Php7.0-cgi is not installed. Dpkg: An error occurred while processing the software package php7.0 (-- configure): dependency problem-not configured because the error message indicates this is an error caused by the previous problem and not written to the apport report. Error occurred during processing: libapache2-mod-php7.0 php7.0-fpm php7.0E: Sub-process/usr/bin/dpkg returned an error code (1) pcd @ pcd-All-Series :~ /Desktop $
In this case, the same is true for installing other php-related software. the configuration cannot be continued and cannot be solved.
Sudo mv/var/lib/dpkg/info. bak // rename the info folder
Sudo mkdir/var/lib/dpkg/info // 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