我在 13.04 中安装 php 时遇到了问题。似乎包管理器无法(重新)配置 php 包。我已经尝试清除每个 php* 包、删除 /var/cache/aptbut 中的缓存文件以及我找到的其他解决方案,但似乎都不起作用。以下是错误输出:
$ sudo dpkg --debug=12 --configure -a
Setting up php5-common (5.4.9-4ubuntu2.3) ...
D000002: fork/exec /var/lib/dpkg/info/php5-common.postinst ( configure )
dpkg: error processing php5-common (--configure):
subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.4.9-4ubuntu2.3); however:
Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-cgi:
php5-cgi depends on php5-common (= 5.4.9-4ubuntu2.3); however:
Package php5-common is not configured yet.
dpkg: error processing php5-cgi (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-fpm:
php5-fpm depends on php5-common (= 5.4.9-4ubuntu2.3); however:
Package php5-common is not configured yet.
dpkg: error processing php5-fpm (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php5-common
php5-cli
php5-cgi
php5-fpm
sudo apt-get install -f
sudo apt-get install php5-common php5
它们都返回相同的错误。我该如何修复这个问题?