I did a fresh install on Debian 12, and this happened.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Configuring NGINX…
Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
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.