package nginx-core 1.18.0-0ubuntu1 failed to install/upgrade: 已安装 nginx-core 软件包 post-installation 脚本 子进程返回错误状态 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nginx (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
正在设置 nginx-core (1.18.0-0ubuntu1) ...
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/
enabled)
Active: failed (Result: exit-code) since Fri 2020-07-03 17:38:06 CST; 12ms
ago
Docs: man:nginx(8)
Process: 35740 ExecStartPre=
ss on; (code=exited, status=1/FAILURE)
7月 03 17:38:06 songquanyu-X442UR systemd[1]: Starting A high performance web se
rver and a reverse proxy server...
7月 03 17:38:06 songquanyu-X442UR nginx[35740]: nginx: [emerg] open() "/etc/ngin
x/nginx.conf" failed (2: No such file or directory)
7月 03 17:38:06 songquanyu-X442UR nginx[35740]: nginx: configuration file /etc/n
ginx/nginx.conf test failed
7月 03 17:38:06 songquanyu-X442UR systemd[1]: nginx.service: Control process exi
ted, code=exited, status=1/FAILURE
7月 03 17:38:06 songquanyu-X442UR systemd[1]: nginx.service: Failed with result
'exit-code'.
7月 03 17:38:06 songquanyu-X442UR systemd[1]: Failed to start A high performance
web server and a reverse proxy server.
dpkg: 处理软件包 nginx-core (--configure)时出错:
已安装 nginx-core 软件包 post-installation 脚本 子进程返回错误状态 1
在处理时有错误发生:
nginx-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: nginx-core 1.18.0-0ubuntu1
ProcVersionSign
Uname: Linux 5.4.0-40-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckR
Date: Fri Jul 3 17:35:35 2020
ErrorMessage: 已安装 nginx-core 软件包 post-installation 脚本 子进程返回错误状态 1
InstallationDate: Installed on 2020-04-25 (68 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.2ubuntu0.1
SourcePackage: nginx
Title: package nginx-core 1.18.0-0ubuntu1 failed to install/upgrade: 已安装 nginx-core 软件包 post-installation 脚本 子进程返回错误状态 1
UpgradeStatus: No upgrade log present (probably fresh install)
From log:
7月 03 17:35:34 songquanyu-X442UR systemd[1]: Starting A high performance web server and a reverse proxy server... nginx.conf" failed (2: No such file or directory) nginx.conf test failed
7月 03 17:35:34 songquanyu-X442UR nginx[31274]: nginx: [emerg] open() "/etc/nginx/
7月 03 17:35:34 songquanyu-X442UR nginx[31274]: nginx: configuration file /etc/nginx/