dpkg: 处理软件包 nginx (--configure)时出错: 依赖关系问题 - 仍未被配置

wangyetao@wangyetao-Lenovo-G510:~$ sudo apt install nginx
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
nginx 已经是最新版 (1.18.0-0ubuntu1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 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 - The NGINX HTTP and reverse proxy server
     Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2020-11-21 00:14:02 CST; 9ms ago
    Process: 9115 ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf (code=exited, status=203/EXEC)

11月 21 00:14:02 wangyetao-Lenovo-G510 systemd[1]: Starting The NGINX HTTP and reverse proxy server...
11月 21 00:14:02 wangyetao-Lenovo-G510 systemd[9115]: nginx.service: Failed to execute command: No such file or directory
11月 21 00:14:02 wangyetao-Lenovo-G510 systemd[9115]: nginx.service: Failed at step EXEC spawning /usr/local/nginx/sbin/nginx: No such file or directory
11月 21 00:14:02 wangyetao-Lenovo-G510 systemd[1]: nginx.service: Control process exited, code=exited, status=203/EXEC
11月 21 00:14:02 wangyetao-Lenovo-G510 systemd[1]: nginx.service: Failed with result 'exit-code'.
11月 21 00:14:02 wangyetao-Lenovo-G510 systemd[1]: Failed to start The NGINX HTTP and reverse proxy server.
dpkg: 处理软件包 nginx-core (--configure)时出错:
 已安装 nginx-core 软件包 post-installation 脚本 子进程返回错误状态 1
dpkg: 依赖关系问题使得 nginx 的配置工作不能继续:
 nginx 依赖于 nginx-core (<< 1.18.0-0ubuntu1.1~) | nginx-full (<< 1.18.0-0ubuntu1.1~) | nginx-light (<< 1.18.0-0ubuntu1.1~) | nginx-extras (<<
 1.18.0-0ubuntu1.1~);然而:
  软件包 nginx-core 尚未配置。
  未安装软件包 nginx-full。
  未安装软件包 nginx-light。
  未安装软件包 nginx-extras。
 nginx 依赖于 nginx-core (>= 1.18.0-0ubuntu1) | nginx-full (>= 1.18.0-0ubuntu1) | nginx-light (>= 1.18.0-0ubuntu1) | nginx-extras (>= 1.18.0-0
ubuntu1);然而:
  软件包 nginx-core 尚未配置。
  未安装软件包 nginx-full。
  未安装软件包 nginx-light。
  未安装软件包 nginx-extras。

dpkg: 处理软件包 nginx (--configure)时出错:
 依赖关系问题 - 仍未被配置
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
                                                                    在处理时有错误发生:
 nginx-core
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
wangyetao@wangyetao-Lenovo-G510:~$ 

 

 

wangyetao@wangyetao-Lenovo-G510:~$ date
2020年 11月 21日 星期六 00:34:49 CST
wangyetao@wangyetao-Lenovo-G510:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:    focal
wangyetao@wangyetao-Lenovo-G510:~$ uname -a
Linux wangyetao-Lenovo-G510 5.4.0-54-generic #60-Ubuntu SMP Fri Nov 6 10:37:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
wangyetao@wangyetao-Lenovo-G510:~$ 
 

按照这个链接解决问题,失败,无效 https://blog.csdn.net/dym755833564/article/details/103835396 ,,唉!不知道怎么办!有大佬知道怎么解决么?2020年 11月 21日 星期六 00:23:38 CST。

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

dnbug Blog

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值