Updates/upgrades won't run without AC power, despite explicit config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Despite configuring unattended-upgrades to run on battery power, the script will only run automatically when on AC power due to a condition of the systemd apt-daily.service
Here is my current Unattended-Upgrades config (apt-config dump Unattended-
```
Unattended-Upgrade "";
Unattended-
Unattended-
Unattended-
Unattended-
Unattended-
Unattended-
Unattended-
```
From testing I found that although unattended-upgrades run on battery power when manually called via the terminal, they do not get run automatically due to a condition check failure in the apt-daily.service
```
● apt-daily.service - Daily apt download activities
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
TriggeredBy: ● apt-daily.timer
Condition: start condition failed at Thu 2022-02-03 08:08:49 GMT; 8min ago
└─ ConditionACPowe
Docs: man:apt(8)
Feb 02 10:48:58 ubu20-n-0649f43030 systemd[1]: Condition check resulted in Daily apt download activities being skipped.
Feb 03 08:08:49 ubu20-n-0649f43030 systemd[1]: Condition check resulted in Daily apt download activities being skipped.
```
So despite explicitly configuring unattended-upgrades to run on battery power, apt-daily.service seems to have a conflicting condition as well which isn't changed. Perhaps this is a recent change, because as far as I could tell, unattended-upgrades were running correctly with this config until the last few days.
Below is some additional information which might be useful:
unattended-upgrades - version 2.3ubuntu0.1
apt - version 2.0.6
Ubuntu - version 20.04.3 LTS, Kernel 5.13.0-1012-oem
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: unattended-upgrades 2.3ubuntu0.1
ProcVersionSign
Uname: Linux 5.13.0-1012-oem x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Thu Feb 3 08:42:53 2022
InstallationDate: Installed on 2021-09-02 (153 days ago)
InstallationMedia: Ubuntu-Server 20.04.2 LTS "Focal Fossa" - Release amd64 (20210201.2)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: unattended-upgrades
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
// This file is managed by Puppet. DO NOT EDIT.
APT::Update:
mtime.conffile.
mtime.conffile.