Public bug reported:

We have been required to disable ipv6 on all systems from security
audits. This was working up until fairly recently. I can't pinpoint when
it was last working but it was working as far as I know up until March
2024. This is a fresh install of Ubuntu 22.04 for the most part.

Ubuntu 22.04.4 LTS
Release: 22.04

nginx:
  Installed: 1.18.0-6ubuntu14.4
  Candidate: 1.18.0-6ubuntu14.4
  Version table:
 *** 1.18.0-6ubuntu14.4 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
Packages
        100 /var/lib/dpkg/status
     1.18.0-6ubuntu14.3 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-security/main amd64 
Packages
     1.18.0-6ubuntu14 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages


Once we removed the following from grub it started working:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"


When trying to install nginx from apt with ipv6 disabled in grub, the following 
occurs:

Get:3 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 nginx-common 
all 1.18.0-6ubuntu14.4 [40.0 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
libnginx-mod-http-geoip2 amd64 1.18.0-6ubuntu14.4 [11.9 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
libnginx-mod-http-image-filter amd64 1.18.0-6ubuntu14.4 [15.4 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
libnginx-mod-http-xslt-filter amd64 1.18.0-6ubuntu14.4 [13.7 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
libnginx-mod-mail amd64 1.18.0-6ubuntu14.4 [45.7 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
libnginx-mod-stream amd64 1.18.0-6ubuntu14.4 [72.9 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
libnginx-mod-stream-geoip2 amd64 1.18.0-6ubuntu14.4 [10.1 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 nginx-core 
amd64 1.18.0-6ubuntu14.4 [484 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 nginx amd64 
1.18.0-6ubuntu14.4 [3,872 B]
Fetched 843 kB in 0s (2,602 kB/s)
Preconfiguring packages ...
Selecting previously unselected package cifs-utils.
(Reading database ... 117355 files and directories currently installed.)
Selecting previously unselected package nginx-common.
Preparing to unpack .../02-nginx-common_1.18.0-6ubuntu14.4_all.deb ...
Unpacking nginx-common (1.18.0-6ubuntu14.4) ...
Selecting previously unselected package libnginx-mod-http-geoip2.
Preparing to unpack 
.../03-libnginx-mod-http-geoip2_1.18.0-6ubuntu14.4_amd64.deb ...
Unpacking libnginx-mod-http-geoip2 (1.18.0-6ubuntu14.4) ...
Selecting previously unselected package libnginx-mod-http-image-filter.
Preparing to unpack 
.../04-libnginx-mod-http-image-filter_1.18.0-6ubuntu14.4_amd64.deb ...
Unpacking libnginx-mod-http-image-filter (1.18.0-6ubuntu14.4) ...
Selecting previously unselected package libnginx-mod-http-xslt-filter.
Preparing to unpack 
.../05-libnginx-mod-http-xslt-filter_1.18.0-6ubuntu14.4_amd64.deb ...
Unpacking libnginx-mod-http-xslt-filter (1.18.0-6ubuntu14.4) ...
Selecting previously unselected package libnginx-mod-mail.
Preparing to unpack .../06-libnginx-mod-mail_1.18.0-6ubuntu14.4_amd64.deb ...
Unpacking libnginx-mod-mail (1.18.0-6ubuntu14.4) ...
Selecting previously unselected package libnginx-mod-stream.
Preparing to unpack .../07-libnginx-mod-stream_1.18.0-6ubuntu14.4_amd64.deb ...
Unpacking libnginx-mod-stream (1.18.0-6ubuntu14.4) ...
Selecting previously unselected package libnginx-mod-stream-geoip2.
Preparing to unpack 
.../08-libnginx-mod-stream-geoip2_1.18.0-6ubuntu14.4_amd64.deb ...
Unpacking libnginx-mod-stream-geoip2 (1.18.0-6ubuntu14.4) ...
Selecting previously unselected package nginx-core.
Preparing to unpack .../09-nginx-core_1.18.0-6ubuntu14.4_amd64.deb ...
Unpacking nginx-core (1.18.0-6ubuntu14.4) ...
Selecting previously unselected package nginx.
Preparing to unpack .../10-nginx_1.18.0-6ubuntu14.4_amd64.deb ...
Unpacking nginx (1.18.0-6ubuntu14.4) ...
Setting up nginx-common (1.18.0-6ubuntu14.4) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → 
/lib/systemd/system/nginx.service.
Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 142.
Setting up libnginx-mod-http-xslt-filter (1.18.0-6ubuntu14.4) ...
Setting up keyutils (1.6.1-2ubuntu3) ...
Setting up libnginx-mod-http-geoip2 (1.18.0-6ubuntu14.4) ...
Setting up libnginx-mod-mail (1.18.0-6ubuntu14.4) ...
Setting up libnginx-mod-http-image-filter (1.18.0-6ubuntu14.4) ...
Setting up libnginx-mod-stream (1.18.0-6ubuntu14.4) ...
Setting up libnginx-mod-stream-geoip2 (1.18.0-6ubuntu14.4) ...
Setting up nginx-core (1.18.0-6ubuntu14.4) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" 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 Fri 2024-06-14 13:14:32 CDT; 6ms 
ago
       Docs: man:nginx(8)
    Process: 1956 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; 
master_process on; (code=exited, status=1/FAILURE)
        CPU: 15ms

systemd[1]: Starting A high performance web server and a reverse proxy server...
nginx[1956]: nginx: [emerg] socket() [::]:80 failed (97: Unknown error)
nginx[1956]: nginx: configuration file /etc/nginx/nginx.conf test failed
systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
systemd[1]: nginx.service: Failed with result 'exit-code'.
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-6ubuntu14.4.1~) | nginx-full (<< 
1.18.0-6ubuntu14.4.1~) | nginx-light (<< 1.18.0-6ubuntu14.4.1~) | nginx-extras 
(<< 1.18.0-6ubuntu14.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.
 nginx depends on nginx-core (>= 1.18.0-6ubuntu14.4) | nginx-full (>= 
1.18.0-6ubuntu14.4) | nginx-light (>= 1.18.0-6ubuntu14.4) | nginx-extras (>= 
1.18.0-6ubuntu14.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.

dpkg: error processing package nginx (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.10.2-1) ...
No apport report written because the error message indicates its a followup 
error from a previous failure.
                                                                                
                          Processing triggers for ufw (0.36.1-4ubuntu0.1) ...
Errors were encountered while processing:
 nginx-core
 nginx

** Affects: nginx (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  nginx install no longer works unless ipv6 is enabled

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to