【问题标题】:sudo apt-get install zip - errorsudo apt-get install zip - 错误
【发布时间】:2016-07-21 15:45:27
【问题描述】:

我正在尝试安装库 zip。 如何解决?谢谢您的帮助。 如何解决?谢谢您的帮助。 但是收到此错误:

    root@vps300197:~# sudo apt-get install zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
zip is already the newest version (3.0-11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nginx-core (1.10.0-0ubuntu0.16.04.2) ...
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: error processing package nginx-core (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
 nginx depends on nginx-core (>= 1.10.0-0ubuntu0.16.04.2) | nginx-full (>= 1.10.                                                                                                                                                             0-0ubuntu0.16.04.2) | nginx-light (>= 1.10.0-0ubuntu0.16.04.2) | nginx-extras (>                                                                                                                                                             = 1.10.0-0ubuntu0.16.04.2); 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.
 nginx depends on nginx-core (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-full (<< 1.                                                                                                                                                             10.0-0ubuntu0.16.04.2.1~) | nginx-light (<< 1.10.0-0ubuntu0.16.04.2.1~) | nginx-                                                                                                                                                             extras (<< 1.10.0-0ubuntu0.16.04.2.1~); 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 packagNo apport report written because the error message                                                                                                                                                              indicates its a followup error from a previous failure.
                                                       e nginx (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nginx-core
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

【问题讨论】:

    标签: vps ubuntu-16.04


    【解决方案1】:
    1. 作为 root 用户,您不需要在要运行的任何命令之前使用sudo
    2. 通常情况下,您不应该使用 root 帐户在您的服务器上工作,这是非常危险的。
    3. 如果你想安装库 zip,你应该使用apt-get install libzip,而不是 apt-get install zip。 Zip 已经是您系统上的最新版本 (3.0-11)。
    4. 根据系统输出信息,你的nginx安装似乎有问题。
    5. 试试sudo apt-get -f installsudo apt-get remove nginx* &amp;&amp; sudo apt-get install nginx-full

    【讨论】:

      猜你喜欢
      • 2023-03-11
      • 2014-02-16
      • 2016-07-28
      • 2011-09-23
      • 2018-03-01
      • 2014-03-09
      • 1970-01-01
      • 1970-01-01
      • 2018-01-12
      相关资源
      最近更新 更多