2016-07-21 36 views
0

Ich versuche, eine Bibliothek zip zu installieren. Wie es zu beheben? Danke für Ihre Hilfe. Wie es zu beheben? Danke für Ihre Hilfe. erhält jedoch diesen Fehler:sudo apt-get install zip - Fehler

[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) 

Antwort

0
  1. Als Root-Benutzer, Sie müssen nicht sudo vor jedem Befehl, den Sie ausführen möchten.
  2. Normalerweise sollten Sie das root-Konto nicht verwenden, um auf Ihrem Server zu arbeiten, es ist sehr gefährlich.
  3. Wenn Sie die Bibliothek zip installieren möchten, sollten Sie apt-get install libzip, nicht apt-get install zip verwenden. Zip ist bereits die neueste Version (3.0-11) auf Ihrem System.
  4. Nach den Systemausgabeinformationen scheint es einige Probleme mit der Installation von nginx zu geben.
  5. Versuchen Sie sudo apt-get -f install oder sudo apt-get remove nginx* && sudo apt-get install nginx-full