Jadual Kandungan
回复内容:
Rumah pembangunan bahagian belakang tutorial php ubuntu16.04 php安装失败,提示依赖关系使得php7.0 的配置工作不能继续

ubuntu16.04 php安装失败,提示依赖关系使得php7.0 的配置工作不能继续

Sep 11, 2016 am 11:34 AM
php

在ubuntu16.04上安装php7.0提示这个:

<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>
Salin selepas log masuk
Salin selepas log masuk

在这种情况下,我安装其他php相关的软件也是这样,由于配置工作不能继续,真的无法解决了,来请教一下这里的大神

回复内容:

在ubuntu16.04上安装php7.0提示这个:

<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>
Salin selepas log masuk
Salin selepas log masuk

在这种情况下,我安装其他php相关的软件也是这样,由于配置工作不能继续,真的无法解决了,来请教一下这里的大神

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bak //现将info文件夹更名
sudo mkdir /var/lib/dpkg/info //再新建一个新的info文件夹
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

Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn

Alat AI Hot

Undresser.AI Undress

Undresser.AI Undress

Apl berkuasa AI untuk mencipta foto bogel yang realistik

AI Clothes Remover

AI Clothes Remover

Alat AI dalam talian untuk mengeluarkan pakaian daripada foto.

Undress AI Tool

Undress AI Tool

Gambar buka pakaian secara percuma

Clothoff.io

Clothoff.io

Penyingkiran pakaian AI

AI Hentai Generator

AI Hentai Generator

Menjana ai hentai secara percuma.

Artikel Panas

R.E.P.O. Kristal tenaga dijelaskan dan apa yang mereka lakukan (kristal kuning)
3 minggu yang lalu By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Tetapan grafik terbaik
3 minggu yang lalu By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Cara Memperbaiki Audio Jika anda tidak dapat mendengar sesiapa
3 minggu yang lalu By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: Cara Membuka Segala -galanya Di Myrise
4 minggu yang lalu By 尊渡假赌尊渡假赌尊渡假赌

Alat panas

Notepad++7.3.1

Notepad++7.3.1

Editor kod yang mudah digunakan dan percuma

SublimeText3 versi Cina

SublimeText3 versi Cina

Versi Cina, sangat mudah digunakan

Hantar Studio 13.0.1

Hantar Studio 13.0.1

Persekitaran pembangunan bersepadu PHP yang berkuasa

Dreamweaver CS6

Dreamweaver CS6

Alat pembangunan web visual

SublimeText3 versi Mac

SublimeText3 versi Mac

Perisian penyuntingan kod peringkat Tuhan (SublimeText3)

Panduan Pemasangan dan Naik Taraf PHP 8.4 untuk Ubuntu dan Debian Panduan Pemasangan dan Naik Taraf PHP 8.4 untuk Ubuntu dan Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 membawa beberapa ciri baharu, peningkatan keselamatan dan peningkatan prestasi dengan jumlah penamatan dan penyingkiran ciri yang sihat. Panduan ini menerangkan cara memasang PHP 8.4 atau naik taraf kepada PHP 8.4 pada Ubuntu, Debian, atau terbitan mereka

Tarikh dan Masa CakePHP Tarikh dan Masa CakePHP Sep 10, 2024 pm 05:27 PM

Untuk bekerja dengan tarikh dan masa dalam cakephp4, kami akan menggunakan kelas FrozenTime yang tersedia.

Bincangkan CakePHP Bincangkan CakePHP Sep 10, 2024 pm 05:28 PM

CakePHP ialah rangka kerja sumber terbuka untuk PHP. Ia bertujuan untuk menjadikan pembangunan, penggunaan dan penyelenggaraan aplikasi lebih mudah. CakePHP adalah berdasarkan seni bina seperti MVC yang berkuasa dan mudah difahami. Model, Pandangan dan Pengawal gu

Muat naik Fail CakePHP Muat naik Fail CakePHP Sep 10, 2024 pm 05:27 PM

Untuk mengusahakan muat naik fail, kami akan menggunakan pembantu borang. Di sini, adalah contoh untuk muat naik fail.

Pengesah Mencipta CakePHP Pengesah Mencipta CakePHP Sep 10, 2024 pm 05:26 PM

Pengesah boleh dibuat dengan menambah dua baris berikut dalam pengawal.

Pembalakan CakePHP Pembalakan CakePHP Sep 10, 2024 pm 05:26 PM

Log masuk CakePHP adalah tugas yang sangat mudah. Anda hanya perlu menggunakan satu fungsi. Anda boleh log ralat, pengecualian, aktiviti pengguna, tindakan yang diambil oleh pengguna, untuk sebarang proses latar belakang seperti cronjob. Mengelog data dalam CakePHP adalah mudah. Fungsi log() disediakan

Cara Menyediakan Kod Visual Studio (Kod VS) untuk Pembangunan PHP Cara Menyediakan Kod Visual Studio (Kod VS) untuk Pembangunan PHP Dec 20, 2024 am 11:31 AM

Kod Visual Studio, juga dikenali sebagai Kod VS, ialah editor kod sumber percuma — atau persekitaran pembangunan bersepadu (IDE) — tersedia untuk semua sistem pengendalian utama. Dengan koleksi sambungan yang besar untuk banyak bahasa pengaturcaraan, Kod VS boleh menjadi c

Panduan Ringkas CakePHP Panduan Ringkas CakePHP Sep 10, 2024 pm 05:27 PM

CakePHP ialah rangka kerja MVC sumber terbuka. Ia menjadikan pembangunan, penggunaan dan penyelenggaraan aplikasi lebih mudah. CakePHP mempunyai beberapa perpustakaan untuk mengurangkan beban tugas yang paling biasa.

See all articles