Public bug reported:
What you expected to happen:
Because systemd-resolved is a Official Ubuntu package, it should not be
restarted.
What happened instead:
In Ubuntu 24.04, unattended-upgrades works differently. When it installs
security updates, it restarts some services, including the official
systemd-resolved package.
Sample log:
2026-05-28 06:47:04,209 INFO Starting unattended upgrades script
2026-05-28 06:47:04,209 INFO Allowed origins are: o=Ubuntu,a=jammy,
o=Ubuntu,a=jammy-security, o=UbuntuESMApps,a=jammy-apps-security,
o=UbuntuESM,a=jammy-infra-security
2026-05-28 06:47:04,209 INFO Initial blacklist:
2026-05-28 06:47:04,210 INFO Initial whitelist (not strict):
2026-05-28 06:47:54,709 INFO Packages that will be upgraded: bind9-dnsutils
bind9-host bind9-libs bsdextrautils bsdutils cpp-11 curl eject fdisk g++-11
gcc-11 gcc-11-base gir1.2-packagekitglib-1.0 git git-man intel-microcode kmod
libarchive13 libasan6 libblkid1 libcap2 libcap2-bin libcurl3-gnutls libcurl4
libfdisk1 libgcc-11-dev libgcrypt20 libgnutls30 libkmod2 liblcms2-2 libmount1
libnghttp2-14 libnss-systemd libnss3 libntfs-3g89 libopenjp2-7
libpackagekit-glib2-18 libpam-cap libpam-systemd libpng16-16
libpolkit-agent-1-0 libpolkit-gobject-1-0 libpq5 libpython3.10
libpython3.10-dev libpython3.10-minimal libpython3.10-stdlib libsmartcols1
libssh-4 libssl3 libstdc++-11-dev libsystemd0 libtiff5 libtsan0 libudev1
libunbound8 libuuid1 linux-generic linux-headers-generic linux-image-generic
linux-libc-dev mount ntfs-3g openssh-client openssh-server openssh-sftp-server
openssl packagekit packagekit-tools pkexec policykit-1 polkitd pollinate
postfix python3-cryptography python3-jwt python3-mako python3-openssl
python3-pyasn1 python3.10 python3.10-dev python3.10-minimal rsync sed snapd
sudo systemd systemd-sysv udev util-linux uuid-runtime vim vim-common
vim-runtime vim-tiny xxd
2026-05-28 06:47:54,709 INFO Writing dpkg log to
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2026-05-28 07:05:57,813 INFO All upgrades installed
2026-05-28 07:06:19,522 INFO Packages that were successfully auto-removed:
linux-headers-5.15.0-171 linux-headers-5.15.0-171-generic
linux-image-5.15.0-171-generic linux-modules-5.15.0-171-generic
linux-modules-extra-5.15.0-171-generic
2026-05-28 07:06:19,522 INFO Packages that are kept back:
2026-05-29 03:23:24,009 WARNING Could not figure out development release:
Distribution data outdated. Please check for an update for distro-info-data.
See /usr/share/doc/distro-info-data/README.Debian for details.
Release of Ubuntu:
No LSB modules are available.
Description: Ubuntu 24.04.4 LTS
Release: 24.04
Version of the package:
systemd-resolved:
Installed: 255.4-1ubuntu8.17
Candidate: 255.4-1ubuntu8.17
Version table:
*** 255.4-1ubuntu8.17 500
500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
100 /var/lib/dpkg/status
255.4-1ubuntu8 500
500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
** Affects: needrestart (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163602
Title:
systemd-resolved restarts caused by the unattended-upgrades service
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2163602/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs