How to diagnose unattended upgrade errors in Debian / Ubuntu?

Check the logs:

/var/log/unattended-upgrades/unattended-upgrades-dpkg.log
/var/log/unattended-upgrades/unattended-upgrades.log
/var/log/unattended-upgrades/unattended-upgrades-shutdown.log