正在设置 nginx-full (1.10.1-1) ...
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.
dpkg: 处理软件包 nginx-full (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
dpkg: 依赖关系问题使得 nginx 的配置工作不能继续:
nginx 依赖于 nginx-full (>= 1.10.1-1) | nginx-light (>= 1.10.1-1) | nginx-extras (>= 1.10.1-1);然而:
软件包 nginx-full 尚未配置。
未安装软件包 nginx-light。
未安装软件包 nginx-extras。
nginx 依赖于 nginx-full (<< 1.10.1-1.1~) | nginx-light (<< 1.10.1-1.1~) | nginx-extras (<< 1.10.1-1.1~);然而:
软件包 nginx-full 尚未配置。
未安装软件包 nginx-light。
未安装软件包 nginx-extras。
解决办法
是因为安装了 apache2 的原因 ,你可以先浏览器访问 127.0.0.1 看看是否能打开页面,
如果打开了请先 关闭 apache2 服务
sudo service apache2 stop
再执行
sudo apt-get install nginx
快去看看解决没有/
网友评论