Performing verification for Oracular I deployed a fresh oracular VM, and set up policy-rc.d just like the testcase:
$ sudo apt install -y nginx Installing: nginx Installing dependencies: nginx-common Suggested packages: fcgiwrap nginx-doc ssl-cert Summary: Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 35 Download size: 631 kB Space needed: 1811 kB / 7268 MB available Get:1 http://archive.ubuntu.com/ubuntu oracular/main amd64 nginx-common all 1.26.0-2ubuntu3 [30.7 kB] Get:2 http://archive.ubuntu.com/ubuntu oracular/main amd64 nginx amd64 1.26.0-2ubuntu3 [600 kB] Fetched 631 kB in 2s (321 kB/s) Preconfiguring packages ... Selecting previously unselected package nginx-common. (Reading database ... 76072 files and directories currently installed.) Preparing to unpack .../nginx-common_1.26.0-2ubuntu3_all.deb ... Unpacking nginx-common (1.26.0-2ubuntu3) ... Selecting previously unselected package nginx. Preparing to unpack .../nginx_1.26.0-2ubuntu3_amd64.deb ... Unpacking nginx (1.26.0-2ubuntu3) ... Setting up nginx (1.26.0-2ubuntu3) ... 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 (/usr/lib/systemd/system/nginx.service; disabled; preset: enabled) Active: failed (Result: exit-code) since Mon 2025-02-10 02:07:58 UTC; 7ms ago Invocation: a2e2d2a579f54fe78b9cf60d88bac56a Docs: man:nginx(8) Process: 1632 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) Mem peak: 1.5M CPU: 3ms Feb 10 02:07:58 oracular-aaa systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server... Feb 10 02:07:58 oracular-aaa nginx[1632]: 2025/02/10 02:07:58 [emerg] 1632#1632: open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) Feb 10 02:07:58 oracular-aaa nginx[1632]: nginx: configuration file /etc/nginx/nginx.conf test failed Feb 10 02:07:58 oracular-aaa systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Feb 10 02:07:58 oracular-aaa systemd[1]: nginx.service: Failed with result 'exit-code'. Feb 10 02:07:58 oracular-aaa systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server. dpkg: error processing package nginx (--configure): installed nginx package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of nginx-common: nginx-common depends on nginx (<< 1.26.0-2ubuntu3.1~); however: Package nginx is not configured yet. dpkg: error processing package nginx-common (--configure): dependency problems - leaving unconfigured Processing triggers for ufw (0.36.2-6) ... No apport report written because the error message indicates its a followup error from a previous failure. Processing triggers for man-db (2.12.1-3) ... Errors were encountered while processing: nginx nginx-common needrestart is being skipped since dpkg has failed Error: Sub-process /usr/bin/dpkg returned an error code (1) I then enabled -proposed and installed nginx 1.26.0-2ubuntu3.1 $ sudo apt install -y nginx Upgrading: nginx nginx-common Summary: Upgrading: 2, Installing: 0, Removing: 0, Not Upgrading: 39 2 not fully installed or removed. Download size: 642 kB Space needed: 0 B / 7264 MB available Get:1 http://archive.ubuntu.com/ubuntu oracular-proposed/main amd64 nginx amd64 1.26.0-2ubuntu3.1 [599 kB] Get:2 http://archive.ubuntu.com/ubuntu oracular-proposed/main amd64 nginx-common all 1.26.0-2ubuntu3.1 [43.1 kB] Fetched 642 kB in 3s (240 kB/s) Preconfiguring packages ... (Reading database ... 76120 files and directories currently installed.) Preparing to unpack .../nginx_1.26.0-2ubuntu3.1_amd64.deb ... Unpacking nginx (1.26.0-2ubuntu3.1) over (1.26.0-2ubuntu3) ... Preparing to unpack .../nginx-common_1.26.0-2ubuntu3.1_all.deb ... Unpacking nginx-common (1.26.0-2ubuntu3.1) over (1.26.0-2ubuntu3) ... Setting up nginx-common (1.26.0-2ubuntu3.1) ... Created symlink '/etc/systemd/system/multi-user.target.wants/nginx.service' → '/usr/lib/systemd/system/nginx.service'. Setting up nginx (1.26.0-2ubuntu3.1) ... * Upgrading binary nginx [ OK ] Processing triggers for man-db (2.12.1-3) ... Processing triggers for ufw (0.36.2-6) ... Everything installs as we would expect it to. I also did a basic upgrade test with no policy-rd.d in place: $ sudo apt install nginx Upgrading: nginx nginx-common Summary: Upgrading: 2, Installing: 0, Removing: 0, Not Upgrading: 39 Download size: 642 kB Space needed: 0 B / 7268 MB available Continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu oracular-proposed/main amd64 nginx amd64 1.26.0-2ubuntu3.1 [599 kB] Get:2 http://archive.ubuntu.com/ubuntu oracular-proposed/main amd64 nginx-common all 1.26.0-2ubuntu3.1 [43.1 kB] Fetched 642 kB in 2s (296 kB/s) Preconfiguring packages ... (Reading database ... 76120 files and directories currently installed.) Preparing to unpack .../nginx_1.26.0-2ubuntu3.1_amd64.deb ... Unpacking nginx (1.26.0-2ubuntu3.1) over (1.26.0-2ubuntu3) ... Preparing to unpack .../nginx-common_1.26.0-2ubuntu3.1_all.deb ... Unpacking nginx-common (1.26.0-2ubuntu3.1) over (1.26.0-2ubuntu3) ... Setting up nginx-common (1.26.0-2ubuntu3.1) ... Setting up nginx (1.26.0-2ubuntu3.1) ... * Upgrading binary nginx [ OK ] Processing triggers for man-db (2.12.1-3) ... Processing triggers for ufw (0.36.2-6) ... It went much the same. The package in -proposed fixes the issue, happy to mark verified for oracular. ** Tags removed: verification-needed-oracular ** Tags added: verification-done-oracular -- 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