我正在尝试安装nginx
但sudo apt install nginx
一直收到以下错误:
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-core (>= 1.18.0-0ubuntu1) | nginx-full (>= 1.18.0-0ubuntu1) | nginx-light (>= 1.18.0-0ubuntu1) | nginx-extras (>= 1.18.0-0ubuntu1); however:
Package nginx-core is not configured yet.
Package nginx-full is not installed.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libgeoip1:amd64 (1.6.12-6build1) ...
Setting up geoip-database (20191224-2) ...
Setting up libnginx-mod-http-geoip (1.18.0-0ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
nginx-core
nginx
我已经关注了其他关于清除然后重新安装的答案(我的命令历史记录示例)
231 sudo apt-get dist-upgrade
232 sudo apt-get update
233 sudo apt-get purge nginx
234 sudo apt-get install nginx nginx-core nginx-common
但我一直收到同样的错误。我该如何修复此安装,谢谢。
当我尝试重新启动时nginx
出现以下错误:
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.