2017-02-15 6 views
0

私のubuntuサーバーにインストールしようとするアプリケーションがあり、このようなnginxの問題に取り組んでいます。他のパッケージをインストールしようとしたときのNginxの問題

これを修正したいと思います。私はちょうどnginxを使用し始めたので、私はこれに新しいです。 nginxのフル、nginxの光、nginx-:ここ

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.4) | nginx-full (>= 1.10.0-0ubuntu0.16.04.4) | nginx-light (>= 1.10.0-0ubuntu0.16.04.4) | nginx-extras (>= 1.10.0-0ubuntu0.16.04.4); 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.4.1~) | nginx-full (<< 1.10.0-0ubuntu0.16.04.4.1~) | nginx-light (<< 1.10.0-0ubuntu0.16.04.4.1~) | nginx-extras (<< 1.10.0-0ubuntu0.16.04.4.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 
Setting up clamav-base (0.99.2+dfsg-0ubuntu0.16.04.1) ... 
/etc/mail/aliases: 2 aliases, longest 4 bytes, 24 bytes total 
Setting up libllvm3.6v5:amd64 (1:3.6.2-3ubuntu2) ... 
Setting up libclamav7 (0.99.2+dfsg-0ubuntu0.16.04.1) ... 
Setting up clamav-freshclam (0.99.2+dfsg-0ubuntu0.16.04.1) ... 
Setting up clamav (0.99.2+dfsg-0ubuntu0.16.04.1) ... 
Setting up clamav-daemon (0.99.2+dfsg-0ubuntu0.16.04.1) ... 
Setting up clamdscan (0.99.2+dfsg-0ubuntu0.16.04.1) ... 
Processing triggers for libc-bin (2.23-0ubuntu5) ... 
Processing triggers for systemd (229-4ubuntu13) ... 
Processing triggers for ureadahead (0.100.0-19) ... 
Errors were encountered while processing: 
nginx-core 
nginx 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

は "systemctl状態nginx.service" の結果

● nginx.service - A high performance web server and a reverse proxy server 
    Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) 
    Active: failed (Result: exit-code) since Wed 2017-02-15 15:17:27 UTC; 1min 40s ago 

Feb 15 15:17:26 wordpress-2gb-nyc3-01 nginx[18334]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use) 
Feb 15 15:17:26 wordpress-2gb-nyc3-01 nginx[18334]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use) 
Feb 15 15:17:26 wordpress-2gb-nyc3-01 nginx[18334]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use) 
Feb 15 15:17:27 wordpress-2gb-nyc3-01 nginx[18334]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use) 
Feb 15 15:17:27 wordpress-2gb-nyc3-01 nginx[18334]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use) 
Feb 15 15:17:27 wordpress-2gb-nyc3-01 nginx[18334]: nginx: [emerg] still could not bind() 
Feb 15 15:17:27 wordpress-2gb-nyc3-01 systemd[1]: nginx.service: Control process exited, code=exited status=1 
Feb 15 15:17:27 wordpress-2gb-nyc3-01 systemd[1]: Failed to start A high performance web server and a reverse proxy server. 
Feb 15 15:17:27 wordpress-2gb-nyc3-01 systemd[1]: nginx.service: Unit entered failed state. 
Feb 15 15:17:27 wordpress-2gb-nyc3-01 systemd[1]: nginx.service: Failed with result 'exit-code'. 

答えて

0

が最初のログを使用すると、以下のパッケージをインストールする必要があることを言っているですエクストラ。

試し(root権限を持つ):

apt-get install nginx-full nginx-light nginx-extras 

2番目のログはポート80がすでに使用されていることを言っています。あなたはコマンドでこれを確認することができます。

netstat -putan | grep 80 

1

だから、または他のプロセスの実行があるが、このポートであるか、nginxのは、すでに実行されています。

+0

nginx-extras:競合:nginx-fullしかし1.10.0-0ubuntu0.16.04.4がインストールされる競合:nginx-light but 1.10.0-0ubuntu0.16.04.4 nginx-full:nginx-extrasがインストールされますが、1.10.0-0ubuntu0.16.04.4がインストールされます。競合:nginx-lightではなく1.10.0-0ubuntu0.16.04.4がインストールされます。nginx-light:競合:nginx-extrasではなく1.10.0-0ubuntu0.16.04.4がインストールされます。競合:nginx-fullだが1.10.0-0ubuntu0.16.04.4がインストールされる予定E:問題を修正できない、壊れたパッケージを保持している。 –

関連する問題