@daniel66666 My 20auto-upgrades file:
APT::Periodic::Update-Package-Lists "7";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";
My crontab:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 14 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 14 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 14 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
And finally, part of my unattended-upgrades log for the 27th March:
2018-03-27 06:00:48,906 INFO Initial blacklisted packages:
2018-03-27 06:00:48,911 INFO Initial whitelisted packages:
2018-03-27 06:00:48,913 INFO Starting unattended upgrades script
2018-03-27 06:00:48,915 INFO Allowed origins are: ['o=Ubuntu,a=xenial', 'o=Ubuntu,a=xenial-security', 'o=UbuntuESM,a=xenial', 'o=Ubuntu,a=xenial-updates', 'o=PMS armv7,a=']
2018-03-27 06:01:14,523 INFO No packages found that can be upgraded unattended and no pending auto-removals
2018-03-27 14:02:48,814 INFO Initial blacklisted packages:
2018-03-27 14:02:48,817 INFO Initial whitelisted packages:
2018-03-27 14:02:48,819 INFO Starting unattended upgrades script
2018-03-27 14:02:48,821 INFO Allowed origins are: ['o=Ubuntu,a=xenial', 'o=Ubuntu,a=xenial-security', 'o=UbuntuESM,a=xenial', 'o=Ubuntu,a=xenial-updates', 'o=PMS armv7,a=']
As you can see it’s running twice a day. At around 06:00 and 14:00. Although these times are different each day by up to an hour or so (definitely more than 30 minutes). As far as I can see my crontab and 20auto-upgrades file are fine, so why is it doing this ?
Thanks