我尝试按照this教程在Ubuntu 16.04.3 LTS上安装LAMP环境。但是,在第一步中,我收到有关PHP 7的错误:
Setting up grub-pc (2.02~beta2-36ubuntu3.15) ...
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up unattended-upgrades (0.90ubuntu0.9) ...
dpkg: error processing package unattended-upgrades (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up php7.0-common (7.0.27-1+ubuntu16.04.1+deb.sury.org+1) ...
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.27-1+ubuntu16.04.1+deb.sury.org+1); 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.27-1+ubuntu16.04.1+deb.sury.org+1); 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; 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 libapache2-mod-php7.0:
libapache2-mod-php7.0 depends on php7.0-common (= 7.0.27-1+ubuntu16.04.1+deb.sury.org+1); however:
Package php7.0-common is not configured yet.
libapache2-mod-php7.0 depends on php7.0-opcache; however:
Package php7.0-opcache is not configured yet.
dpkg: error processing package libapache2-mod-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.27-1+ubuntu16.04.1+deb.sury.org+1); 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-json:
php7.0-json depends on php7.0-common (= 7.0.27-1+ubuntu16.04.1+deb.sury.org+1); 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:
grub-pc
unattended-upgrades
php7.0-common
php7.0-readline
php7.0-opcache
php7.0
libapache2-mod-php7.0
php7.0-cli
php7.0-json
我一直在搜索并找到this和this解决方案,但这些解决方案都不适用于我。我还能尝试什么?
提前致谢!