Inhaltsverzeichnis
Antwortinhalt:
Heim Backend-Entwicklung PHP-Tutorial Die Installation von Ubuntu16.04 PHP ist fehlgeschlagen, was dazu führt, dass Abhängigkeiten die Fortsetzung der Konfiguration von PHP7.0 verhindern.

Die Installation von Ubuntu16.04 PHP ist fehlgeschlagen, was dazu führt, dass Abhängigkeiten die Fortsetzung der Konfiguration von PHP7.0 verhindern.

Sep 11, 2016 am 11:34 AM
php

Bei der Installation von php7.0 auf Ubuntu 16.04 wird Folgendes angezeigt:

<code>pcd@pcd-All-Series:~/桌面$ sudo apt-get install php7.0
[sudo] pcd 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
php7.0 已经是最新版 (7.0.10-2+deb.sury.org~xenial+1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 libapache2-mod-php7.0 (7.0.10-2+deb.sury.org~xenial+1) ...
Not replacing deleted config file /etc/php/7.0/apache2/php.ini
php_invoke: Enable module xmlwriter for apache2 sapi
php_invoke: Enable module xml for apache2 sapi
php_invoke: Enable module fileinfo for apache2 sapi
php_invoke: Enable module shmop for apache2 sapi
php_invoke: Enable module calendar for apache2 sapi
php_invoke: Enable module sysvsem for apache2 sapi
php_invoke: Enable module exif for apache2 sapi
php_invoke: Enable module xmlreader for apache2 sapi
php_invoke: Enable module json for apache2 sapi
php_invoke: Enable module tokenizer for apache2 sapi
php_invoke: Enable module simplexml for apache2 sapi
php_invoke: Enable module dom for apache2 sapi
php_invoke: Enable module posix for apache2 sapi
php_invoke: Enable module gettext for apache2 sapi
php_invoke: Enable module sysvmsg for apache2 sapi
php_invoke: Enable module sysvshm for apache2 sapi
php_invoke: Enable module wddx for apache2 sapi
php_invoke: Enable module xsl for apache2 sapi
php_invoke: Enable module readline for apache2 sapi
php_invoke: Enable module ctype for apache2 sapi
php_invoke: Enable module phar for apache2 sapi
php_invoke: Enable module ftp for apache2 sapi
php_invoke: Enable module opcache for apache2 sapi
php_invoke: Enable module pdo for apache2 sapi
php_invoke: Enable module sockets for apache2 sapi
php_invoke: Enable module iconv for apache2 sapi
dpkg: 处理软件包 libapache2-mod-php7.0 (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回错误状态 1
正在设置 php7.0-fpm (7.0.10-2+deb.sury.org~xenial+1) ...
Not replacing deleted config file /etc/php/7.0/fpm/php.ini
php_invoke: Enable module xmlwriter for fpm sapi
php_invoke: Enable module xml for fpm sapi
php_invoke: Enable module fileinfo for fpm sapi
php_invoke: Enable module shmop for fpm sapi
php_invoke: Enable module calendar for fpm sapi
php_invoke: Enable module sysvsem for fpm sapi
php_invoke: Enable module exif for fpm sapi
php_invoke: Enable module xmlreader for fpm sapi
php_invoke: Enable module json for fpm sapi
php_invoke: Enable module tokenizer for fpm sapi
php_invoke: Enable module simplexml for fpm sapi
php_invoke: Enable module dom for fpm sapi
php_invoke: Enable module posix for fpm sapi
php_invoke: Enable module gettext for fpm sapi
php_invoke: Enable module sysvmsg for fpm sapi
php_invoke: Enable module sysvshm for fpm sapi
php_invoke: Enable module wddx for fpm sapi
php_invoke: Enable module xsl for fpm sapi
php_invoke: Enable module readline for fpm sapi
php_invoke: Enable module ctype for fpm sapi
php_invoke: Enable module phar for fpm sapi
php_invoke: Enable module ftp for fpm sapi
php_invoke: Enable module opcache for fpm sapi
php_invoke: Enable module pdo for fpm sapi
php_invoke: Enable module sockets for fpm sapi
php_invoke: Enable module iconv for fpm sapi
NOTICE: Not enabling PHP 7.0 FPM by default.
NOTICE: To enable PHP 7.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
initctl: 无法连接到 Upstart: Failed to connect to socket /com/ubuntu/upstart: 拒绝连接
insserv: warning: script 'scrapyd' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `scrapyd'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `scrapyd'
Job for php7.0-fpm.service failed because the control process exited with error code. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php7.0-fpm, action "restart" failed.
dpkg: 处理软件包 php7.0-fpm (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回错误状态 1
dpkg: 依赖关系问题使得 php7.0 的配置工作不能继续:
 php7.0 依赖于 libapache2-mod-php7.0 | php7.0-fpm | php7.0-cgi;然而:
  软件包 libapache2-mod-php7.0 尚未配置。
  软件包 php7.0-fpm 尚未配置。
  未安装软件包 php7.0-cgi。

dpkg: 处理软件包 php7.0 (--configure)时出错:
 依赖关系问题 - 仍未被配置
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
                                                                    在处理时有错误发生:
 libapache2-mod-php7.0
 php7.0-fpm
 php7.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
pcd@pcd-All-Series:~/桌面$ 
</code>
Nach dem Login kopieren
Nach dem Login kopieren

In diesem Fall habe ich auf die gleiche Weise andere PHP-bezogene Software installiert. Da die Konfigurationsarbeiten nicht fortgesetzt werden können, gibt es wirklich keine Möglichkeit, das Problem zu lösen.

Antwortinhalt:

Bei der Installation von php7.0 unter Ubuntu 16.04 wird Folgendes angezeigt:

<code>pcd@pcd-All-Series:~/桌面$ sudo apt-get install php7.0
[sudo] pcd 的密码: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
php7.0 已经是最新版 (7.0.10-2+deb.sury.org~xenial+1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 3 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 libapache2-mod-php7.0 (7.0.10-2+deb.sury.org~xenial+1) ...
Not replacing deleted config file /etc/php/7.0/apache2/php.ini
php_invoke: Enable module xmlwriter for apache2 sapi
php_invoke: Enable module xml for apache2 sapi
php_invoke: Enable module fileinfo for apache2 sapi
php_invoke: Enable module shmop for apache2 sapi
php_invoke: Enable module calendar for apache2 sapi
php_invoke: Enable module sysvsem for apache2 sapi
php_invoke: Enable module exif for apache2 sapi
php_invoke: Enable module xmlreader for apache2 sapi
php_invoke: Enable module json for apache2 sapi
php_invoke: Enable module tokenizer for apache2 sapi
php_invoke: Enable module simplexml for apache2 sapi
php_invoke: Enable module dom for apache2 sapi
php_invoke: Enable module posix for apache2 sapi
php_invoke: Enable module gettext for apache2 sapi
php_invoke: Enable module sysvmsg for apache2 sapi
php_invoke: Enable module sysvshm for apache2 sapi
php_invoke: Enable module wddx for apache2 sapi
php_invoke: Enable module xsl for apache2 sapi
php_invoke: Enable module readline for apache2 sapi
php_invoke: Enable module ctype for apache2 sapi
php_invoke: Enable module phar for apache2 sapi
php_invoke: Enable module ftp for apache2 sapi
php_invoke: Enable module opcache for apache2 sapi
php_invoke: Enable module pdo for apache2 sapi
php_invoke: Enable module sockets for apache2 sapi
php_invoke: Enable module iconv for apache2 sapi
dpkg: 处理软件包 libapache2-mod-php7.0 (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回错误状态 1
正在设置 php7.0-fpm (7.0.10-2+deb.sury.org~xenial+1) ...
Not replacing deleted config file /etc/php/7.0/fpm/php.ini
php_invoke: Enable module xmlwriter for fpm sapi
php_invoke: Enable module xml for fpm sapi
php_invoke: Enable module fileinfo for fpm sapi
php_invoke: Enable module shmop for fpm sapi
php_invoke: Enable module calendar for fpm sapi
php_invoke: Enable module sysvsem for fpm sapi
php_invoke: Enable module exif for fpm sapi
php_invoke: Enable module xmlreader for fpm sapi
php_invoke: Enable module json for fpm sapi
php_invoke: Enable module tokenizer for fpm sapi
php_invoke: Enable module simplexml for fpm sapi
php_invoke: Enable module dom for fpm sapi
php_invoke: Enable module posix for fpm sapi
php_invoke: Enable module gettext for fpm sapi
php_invoke: Enable module sysvmsg for fpm sapi
php_invoke: Enable module sysvshm for fpm sapi
php_invoke: Enable module wddx for fpm sapi
php_invoke: Enable module xsl for fpm sapi
php_invoke: Enable module readline for fpm sapi
php_invoke: Enable module ctype for fpm sapi
php_invoke: Enable module phar for fpm sapi
php_invoke: Enable module ftp for fpm sapi
php_invoke: Enable module opcache for fpm sapi
php_invoke: Enable module pdo for fpm sapi
php_invoke: Enable module sockets for fpm sapi
php_invoke: Enable module iconv for fpm sapi
NOTICE: Not enabling PHP 7.0 FPM by default.
NOTICE: To enable PHP 7.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
initctl: 无法连接到 Upstart: Failed to connect to socket /com/ubuntu/upstart: 拒绝连接
insserv: warning: script 'scrapyd' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `scrapyd'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `scrapyd'
Job for php7.0-fpm.service failed because the control process exited with error code. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php7.0-fpm, action "restart" failed.
dpkg: 处理软件包 php7.0-fpm (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回错误状态 1
dpkg: 依赖关系问题使得 php7.0 的配置工作不能继续:
 php7.0 依赖于 libapache2-mod-php7.0 | php7.0-fpm | php7.0-cgi;然而:
  软件包 libapache2-mod-php7.0 尚未配置。
  软件包 php7.0-fpm 尚未配置。
  未安装软件包 php7.0-cgi。

dpkg: 处理软件包 php7.0 (--configure)时出错:
 依赖关系问题 - 仍未被配置
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
                                                                    在处理时有错误发生:
 libapache2-mod-php7.0
 php7.0-fpm
 php7.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
pcd@pcd-All-Series:~/桌面$ 
</code>
Nach dem Login kopieren
Nach dem Login kopieren

In diesem Fall habe ich auf die gleiche Weise andere PHP-bezogene Software installiert. Da die Konfigurationsarbeiten nicht fortgesetzt werden können, gibt es wirklich keine Möglichkeit, das Problem zu lösen.

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bak //Jetzt den Info-Ordner umbenennen
sudo mkdir /var/lib/dpkg/info //Neue Info erstellen Ordner
sudo apt-get install libapache2-mod-php7.0
sudo apt-get install php7.0-fpm
sudo apt-get install php7.0
sudo mv /var /lib/ dpkg/info.bak /var/lib/dpkg/info

Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn

Heiße KI -Werkzeuge

Undresser.AI Undress

Undresser.AI Undress

KI-gestützte App zum Erstellen realistischer Aktfotos

AI Clothes Remover

AI Clothes Remover

Online-KI-Tool zum Entfernen von Kleidung aus Fotos.

Undress AI Tool

Undress AI Tool

Ausziehbilder kostenlos

Clothoff.io

Clothoff.io

KI-Kleiderentferner

AI Hentai Generator

AI Hentai Generator

Erstellen Sie kostenlos Ai Hentai.

Heißer Artikel

R.E.P.O. Energiekristalle erklärten und was sie tun (gelber Kristall)
2 Wochen vor By 尊渡假赌尊渡假赌尊渡假赌
Repo: Wie man Teamkollegen wiederbelebt
1 Monate vor By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Abenteuer: Wie man riesige Samen bekommt
4 Wochen vor By 尊渡假赌尊渡假赌尊渡假赌

Heiße Werkzeuge

Notepad++7.3.1

Notepad++7.3.1

Einfach zu bedienender und kostenloser Code-Editor

SublimeText3 chinesische Version

SublimeText3 chinesische Version

Chinesische Version, sehr einfach zu bedienen

Senden Sie Studio 13.0.1

Senden Sie Studio 13.0.1

Leistungsstarke integrierte PHP-Entwicklungsumgebung

Dreamweaver CS6

Dreamweaver CS6

Visuelle Webentwicklungstools

SublimeText3 Mac-Version

SublimeText3 Mac-Version

Codebearbeitungssoftware auf Gottesniveau (SublimeText3)

CakePHP-Projektkonfiguration CakePHP-Projektkonfiguration Sep 10, 2024 pm 05:25 PM

In diesem Kapitel werden wir die Umgebungsvariablen, die allgemeine Konfiguration, die Datenbankkonfiguration und die E-Mail-Konfiguration in CakePHP verstehen.

PHP 8.4 Installations- und Upgrade-Anleitung für Ubuntu und Debian PHP 8.4 Installations- und Upgrade-Anleitung für Ubuntu und Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 bringt mehrere neue Funktionen, Sicherheitsverbesserungen und Leistungsverbesserungen mit einer beträchtlichen Menge an veralteten und entfernten Funktionen. In dieser Anleitung wird erklärt, wie Sie PHP 8.4 installieren oder auf PHP 8.4 auf Ubuntu, Debian oder deren Derivaten aktualisieren. Obwohl es möglich ist, PHP aus dem Quellcode zu kompilieren, ist die Installation aus einem APT-Repository wie unten erläutert oft schneller und sicherer, da diese Repositorys in Zukunft die neuesten Fehlerbehebungen und Sicherheitsupdates bereitstellen.

CakePHP Datum und Uhrzeit CakePHP Datum und Uhrzeit Sep 10, 2024 pm 05:27 PM

Um in cakephp4 mit Datum und Uhrzeit zu arbeiten, verwenden wir die verfügbare FrozenTime-Klasse.

CakePHP-Datei hochladen CakePHP-Datei hochladen Sep 10, 2024 pm 05:27 PM

Um am Datei-Upload zu arbeiten, verwenden wir den Formular-Helfer. Hier ist ein Beispiel für den Datei-Upload.

CakePHP-Routing CakePHP-Routing Sep 10, 2024 pm 05:25 PM

In diesem Kapitel lernen wir die folgenden Themen im Zusammenhang mit dem Routing kennen.

Besprechen Sie CakePHP Besprechen Sie CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP ist ein Open-Source-Framework für PHP. Es soll die Entwicklung, Bereitstellung und Wartung von Anwendungen erheblich vereinfachen. CakePHP basiert auf einer MVC-ähnlichen Architektur, die sowohl leistungsstark als auch leicht zu verstehen ist. Modelle, Ansichten und Controller gu

So richten Sie Visual Studio-Code (VS-Code) für die PHP-Entwicklung ein So richten Sie Visual Studio-Code (VS-Code) für die PHP-Entwicklung ein Dec 20, 2024 am 11:31 AM

Visual Studio Code, auch bekannt als VS Code, ist ein kostenloser Quellcode-Editor – oder eine integrierte Entwicklungsumgebung (IDE) –, die für alle gängigen Betriebssysteme verfügbar ist. Mit einer großen Sammlung von Erweiterungen für viele Programmiersprachen kann VS Code c

CakePHP erstellt Validatoren CakePHP erstellt Validatoren Sep 10, 2024 pm 05:26 PM

Der Validator kann durch Hinzufügen der folgenden zwei Zeilen im Controller erstellt werden.

See all articles