dqyknf4423 2018-01-29 12:18
浏览 156

在Ubuntu上没有安装php 7

I'm trying to install a LAMP environment on Ubuntu 16.04.3 LTS by following this tutorial. However, right in the first steps I'm getting errors about 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

I've been searching and found this and this solutions, but none of them worked for me. What else can I try?

Thanks in advance!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 成都蓉城足球俱乐部小程序抢票
    • ¥15 yolov7训练自己的数据集
    • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
    • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
    • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
    • ¥20 matlab yalmip kkt 双层优化问题
    • ¥15 如何在3D高斯飞溅的渲染的场景中获得一个可控的旋转物体
    • ¥88 实在没有想法,需要个思路
    • ¥15 MATLAB报错输入参数太多
    • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件