Public bug reported:

The NGINX install process is broken on the Ubuntu 20.04.04 LTS.
The terminal output is:

$ sudo apt install nginx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libgd3 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter 
libnginx-mod-mail libnginx-mod-stream libxpm4 nginx-common nginx-core
Suggested packages:
  libgd-tools fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  libgd3 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter 
libnginx-mod-mail libnginx-mod-stream libxpm4 nginx nginx-common nginx-core
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/757 kB of archives.
After this operation, 2,688 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Selecting previously unselected package libxpm4:amd64.
(Reading database ... 121180 files and directories currently installed.)
Preparing to unpack .../0-libxpm4_1%3a3.5.12-1_amd64.deb ...

Progress: [  0%] 
[..................................................................................................................................................................................................]
 
Unpacking libxpm4:amd64 (1:3.5.12-1) 
...............................................................................................................................................................................]
 

Selecting previously unselected package 
libgd3:amd64................................................................................................................................................................]
 
Preparing to unpack .../1-libgd3_2.2.5-5.2ubuntu2.1_amd64.deb ...

Unpacking libgd3:amd64 (2.2.5-5.2ubuntu2.1)
........................................................................................................................................................................]

Selecting previously unselected package 
nginx-common................................................................................................................................................................]
 
Preparing to unpack .../2-nginx-common_1.18.0-0ubuntu1.3_all.deb ...

Unpacking nginx-common (1.18.0-0ubuntu1.3)
.........................................................................................................................................................................]

Selecting previously unselected package 
libnginx-mod-http-image-filter..............................................................................................................................................]
 
Preparing to unpack 
.../3-libnginx-mod-http-image-filter_1.18.0-0ubuntu1.3_amd64.deb ...

Unpacking libnginx-mod-http-image-filter (1.18.0-0ubuntu1.3)
.......................................................................................................................................................]

Selecting previously unselected package 
libnginx-mod-http-xslt-filter...............................................................................................................................................]
 
Preparing to unpack 
.../4-libnginx-mod-http-xslt-filter_1.18.0-0ubuntu1.3_amd64.deb ...

Unpacking libnginx-mod-http-xslt-filter (1.18.0-0ubuntu1.3)
...##...................................................................................................................................................]

Selecting previously unselected package 
libnginx-mod-mail.############..............................................................................................................................................]
 
Preparing to unpack .../5-libnginx-mod-mail_1.18.0-0ubuntu1.3_amd64.deb ...

Unpacking libnginx-mod-mail (1.18.0-0ubuntu1.3)
...########################.........................................................................................................................................]

Selecting previously unselected package 
libnginx-mod-stream.####################....................................................................................................................................]
 
Preparing to unpack .../6-libnginx-mod-stream_1.18.0-0ubuntu1.3_amd64.deb ...

Unpacking libnginx-mod-stream (1.18.0-0ubuntu1.3)
...#################################..............................................................................................................................]

Selecting previously unselected package 
nginx-core.########################################.........................................................................................................................]
 
Preparing to unpack .../7-nginx-core_1.18.0-0ubuntu1.3_amd64.deb ...

Unpacking nginx-core (1.18.0-0ubuntu1.3)
...####################################################....................................................................................................................]

Selecting previously unselected package 
nginx.#######################################################...............................................................................................................]
 
Preparing to unpack .../8-nginx_1.18.0-0ubuntu1.3_all.deb ...

Unpacking nginx (1.18.0-0ubuntu1.3)
...####################################################################.........................................................................................................]

Setting up libxpm4:amd64 (1:3.5.12-1)
...#######################################################################....................................................................................................]

Progress: [ 51%] 
[###################################################################################################...............................................................................................]
 
Setting up nginx-common (1.18.0-0ubuntu1.3) 
...###########################################################################..........................................................................................]
 

Progress: [ 57%] 
[##############################################################################################################....................................................................................]
 
Setting up libnginx-mod-http-xslt-filter (1.18.0-0ubuntu1.3) 
...#####################################################################...............................................................................]
 

Progress: [ 62%] 
[########################################################################################################################..........................................................................]
 
Setting up libgd3:amd64 (2.2.5-5.2ubuntu2.1) 
...###############################################################################################.....................................................................]
 

Progress: [ 68%] 
[###################################################################################################################################...............................................................]
 
Setting up libnginx-mod-mail (1.18.0-0ubuntu1.3) 
...######################################################################################################..........................................................]
 

Progress: [ 73%] 
[#############################################################################################################################################.....................................................]
 
Setting up libnginx-mod-http-image-filter (1.18.0-0ubuntu1.3) 
...###################################################################################################................................................]
 

Progress: [ 78%] 
[########################################################################################################################################################..........................................]
 
Setting up libnginx-mod-stream (1.18.0-0ubuntu1.3) 
...#########################################################################################################################.....................................]
 

Progress: [ 84%] 
[##################################################################################################################################################################................................]
 
Setting up nginx-core (1.18.0-0ubuntu1.3) 
...############################################################################################################################################...........................]
 

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 Tue 2022-04-26 09:11:53 UTC; 15ms 
ago
       Docs: man:nginx(8)
    Process: 1641 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; 
master_process on; (code=exited, status=1/FAILURE)

Apr 26 09:11:53 kvmf systemd[1]: Starting A high performance web server and a 
reverse proxy server...
Apr 26 09:11:53 kvmf nginx[1641]: nginx: [emerg] socket() [::]:80 failed (97: 
Address family not supported by protocol)
Apr 26 09:11:53 kvmf nginx[1641]: nginx: configuration file 
/etc/nginx/nginx.conf test failed
Apr 26 09:11:53 kvmf systemd[1]: nginx.service: Control process exited, 
code=exited, status=1/FAILURE
Apr 26 09:11:53 kvmf systemd[1]: nginx.service: Failed with result 'exit-code'.
Apr 26 09:11:53 kvmf systemd[1]: Failed to start A high performance web server 
and a reverse proxy server.
dpkg: error processing package nginx-core (--configure):
 installed nginx-core package post-installation script subprocess returned 
error exit status 1
dpkg: dependency problems prevent configuration of nginx:
 nginx depends on nginx-core (<< 1.18.0-0ubuntu1.3.1~) | nginx-full (<< 
1.18.0-0ubuntu1.3.1~) | nginx-light (<< 1.18.0-0ubuntu1.3.1~) | nginx-extras 
(<< 1.18.0-0ubuntu1.3.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.
 nginx depends on nginx-core (>= 1.18.0-0ubuntu1.3) | nginx-full (>= 
1.18.0-0ubuntu1.3) | nginx-light (>= 1.18.0-0ubuntu1.3) | nginx-extras (>= 
1.18.0-0ubuntu1.3); 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 package nginx (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup 
error from a previous failure.
                                                                                
                          Processing triggers for ufw (0.36-6ubuntu1) ...
Processing triggers for systemd (245.4-4ubuntu3.16) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Errors were encountered while processing:
 nginx-core
 nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: nginx

** Attachment added: "syslog"
   https://bugs.launchpad.net/bugs/1970390/+attachment/5583893/+files/syslog

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1970390

Title:
  nginx install error on Ubuntu 20.04.04 LTS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1970390/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to