When using apt
to install or update packaged, Ubuntu 22.04 now pops up a Daemons using outdated libraries
box.
To disable this pop up box, edit
vim /etc/needrestart/needrestart.conf
change
#$nrconf{restart} = 'i';
to
$nrconf{restart} = 'a'; # restart the services automatically
Simple solution without vim
or