A while ago, I set up unattended-upgrades on my Debian 13 machines. Running sudo apt updatedoesn’t cross my mind now that I assume unattended-upgrades takes care of that for me, but every once in a while, I’ll try installing something and get the “Unable to locate package” errors associated with outdated repositories. After being made aware of having outdated repositories and packages, I’ll go and run sudo apt update && sudo apt upgrade on my other machines, only to be told that all packages are up to date and unattended-upgrades did do its job there. I don’t keep a record of this happening, but I also don’t recall there being any pattern to which of my machines are affected and which aren’t at any given time.
Where could I start hunting down the cause of this inconsistent behavior? I did double-check that I enabled it via sudo dpkg-reconfigure unattended-upgrades
Some upgrades require human input like when core service config files upgrades are offered. (ex. would like to update /etc/samba/smb.conf with the maintainer’s version or keep your own?)
In my experience this can occasionally cause background apt processes to hang while they wait for your answer to that kind of question. There is a debconf trick you can try. debian_frontend=noninteractive. You can create your own cronjob, as root, that runs a script with this export command, apt update, then apt dist-upgrade -y.
I think unattended-upgrades only runs once a day by default, and the repository index could have changed since then. Different results on different machines can be because unattended-upgrades didn’t run at the same time, or from the same mirror (and mirrors take a while to propagate changes). Generally speaking you should always run an apt update directly before installing new packages.

