Limiting needrestart in Ubuntu 24.04

We were in for a surprise when we upgraded our backup server from Ubuntu 20.04 LTS to 24.04 LTS: our backups started failing over the weekends. Here&rsquo;s the story…