无法配置 dpkg

无法配置 dpkg

我试图安装 php,但不知何故我的 dpkg 出了问题。常规谷歌搜索没有帮助。有人能解释一下我该怎么做吗?已经过去很长时间了,我还没能想出解决办法。

sudo dpkg --configure -a
Setting up php7.0-common (7.0.8-0ubuntu0.16.04.3) ...
dpkg: error processing package php7.0-common (--configure):
 subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of php7.0-readline:
 php7.0-readline depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however:
  Package php7.0-common is not configured yet.

dpkg: error processing package php7.0-readline (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0-opcache:
 php7.0-opcache depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however:
  Package php7.0-common is not configured yet.

dpkg: error processing package php7.0-opcache (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0:
 php7.0 depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however:
  Package php7.0-common is not configured yet.

dpkg: error processing package php7.0 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0-cli:
 php7.0-cli depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however:
  Package php7.0-common is not configured yet.
 php7.0-cli depends on php7.0-opcache; however:
  Package php7.0-opcache is not configured yet.
 php7.0-cli depends on php7.0-readline; however:
  Package php7.0-readline is not configured yet.

dpkg: error processing package php7.0-cli (--configure):
 dependency problems - leaving unconfigured
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.
 php7.0-fpm depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however:
  Package php7.0-common is not configured yet.
 php7.0-fpm depends on php7.0-opcache; however:
  Package php7.0-opcache is not configured yet.

dpkg: error processing package php7.0-fpm (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php7.0-json:
 php7.0-json depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however:
  Package php7.0-common is not configured yet.

dpkg: error processing package php7.0-json (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 php7.0-common
 php7.0-readline
 php7.0-opcache
 php7.0
 php7.0-cli
 php7.0-fpm
 php7.0-json

相关内容