
更新系統後,我收到此錯誤:
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)
我怎樣才能解決這個問題?
答案1
經過 2 小時的測試,這對我有用:
刪除(清除)apache 和所有 php 套件:
apt-get purge php* apt-get purge apache2
安裝這些軟體包:
apt-get install apache2 php7.0 libapache2-mod-php7.0
答案2
這是 Ondrej 的 PPA 中 PHP 7.0.5 套件中損壞的建置的一個已知問題。
根據他的錯誤報告,新的建設剛剛完成。
再試一次(你可能必須這樣做apt-get update
),它應該可以工作。
如果apt-get update
沒有幫助,您可能還需要手動刪除舊的套件快取:
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
答案3
正如張貼在錯誤報告 apt-get update && apt-get upgrade
效果很好!