PHP Error – New File /usr/lib/php/7.0/php.ini-production.cli Does Not Exist

PHPphp7

After updating my system I received this error:

Setting up php7.0-cli (7.0.5-1+deb.sury.org~trusty+1) ...
Error: The new file /usr/lib/php/7.0/php.ini-production.cli does not exist!
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
dpkg: error processing package php7.0-cli (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php7.0-fpm:
php7.0-fpm depends on php7.0-cli; however:
Package php7.0-cli is not configured yet.

dpkg: error processing package php7.0-fpm (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0-cgi:
php7.0-cgi depends on php7.0-cli; however:
Package php7.0-cli is not configured yet.

dpkg: error processing package php7.0-cgi (--configure):
dependency problems - leaving unconfigured
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 configured yet.

dpkg: error processing package php7.0 (--configure):
dependency problems - leaving unconfigured
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can i fix this?

Best Answer

This is a known issue with a broken build in the PHP 7.0.5 packages in Ondrej's PPA.

According to his bug report, the new build has just completed.

Try again (you probably have to apt-get update) and it should work.


If apt-get update doesn't help, you might also need to manually remove the old package cache manually:

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update