apt dist-upgrade在 Ubuntu Server 22.04.3 中以 root shell运行后,有时Which services should be restarted?会出现此问题。例子:
Restarting services...
Daemons using outdated libraries
--------------------------------
1. dbus.service 2. getty@tty1.service 3. multipathd.service 4. networkd-dispatcher.service 5. packagekit.service 6. polkit.service 7. ssh.service 8. systemd-logind.service 9. systemd-manager 10. thermald.service 11. unattended-upgrades.service 12. user@1000.service 13. none of the above
(Enter the items or ranges you want to select, separated by spaces.)
Which services should be restarted? 1-13
Which services should be restarted? 1 - 13
Which services should …Run Code Online (Sandbox Code Playgroud)