2016-07-21 8 views
0

ライブラリジップをインストールしようとしています。 修正方法?ご協力ありがとうございました。 修正方法?ご協力ありがとうございました。あなたが実行したい任意のコマンドの前にsudoを必要としない、rootユーザーとしてsudo apt-get install zip-error

[email protected]:~# 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) 

答えて

0
  1. : ただし、このエラーを受け取ります。
  2. 通常、サーバーで作業するためにrootアカウントを使用しないでください。非常に危険です。
  3. ライブラリzipをインストールする場合は、 apt-get install zipではなく、apt-get install libzipを使用する必要があります。 Zipはすでにあなたのシステム上の最新バージョン(3.0-11)です。
  4. システムの出力情報によると、nginxのインストールにはいくつかの問題があるようです。
  5. 試行sudo apt-get -f installまたはsudo apt-get remove nginx* && sudo apt-get install nginx-full
関連する問題