Performing verification for noble.

I deployed a fresh noble vm, and set up policy-rc.d just like the
testcase describes.

$ sudo apt install -y nginx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  nginx-common
Suggested packages:
  fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  nginx nginx-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 552 kB of archives.
After this operation, 1596 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 nginx-common 
all 1.24.0-2ubuntu7.1 [31.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 nginx amd64 
1.24.0-2ubuntu7.1 [521 kB]
Fetched 552 kB in 3s (186 kB/s) 
Preconfiguring packages ...
Selecting previously unselected package nginx-common.
(Reading database ... 74736 files and directories currently installed.)
Preparing to unpack .../nginx-common_1.24.0-2ubuntu7.1_all.deb ...
Unpacking nginx-common (1.24.0-2ubuntu7.1) ...
Selecting previously unselected package nginx.
Preparing to unpack .../nginx_1.24.0-2ubuntu7.1_amd64.deb ...
Unpacking nginx (1.24.0-2ubuntu7.1) ...
Setting up nginx (1.24.0-2ubuntu7.1) ...
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:15:30 UTC; 5ms 
ago
       Docs: man:nginx(8)
    Process: 1372 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; 
master_process on; (code=exited, status=1/FAILURE)
        CPU: 1ms

Feb 10 02:15:30 noble-aaa systemd[1]: Starting nginx.service - A high 
performance web server and a reverse proxy server...
Feb 10 02:15:30 noble-aaa nginx[1372]: 2025/02/10 02:15:30 [emerg] 1372#1372: 
open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
Feb 10 02:15:30 noble-aaa nginx[1372]: nginx: configuration file 
/etc/nginx/nginx.conf test failed
Feb 10 02:15:30 noble-aaa systemd[1]: nginx.service: Control process exited, 
code=exited, status=1/FAILURE
Feb 10 02:15:30 noble-aaa systemd[1]: nginx.service: Failed with result 
'exit-code'.
Feb 10 02:15:30 noble-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.24.0-2ubuntu7.1.1~); however:
  Package nginx is not configured yet.

dpkg: error processing package nginx-common (--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.2-6) ...
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
 nginx
 nginx-common
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

I then enabled -proposed and installed nginx 1.24.0-2ubuntu7.2.

$ sudo apt install nginx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  nginx-common
Suggested packages:
  fcgiwrap nginx-doc ssl-cert
The following packages will be upgraded:
  nginx nginx-common
2 upgraded, 0 newly installed, 0 to remove and 115 not upgraded.
2 not fully installed or removed.
Need to get 564 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 nginx amd64 
1.24.0-2ubuntu7.2 [521 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 nginx-common 
all 1.24.0-2ubuntu7.2 [43.2 kB]
Fetched 564 kB in 3s (213 kB/s)        
Preconfiguring packages ...
(Reading database ... 74784 files and directories currently installed.)
Preparing to unpack .../nginx_1.24.0-2ubuntu7.2_amd64.deb ...
Unpacking nginx (1.24.0-2ubuntu7.2) over (1.24.0-2ubuntu7.1) ...
Preparing to unpack .../nginx-common_1.24.0-2ubuntu7.2_all.deb ...
Unpacking nginx-common (1.24.0-2ubuntu7.2) over (1.24.0-2ubuntu7.1) ...
Setting up nginx-common (1.24.0-2ubuntu7.2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → 
/usr/lib/systemd/system/nginx.service.
Setting up nginx (1.24.0-2ubuntu7.2) ...
 * Upgrading binary nginx                                                       
                                                                                
  [ OK ] 
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for ufw (0.36.2-6) ...

This went as expected.

I also did a basic upgrade without policy-rc.d in place:

$ sudo apt install nginx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  nginx-common
Suggested packages:
  fcgiwrap nginx-doc ssl-cert
The following packages will be upgraded:
  nginx nginx-common
2 upgraded, 0 newly installed, 0 to remove and 115 not upgraded.
Need to get 564 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 nginx amd64 
1.24.0-2ubuntu7.2 [521 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 nginx-common 
all 1.24.0-2ubuntu7.2 [43.2 kB]
Fetched 564 kB in 2s (257 kB/s)       
Preconfiguring packages ...
(Reading database ... 74784 files and directories currently installed.)
Preparing to unpack .../nginx_1.24.0-2ubuntu7.2_amd64.deb ...
Unpacking nginx (1.24.0-2ubuntu7.2) over (1.24.0-2ubuntu7.1) ...
Preparing to unpack .../nginx-common_1.24.0-2ubuntu7.2_all.deb ...
Unpacking nginx-common (1.24.0-2ubuntu7.2) over (1.24.0-2ubuntu7.1) ...
Setting up nginx-common (1.24.0-2ubuntu7.2) ...
Setting up nginx (1.24.0-2ubuntu7.2) ...
 * Upgrading binary nginx                                                       
                                                                                
  [ OK ] 
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for ufw (0.36.2-6) ...

Everything works as expected. Happy to mark verified for noble.

** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done-noble

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to