There is a problem here. When I install just nginx-common from noble-
proposed, it won't pull in nginx as before, which is what this change
intended. But nginx-common ships a service, and that service fails:


$ sudo systemctl status nginx
× nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: 
enabled)
     Active: failed (Result: exit-code) since Thu 2025-02-20 18:16:29 UTC; 10s 
ago
       Docs: man:nginx(8)
    Process: 2728 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; 
master_process on; (code=exited, status=203/EXEC)

Feb 20 18:16:29 n-nginx systemd[1]: Starting nginx.service - A high performance 
web server and a reverse proxy server...
Feb 20 18:16:29 n-nginx systemd[1]: nginx.service: Control process exited, 
code=exited, status=203/EXEC
Feb 20 18:16:29 n-nginx systemd[1]: nginx.service: Failed with result 
'exit-code'.
Feb 20 18:16:29 n-nginx systemd[1]: Failed to start nginx.service - A high 
performance web server and a reverse proxy server.

There is no error in the logs:

$ l /var/log/nginx/
total 0
drwxr-xr-x 1 root     adm     38 Feb 20 18:16 .
drwxrwxr-x 1 root     syslog 286 Feb 20 18:16 ..
-rw-r----- 1 www-data adm      0 Feb 20 18:16 access.log
-rw-r----- 1 www-data adm      0 Feb 20 18:16 error.log


The nginx.service file tries to run /usr/sbin/nginx, but that binary does not 
exist in nginx-common:

$ dpkg -L nginx-common|grep bin
$ 

It is shipped by bin:nginx, as expected:
$ sudo apt install nginx -y
(...)
$ dpkg -L nginx|grep bin
/usr/sbin
/usr/sbin/nginx

I didn't see this discussed in the SRU template, so I'm raising it now.
Was this considered? Thought of? Is it a surprise?

While we are getting the policy-rc.d usage fixed I suppose, we are
breaking the simple case of installing a single package. I understand
this might require deeper package surgery, and would perhaps not be a
good choice for an SRU.

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

Title:
  Resolve circular dependency loop between nginx and nginx-common

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


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

Reply via email to