nginx无法安装
Tofloor
poster avatar
153******45
deepin
2016-07-25 02:26
Author
正在设置 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。

dpkg: 处理软件包 nginx (--configure)时出错:
依赖关系问题 - 仍未被配置
正在处理用于 systemd (229-4) 的触发器 ...
在处理时有错误发生:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
正在设置 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。

dpkg: 处理软件包 nginx (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
nginx-full
nginx
                                 
lang@lang-pc:~$ sudo aptitude install nginx
下列仅部分安装的软件包将被配置:
  nginx nginx-full
将不会安装,升级或者删除任何软件包。
0 个软件包被升级,新安装 0 个,0 个将被删除, 同时 0 个将不升级。
需要获取 0 B 的存档。解包后将要使用 0 B。
正在设置 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。

dpkg: 处理软件包 nginx (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
正在设置 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。

dpkg: 处理软件包 nginx (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
nginx-full
nginx
                                 
lang@lang-pc:~$ sudo apt-get install nginx
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
nginx is already the newest version (1.10.1-1).
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 2 个软件包没有被完全安装或卸载。
解压缩后会消耗掉 0 B 的额外空间。
您希望继续执行吗? [Y/n] y
正在设置 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。

dpkg: 处理软件包 nginx (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply Favorite View the author
All Replies
avatar
jingle
deepin
2016-07-25 16:41
#1
这边安装正常,你是不是使用的外部的源。
先执行

cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info
sudo dpkg --configure -a
sudo apt-get install -f
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bak
sudo rm -rf /var/lib/dpkg/info
sudo mv /var/lib/dpkg/info.bak /var/lib/dpkg/info

解决后再试试
Reply View the author
avatar
153******45
deepin
2016-07-26 00:07
#2
同步的官方源,我先试试吧
Reply View the author
avatar
guoshuang
deepin
2016-08-01 19:07
#3
如果你已经安装,启动apache2,再安装nginx可能会出现上述配置问题。
执行 sudo service apache2 stop;
Reply View the author
avatar
cxkj518
deepin
2016-11-30 22:10
#4
从昨天升级完系统后 就这样了,怎么回事啊?真的用的越久 问题越多,烦~
Reply View the author
avatar
weiwuduzuen
deepin
2017-05-30 07:43
#5
是因为安装了 apache2 的原因 ,你可以先浏览器访问 127.0.0.1 看看是否能打开页面,如果打开了请先关闭 apache2 服务  sudo service apache2 stop  在执行 sudo apt-get install nginx
Reply View the author
avatar
xiaoyangerbani
deepin
2018-04-03 22:59
#6
https://bbs.deepin.org/post/41694
是因为安装了 apache2 的原因 ,你可以先浏览器访问 127.0.0.1 看看是否能打开页面,如果打开了请先关闭 ap ...

谢谢,就是这个原因呢
Reply View the author
avatar
shantong
deepin
2018-06-11 19:36
#7
https://bbs.deepin.org/post/41694
是因为安装了 apache2 的原因 ,你可以先浏览器访问 127.0.0.1 看看是否能打开页面,如果打开了请先关闭 ap ...

我也是这个原因,怎么都安装不上,之前我根本都不知道原来默认安装了apache2,被坑了
Reply View the author
avatar
huawei11
deepin
2018-06-16 15:29
#8
已解决  sudo service apache2 stop
               sudo apt install nginx
              sudo nginx
           打开浏览器input: localhost
Reply View the author