This bug was fixed in the package needrestart - 3.6-7ubuntu4
--------------- needrestart (3.6-7ubuntu4) noble; urgency=medium
* d/p/ubuntu-avoid-restart-cloud-final.patch: - avoid automatic restart of cloud-init systemd oneshot services when cloud-init invokes apt-get dist-upgrade due to user-data (LP: #2059337)
-- Chad Smith <email address hidden> Wed, 27 Mar 2024 16:51:58 -0600
This bug was fixed in the package needrestart - 3.6-7ubuntu4
---------------
needrestart (3.6-7ubuntu4) noble; urgency=medium
* d/p/ubuntu- avoid-restart- cloud-final. patch:
- avoid automatic restart of cloud-init systemd oneshot services when
cloud-init invokes apt-get dist-upgrade due to user-data (LP: #2059337)
-- Chad Smith <email address hidden> Wed, 27 Mar 2024 16:51:58 -0600