package nginx-full 1.10.3-0ubuntu0.16.04.2 failed to install/upgrade: 子进程 已安装 post-installation 脚本 返回错误状态 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nginx (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
zhiying@
php: /usr/bin/php7.0 /usr/bin/php /usr/lib/php /etc/php /usr/share/
zhiying@
zhiying@
[sudo] zhiying 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
E: 无法定位软件包 php7-common
E: 无法定位软件包 libapache2-mod-php7
E: 无法定位软件包 php7-cli
zhiying@
正在读取软件包列表... 完成
W: chmod 0700 of directory /var/lib/
E: 无法打开锁文件 /var/lib/
E: 无法对目录 /var/lib/apt/lists/ 加锁
W: 用 unlink 删除文件 /var/cache/
W: 用 unlink 删除文件 /var/cache/
zhiying@
忽略:1 http://
获取:2 http://
命中:3 http://
命中:5 http://
获取:6 http://
命中:7 http://
获取:8 http://
获取:9 http://
获取:10 http://
获取:11 http://
获取:12 http://
获取:13 http://
获取:14 http://
获取:15 http://
获取:16 http://
获取:17 http://
获取:18 http://
获取:19 http://
获取:20 http://
获取:21 http://
获取:22 http://
获取:23 http://
获取:24 http://
获取:25 http://
已下载 4,758 kB,耗时 5秒 (928 kB/s)
AppStream cache update completed, but some metadata was ignored due to errors.
正在读取软件包列表... 完成
zhiying@
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
E: 无法定位软件包 php7-common
E: 无法定位软件包 libapache2-mod-php7
E: 无法定位软件包 php7-cli
zhiying@
libapache2-
php-all-dev - package depending on all supported PHP development packages
php7.0 - server-side, HTML-embedded scripting language (metapackage)
php7.0-cgi - server-side, HTML-embedded scripting language (CGI binary)
php7.0-cli - command-line interpreter for the PHP scripting language
php7.0-common - documentation, examples and common module for PHP
php7.0-curl - CURL module for PHP
php7.0-dev - Files for PHP7.0 module development
php7.0-gd - GD module for PHP
php7.0-gmp - GMP module for PHP
php7.0-json - JSON module for PHP
php7.0-ldap - LDAP module for PHP
php7.0-mysql - MySQL module for PHP
php7.0-odbc - ODBC module for PHP
php7.0-opcache - Zend OpCache module for PHP
php7.0-pgsql - PostgreSQL module for PHP
php7.0-pspell - pspell module for PHP
php7.0-readline - readline module for PHP
php7.0-recode - recode module for PHP
php7.0-snmp - SNMP module for PHP
php7.0-sqlite3 - SQLite3 module for PHP
php7.0-tidy - tidy module for PHP
php7.0-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP
php7.0-xmlrpc - XMLRPC-EPI module for PHP
libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library)
php7.0-bcmath - Bcmath module for PHP
php7.0-bz2 - bzip2 module for PHP
php7.0-enchant - Enchant module for PHP
php7.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
php7.0-imap - IMAP module for PHP
php7.0-interbase - Interbase module for PHP
php7.0-intl - Internationalis
php7.0-mbstring - MBSTRING module for PHP
php7.0-mcrypt - libmcrypt module for PHP
php7.0-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
php7.0-soap - SOAP module for PHP
php7.0-sybase - Sybase module for PHP
php7.0-xsl - XSL module for PHP (dummy)
php7.0-zip - Zip module for PHP
php7.0-dba - DBA module for PHP
zhiying@
程序“aptitude”尚未安装。 您可以使用以下命令安装:
sudo apt install aptitude
zhiying@
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在
debugedit librpmbuild3 librpmsign3 libsqlite0 python-libxml2 python-lzma
python-pycurl python-rpm python-sqlite python-sqlitecachec python-urlgrabber
rpm
使用'sudo apt autoremove'
将会同时安装下列软件:
aptitude-common libcwidget3v5
建议安装:
apt-xapian-index aptitude-doc-en | aptitude-doc debtags tasksel
libcwidget-dev
下列【新】软件包将被安装:
aptitude aptitude-common libcwidget3v5
升级了 0 个软件包,新安装了 3 个软件包,要卸载 0 个软件包,有 12 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
需要下载 2,345 kB 的归档。
解压缩后会消耗 9,865 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://
获取:2 http://
获取:3 http://
已下载 2,345 kB,耗时 15秒 (149 kB/s)
正在选中未选择的软件包 aptitude-common。
(正在读取数据库 ... 系统当前共安装有 233368 个文件和目录。)
正准备解包 .../aptitude-
正在解包 aptitude-common (0.7.4-2ubuntu2) ...
正在选中未选择的软件包 libcwidget3v5:
正准备解包 .../libcwidget3
正在解包 libcwidget3v5:amd64 (0.5.17-4ubuntu2) ...
正在选中未选择的软件包 aptitude。
正准备解包 .../aptitude_
正在解包 aptitude (0.7.4-2ubuntu2) ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在处理用于 libc-bin (2.23-0ubuntu10) 的触发器 ...
正在设置 nginx-core (1.10.3-
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since 二 2018-07-31 11:14:07 CST; 5ms ago
Process: 11392 ExecStartPre=
7月 31 11:14:07 zhiying-
7月 31 11:14:07 zhiying-
7月 31 11:14:07 zhiying-
7月 31 11:14:07 zhiying-
7月 31 11:14:07 zhiying-
7月 31 11:14:07 zhiying-
7月 31 11:14:07 zhiying-
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: 处理软件包 nginx-core (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
dpkg: 依赖关系问题使得 nginx 的配置工作不能继续:
nginx 依赖于 nginx-core (>= 1.10.3-
软件包 nginx-core 尚未配置。
未安装软件包 nginx-full。
未安装软件包 nginx-light。
未安装软件包 nginx-extras。
nginx 依赖于 nginx-core (<< 1.10.3-
软件包 nginx-core 尚未配置。
未安装软件包 nginx-full。
未安装软件包 nginx-light。
未安装软件包 nginx-extras。
dpkg: 处理软件包 nginx (--configure)时出错:
依赖关系问题 - 仍未被配置
正在设置 aptitude-common (0.7.4-2ubuntu2) ...
因为错误消息指示这是由于上一个
正在设置 aptitude (0.7.4-2ubuntu2) ...
update-
正在处理用于 libc-bin (2.23-0ubuntu10) 的触发器 ...
在处理时有错误发生:
nginx-core
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
zhiying@
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在
debugedit librpmbuild3 librpmsign3 libsqlite0 python-libxml2 python-lzma
python-pycurl python-rpm python-sqlite python-sqlitecachec python-urlgrabber
rpm
使用'sudo apt autoremove'
建议安装:
nginx-doc
下列软件包将被【卸载】:
nginx-core
下列【新】软件包将被安装:
nginx-full
升级了 0 个软件包,新安装了 1 个软件包,要卸载 1 个软件包,有 12 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
需要下载 453 kB 的归档。
解压缩后会消耗 71.7 kB 的额外空间。
您希望继续执行吗? [Y/n] n
中止。
zhiying@
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造
包尚未被创建或是它们已被从新到
下列信息可能会对解决问题有所帮助:
下列软件包有未满足的依赖关系:
nginx-extras : 冲突: nginx-full 但是 1.10.3-
冲突: nginx-light 但是 1.10.3-
nginx-full : 冲突: nginx-extras 但是 1.10.3-
冲突: nginx-light 但是 1.10.3-
nginx-light : 冲突: nginx-extras 但是 1.10.3-
冲突: nginx-full 但是 1.10.3-
E: 无法修正错误,
zhiying@
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在
debugedit librpmbuild3 librpmsign3 libsqlite0 python-libxml2 python-lzma
python-pycurl python-rpm python-sqlite python-sqlitecachec python-urlgrabber
rpm
使用'sudo apt autoremove'
建议安装:
nginx-doc
下列软件包将被【卸载】:
nginx-core
下列【新】软件包将被安装:
nginx-full
升级了 0 个软件包,新安装了 1 个软件包,要卸载 1 个软件包,有 12 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
需要下载 453 kB 的归档。
解压缩后会消耗 71.7 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://
已下载 453 kB,耗时 8秒 (51.9 kB/s)
dpkg: nginx-core:
nginx 依赖于 nginx-core (>= 1.10.3-
即将删除 nginx-core。
未安装软件包 nginx-full。
未安装软件包 nginx-light。
未安装软件包 nginx-extras。
nginx 依赖于 nginx-core (<< 1.10.3-
即将删除 nginx-core。
未安装软件包 nginx-full。
未安装软件包 nginx-light。
未安装软件包 nginx-extras。
nginx 依赖于 nginx-core (>= 1.10.3-
即将删除 nginx-core。
未安装软件包 nginx-full。
未安
(正在读取数据库 ... 系统当前共安装有 233496 个文件和目录。)
正在卸载 nginx-core (1.10.3-
正在选中未选择的软件包 nginx-full。
(正在读取数据库 ... 系统当前共安装有 233492 个文件和目录。)
正准备解包 .../nginx-
正在解包 nginx-full (1.10.3-
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在设置 nginx-full (1.10.3-
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since 二 2018-07-31 11:16:17 CST; 4ms ago
Process: 12081 ExecStartPre=
7月 31 11:16:17 zhiying-
7月 31 11:16:17 zhiying-
7月 31 11:16:17 zhiying-
7月 31 11:16:17 zhiying-
7月 31 11:16:17 zhiying-
7月 31 11:16:17 zhiying-
7月 31 11:16:17 zhiying-
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: 处理软件包 nginx-full (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
E: Sub-process /usr/bin/dpkg returned an error code (
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: nginx-full 1.10.3-
ProcVersionSign
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
AptOrdering:
nginx-core: Remove
nginx-full: Install
nginx-full: Configure
nginx: Configure
NULL: ConfigurePending
Architecture: amd64
Date: Tue Jul 31 11:16:17 2018
ErrorMessage: 子进程 已安装 post-installation 脚本 返回错误状态 1
InstallationDate: Installed on 2018-04-10 (111 days ago)
InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64 (20180228)
RelatedPackageV
dpkg 1.18.4ubuntu1.4
apt 1.2.27
SourcePackage: nginx
Title: package nginx-full 1.10.3-
UpgradeStatus: No upgrade log present (probably fresh install)
From the logs it looks like this failed since the configuration file for nginx was not found:
7月 31 11:16:17 zhiying- Lenovo- XiaoXin- 310-15IKB nginx[12081]: nginx: [emerg] open() "/etc/nginx/ nginx.conf" failed (2: No such file or directory) Lenovo- XiaoXin- 310-15IKB nginx[12081]: nginx: configuration file /etc/nginx/ nginx.conf test failed
7月 31 11:16:17 zhiying-
Have you removed this file or is it inaccessible to the nginx process?