apt-get install nginx Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream nginx-common nginx-full Suggested packages: fcgiwrap nginx-doc The following NEW packages will be installed: libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream nginx nginx-common nginx-full 0 upgraded, 13 newly installed, 0 to remove and 5 not upgraded. Need to get 1,588 kB of archives. After this operation, 2,865 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ftp.us.debian.org/debian stretch/main amd64 nginx-common all 1.10.3-1+deb9u2 [105 kB] Get:2 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-http-auth-pam amd64 1.10.3-1+deb9u2 [86.1 kB] Get:3 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-http-dav-ext amd64 1.10.3-1+deb9u2 [87.8 kB] Get:4 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-http-echo amd64 1.10.3-1+deb9u2 [97.1 kB] Get:5 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-http-geoip amd64 1.10.3-1+deb9u2 [87.2 kB] Get:6 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-http-image-filter amd64 1.10.3-1+deb9u2 [90.2 kB] Get:7 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-http-subs-filter amd64 1.10.3-1+deb9u2 [89.1 kB] Get:8 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-http-upstream-fair amd64 1.10.3-1+deb9u2 [89.3 kB] Get:9 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-http-xslt-filter amd64 1.10.3-1+deb9u2 [89.1 kB] Get:10 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-mail amd64 1.10.3-1+deb9u2 [117 kB] Get:11 http://ftp.us.debian.org/debian stretch/main amd64 libnginx-mod-stream amd64 1.10.3-1+deb9u2 [110 kB] Get:12 http://ftp.us.debian.org/debian stretch/main amd64 nginx-full amd64 1.10.3-1+deb9u2 [459 kB] Get:13 http://ftp.us.debian.org/debian stretch/main amd64 nginx all 1.10.3-1+deb9u2 [81.8 kB] Fetched 1,588 kB in 1s (842 kB/s) Preconfiguring packages ... Selecting previously unselected package nginx-common. (Reading database ... 151387 files and directories currently installed.) Preparing to unpack .../00-nginx-common_1.10.3-1+deb9u2_all.deb ... Unpacking nginx-common (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-http-auth-pam. Preparing to unpack .../01-libnginx-mod-http-auth-pam_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-http-auth-pam (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-http-dav-ext. Preparing to unpack .../02-libnginx-mod-http-dav-ext_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-http-dav-ext (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-http-echo. Preparing to unpack .../03-libnginx-mod-http-echo_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-http-echo (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-http-geoip. Preparing to unpack .../04-libnginx-mod-http-geoip_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-http-geoip (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-http-image-filter. Preparing to unpack .../05-libnginx-mod-http-image-filter_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-http-image-filter (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-http-subs-filter. Preparing to unpack .../06-libnginx-mod-http-subs-filter_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-http-subs-filter (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-http-upstream-fair. Preparing to unpack .../07-libnginx-mod-http-upstream-fair_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-http-upstream-fair (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-http-xslt-filter. Preparing to unpack .../08-libnginx-mod-http-xslt-filter_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-http-xslt-filter (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-mail. Preparing to unpack .../09-libnginx-mod-mail_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-mail (1.10.3-1+deb9u2) ... Selecting previously unselected package libnginx-mod-stream. Preparing to unpack .../10-libnginx-mod-stream_1.10.3-1+deb9u2_amd64.deb ... Unpacking libnginx-mod-stream (1.10.3-1+deb9u2) ... Selecting previously unselected package nginx-full. Preparing to unpack .../11-nginx-full_1.10.3-1+deb9u2_amd64.deb ... Unpacking nginx-full (1.10.3-1+deb9u2) ... Selecting previously unselected package nginx. Preparing to unpack .../12-nginx_1.10.3-1+deb9u2_all.deb ... Unpacking nginx (1.10.3-1+deb9u2) ... Processing triggers for ufw (0.35-4) ... Rules updated for profile 'OpenSSH' Setting up nginx-common (1.10.3-1+deb9u2) ... Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service. Setting up libnginx-mod-http-image-filter (1.10.3-1+deb9u2) ... Setting up libnginx-mod-http-subs-filter (1.10.3-1+deb9u2) ... Processing triggers for systemd (232-25+deb9u11) ... Setting up libnginx-mod-http-auth-pam (1.10.3-1+deb9u2) ... Setting up libnginx-mod-http-dav-ext (1.10.3-1+deb9u2) ... Setting up libnginx-mod-mail (1.10.3-1+deb9u2) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up libnginx-mod-http-xslt-filter (1.10.3-1+deb9u2) ... Setting up libnginx-mod-http-upstream-fair (1.10.3-1+deb9u2) ... Setting up libnginx-mod-http-geoip (1.10.3-1+deb9u2) ... Setting up libnginx-mod-stream (1.10.3-1+deb9u2) ... Setting up libnginx-mod-http-echo (1.10.3-1+deb9u2) ... Setting up nginx-full (1.10.3-1+deb9u2) ... 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. ● 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 Sat 2019-07-06 08:47:52 EDT; 31ms ago Docs: man:nginx(8) Process: 15907 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) Process: 15904 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Jul 06 08:47:51 debian nginx[15907]: nginx: [emerg] listen() to [::]:80, ba…use) Jul 06 08:47:51 debian nginx[15907]: nginx: [emerg] listen() to 0.0.0.0:80,…use) Jul 06 08:47:51 debian nginx[15907]: nginx: [emerg] listen() to [::]:80, ba…use) Jul 06 08:47:52 debian nginx[15907]: nginx: [emerg] listen() to 0.0.0.0:80,…use) Jul 06 08:47:52 debian nginx[15907]: nginx: [emerg] listen() to [::]:80, ba…use) Jul 06 08:47:52 debian nginx[15907]: nginx: [emerg] still could not bind() Jul 06 08:47:52 debian systemd[1]: nginx.service: Control process exited, c…us=1 Jul 06 08:47:52 debian systemd[1]: Failed to start A high performance web s…ver. Jul 06 08:47:52 debian systemd[1]: nginx.service: Unit entered failed state. Jul 06 08:47:52 debian systemd[1]: nginx.service: Failed with result 'exit-…de'. Hint: Some lines were ellipsized, use -l to show in full. dpkg: error processing package nginx-full (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of nginx: nginx depends on nginx-full (<< 1.10.3-1+deb9u2.1~) | nginx-light (<< 1.10.3-1+deb9u2.1~) | nginx-extras (<< 1.10.3-1+deb9u2.1~); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. nginx depends on nginx-full (>= 1.10.3-1+deb9u2) | nginx-light (>= 1.10.3-1+deb9u2) | nginx-extras (>= 1.10.3-1+deb9u2); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. dpkg: error processing package nginx (--configure): dependency problems - leaving unconfigured Processing triggers for ufw (0.35-4) ... Rules updated for profile 'OpenSSH' Errors were encountered while processing: nginx-full nginx E: Sub-process /usr/bin/dpkg returned an error code (1) root@debian:~# systemctl status nginx ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: en Active: failed (Result: exit-code) since Sat 2019-07-06 08:47:52 EDT; 43s ago Docs: man:nginx(8) Process: 15907 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (cod Process: 15904 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process Jul 06 08:47:51 debian nginx[15907]: nginx: [emerg] listen() to [::]:80, backlog Jul 06 08:47:51 debian nginx[15907]: nginx: [emerg] listen() to 0.0.0.0:80, back Jul 06 08:47:51 debian nginx[15907]: nginx: [emerg] listen() to [::]:80, backlog Jul 06 08:47:52 debian nginx[15907]: nginx: [emerg] listen() to 0.0.0.0:80, back Jul 06 08:47:52 debian nginx[15907]: nginx: [emerg] listen() to [::]:80, backlog Jul 06 08:47:52 debian nginx[15907]: nginx: [emerg] still could not bind() Jul 06 08:47:52 debian systemd[1]: nginx.service: Control process exited, code=e Jul 06 08:47:52 debian systemd[1]: Failed to start A high performance web server Jul 06 08:47:52 debian systemd[1]: nginx.service: Unit entered failed state. Jul 06 08:47:52 debian systemd[1]: nginx.service: Failed with result 'exit-code' ~# ufw status -su: /usr/sbin/ufw: No such file or directory root@debian:~# apt-get install nginx Reading package lists... Done Building dependency tree Reading state information... Done nginx is already the newest version (1.10.3-1+deb9u2). 0 upgraded, 0 newly installed, 0 to remove and 5 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-full (1.10.3-1+deb9u2) ... 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. ● 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 Sat 2019-07-06 08:58:12 EDT; 30ms ago Docs: man:nginx(8) Process: 16693 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) Process: 16690 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Jul 06 08:58:11 debian nginx[16693]: nginx: [emerg] listen() to [::]:80, ba…use) Jul 06 08:58:11 debian nginx[16693]: nginx: [emerg] listen() to 0.0.0.0:80,…use) Jul 06 08:58:11 debian nginx[16693]: nginx: [emerg] listen() to [::]:80, ba…use) Jul 06 08:58:12 debian nginx[16693]: nginx: [emerg] listen() to 0.0.0.0:80,…use) Jul 06 08:58:12 debian nginx[16693]: nginx: [emerg] listen() to [::]:80, ba…use) Jul 06 08:58:12 debian nginx[16693]: nginx: [emerg] still could not bind() Jul 06 08:58:12 debian systemd[1]: nginx.service: Control process exited, c…us=1 Jul 06 08:58:12 debian systemd[1]: Failed to start A high performance web s…ver. Jul 06 08:58:12 debian systemd[1]: nginx.service: Unit entered failed state. Jul 06 08:58:12 debian systemd[1]: nginx.service: Failed with result 'exit-…de'. Hint: Some lines were ellipsized, use -l to show in full. dpkg: error processing package nginx-full (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of nginx: nginx depends on nginx-full (<< 1.10.3-1+deb9u2.1~) | nginx-light (<< 1.10.3-1+deb9u2.1~) | nginx-extras (<< 1.10.3-1+deb9u2.1~); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. nginx depends on nginx-full (>= 1.10.3-1+deb9u2) | nginx-light (>= 1.10.3-1+deb9u2) | nginx-extras (>= 1.10.3-1+deb9u2); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. dpkg: error processing package nginx (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: nginx-full nginx E: Sub-process /usr/bin/dpkg returned an error code (1)