Change Auto Update Time

I have a FreedomBox running on a Beagle Bone Black. Because it’s under powered, some auto-updates take a long time to run and use much of the BBB’s resources. These updates usually occur around 6AM here, when I am using the system before I leave the house If it’s in the midst of an auto-update, I’m unable to use the system at that time – most inconvenient. What do I need to do to move the auto-update a few hours earlier or later so it doesn’t start when I need to use the device?

Is your timezone UTC +06:00 ?

FreedomBox usually starts doing upgrades at midnight. Maybe the timezone isn’t being taken into account.

My timezone is currently UTC-4. The logs indicate that the updates initiate around 06:00 local:

2019-12-01 00:33:29,714 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-01 00:33:29,770 INFO Initial blacklist: 
2019-12-01 00:33:29,774 INFO Initial whitelist: 
2019-12-01 00:33:29,777 INFO Starting unattended upgrades script
2019-12-01 00:33:29,779 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-01 06:04:13,668 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-01 06:04:13,731 INFO Initial blacklist: 
2019-12-01 06:04:13,734 INFO Initial whitelist: 
2019-12-01 06:04:13,737 INFO Starting unattended upgrades script
2019-12-01 06:04:13,739 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-01 06:12:23,223 INFO Packages that will be upgraded: cockpit cockpit-bridge cockpit-dashboard cockpit-networkmanager cockpit-packagekit cockpit-storaged cockpit-system cockpit-ws erlang-asn1 erlang-base erlang-crypto erlang-edoc erlang-ftp erlang-inets erlang-mnesia erlang-odbc erlang-os-mon erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssl erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl ghostscript gir1.2-nm-1.0 libgs9 libgs9-common libllvm9 libnm0 matrix-synapse netbase network-manager python3-netifaces
2019-12-01 06:12:23,227 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2019-12-01 06:43:13,236 INFO All upgrades installed
2019-12-02 06:44:14,000 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-02 06:44:14,063 INFO Initial blacklist: 
2019-12-02 06:44:14,066 INFO Initial whitelist: 
2019-12-02 06:44:14,069 INFO Starting unattended upgrades script
2019-12-02 06:44:14,071 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-02 06:44:40,776 INFO Packages that will be upgraded: 
2019-12-02 13:18:29,676 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-02 13:18:29,736 INFO Initial blacklist: 
2019-12-02 13:18:29,740 INFO Initial whitelist: 
2019-12-02 13:18:29,742 INFO Starting unattended upgrades script
2019-12-02 13:18:29,745 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-03 02:17:58,759 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-03 02:17:58,817 INFO Initial blacklist: 
2019-12-03 02:17:58,820 INFO Initial whitelist: 
2019-12-03 02:17:58,823 INFO Starting unattended upgrades script
2019-12-03 02:17:58,825 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-03 06:33:55,037 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-03 06:33:55,096 INFO Initial blacklist: 
2019-12-03 06:33:55,100 INFO Initial whitelist: 
2019-12-03 06:33:55,102 INFO Starting unattended upgrades script
2019-12-03 06:33:55,105 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-03 06:34:54,148 INFO Packages that will be upgraded: iproute2 libwrap0 libwww-perl
2019-12-03 06:34:54,151 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2019-12-03 06:37:47,797 INFO All upgrades installed
2019-12-04 06:15:26,800 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-04 06:15:26,863 INFO Initial blacklist: 
2019-12-04 06:15:26,867 INFO Initial whitelist: 
2019-12-04 06:15:26,869 INFO Starting unattended upgrades script
2019-12-04 06:15:26,872 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-04 06:15:52,976 INFO Packages that will be upgraded: 
2019-12-04 16:46:34,597 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-04 16:46:34,655 INFO Initial blacklist: 
2019-12-04 16:46:34,660 INFO Initial whitelist: 
2019-12-04 16:46:34,663 INFO Starting unattended upgrades script
2019-12-04 16:46:34,665 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-05 01:38:25,402 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-05 01:38:25,464 INFO Initial blacklist: 
2019-12-05 01:38:25,467 INFO Initial whitelist: 
2019-12-05 01:38:25,470 INFO Starting unattended upgrades script
2019-12-05 01:38:25,472 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-05 06:32:12,345 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-05 06:32:12,510 INFO Initial blacklist: 
2019-12-05 06:32:12,530 INFO Initial whitelist: 
2019-12-05 06:32:12,542 INFO Starting unattended upgrades script
2019-12-05 06:32:12,544 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-05 06:33:40,664 INFO Packages that will be upgraded: libcups2 pci.ids
2019-12-05 06:33:40,673 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2019-12-05 06:37:32,884 INFO All upgrades installed
2019-12-06 03:16:05,834 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-06 03:16:05,893 INFO Initial blacklist: 
2019-12-06 03:16:05,897 INFO Initial whitelist: 
2019-12-06 03:16:05,899 INFO Starting unattended upgrades script
2019-12-06 03:16:05,902 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-06 06:06:21,481 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-06 06:06:21,550 INFO Initial blacklist: 
2019-12-06 06:06:21,554 INFO Initial whitelist: 
2019-12-06 06:06:21,556 INFO Starting unattended upgrades script
2019-12-06 06:06:21,558 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-06 06:18:23,368 INFO Packages that will be upgraded: binutils binutils-arm-linux-gnueabihf binutils-common cpp-8 cpp-9 freedombox g++-9 gcc-8 gcc-8-base gcc-9 gcc-9-base gir1.2-gtk-3.0 gtk-update-icon-cache libapache2-mod-php7.3 libasan5 libatomic1 libbinutils libcc1-0 libepoxy0 libgcc-8-dev libgcc-9-dev libgcc1 libglib2.0-0 libglib2.0-bin libglib2.0-data libgomp1 libgtk-3-0 libgtk-3-bin libgtk-3-common libpcre2-16-0 libpcre2-8-0 libpcsclite1 libstdc++-9-dev libstdc++6 libubsan1 php7.3 php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-opcache php7.3-pgsql php7.3-pspell php7.3-readline php7.3-sqlite3 php7.3-xml python3-psutil
2019-12-06 06:18:23,563 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2019-12-06 07:02:01,604 INFO All upgrades installed
2019-12-06 07:03:05,296 INFO Packages that were successfully auto-removed: libisl21
2019-12-06 07:03:05,301 INFO Packages that are kept back: 
2019-12-07 02:01:30,094 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-07 02:01:30,273 INFO Initial blacklist: 
2019-12-07 02:01:30,278 INFO Initial whitelist: 
2019-12-07 02:01:30,281 INFO Starting unattended upgrades script
2019-12-07 02:01:30,286 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-07 06:50:12,881 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-07 06:50:12,944 INFO Initial blacklist: 
2019-12-07 06:50:12,948 INFO Initial whitelist: 
2019-12-07 06:50:12,950 INFO Starting unattended upgrades script
2019-12-07 06:50:12,952 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-07 06:52:42,260 INFO Packages that will be upgraded: curl libatk-bridge2.0-0 libcurl3-gnutls libcurl4 libnss-myhostname libpam-systemd libsystemd0 libudev1 obfs4proxy systemd systemd-sysv udev
2019-12-07 06:52:42,263 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2019-12-07 07:11:30,638 INFO All upgrades installed
2019-12-08 06:43:00,963 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-08 06:43:01,138 INFO Initial blacklist: 
2019-12-08 06:43:01,141 INFO Initial whitelist: 
2019-12-08 06:43:01,145 INFO Starting unattended upgrades script
2019-12-08 06:43:01,152 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-08 06:46:40,875 INFO Packages that will be upgraded: 
2019-12-08 07:51:57,528 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-08 07:51:57,591 INFO Initial blacklist: 
2019-12-08 07:51:57,594 INFO Initial whitelist: 
2019-12-08 07:51:57,597 INFO Starting unattended upgrades script
2019-12-08 07:51:57,599 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-09 05:55:41,865 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-09 05:55:41,928 INFO Initial blacklist: 
2019-12-09 05:55:41,932 INFO Initial whitelist: 
2019-12-09 05:55:41,934 INFO Starting unattended upgrades script
2019-12-09 05:55:41,936 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-09 06:42:56,175 INFO Checking if system is running on battery is skipped. Please install powermgmt-base package to check power status and skip installing updates when the system is running on battery.
2019-12-09 06:42:56,236 INFO Initial blacklist: 
2019-12-09 06:42:56,240 INFO Initial whitelist: 
2019-12-09 06:42:56,242 INFO Starting unattended upgrades script
2019-12-09 06:42:56,245 INFO Allowed origins are: origin=Debian,codename=bullseye,label=Debian, origin=Debian,codename=bullseye,label=Debian-Security, origin=Debian,codename=bullseye-security,label=Debian-Security, o=Debian Backports,a=bullseye-backports,l=Debian Backports
2019-12-09 06:44:45,108 INFO Packages that will be upgraded: libhttp-cookies-perl libjs-i18next libnftnl11 libpci3 libz3-4 mdadm netcat-openbsd pciutils python3-icu
2019-12-09 06:44:45,112 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2019-12-09 06:56:21,681 INFO All upgrades installed

I can confirm. My updates seem to be running at 06:00 too.

FreedomBox doesn’t configure unattended-upgrades to run at a specific time. This configuration could be from Debian or upstream.

Link to Salsa issue

Joseph, It looks like the default may be set to 6am.
https://wiki.debian.org/UnattendedUpgrades
When I have time tonight, I’ll have a look to see if that is the case on my system.

Indeed, /lib/systemd/system/apt-daily-upgrade.timer was set to upgrade at 6AM. I changed that to 1AM, and confirmed that the upgrade occurred at 1AM this morning. If anyone else wish this, see the link above, https://wiki.debian.org/UnattendedUpgrades and head down to the “Modifying download and upgrade schedules (on systemd)” section.

1 Like

Modified the GitLab issue accordingly. It’s not a bug but a customization.

1 Like