Public bug reported:

My daily workflow looks like this:
* Disconnect laptop from charger
* Open lid, resuming system from suspend
* [work work work]
* Close lid, suspends system
* Connect laptop to charger
- repeat.

Basically my laptop is almost never awake while charging.
Regardless whether the systemd timers end up firing while running or on resume, 
the pre-condition for apt-daily.service and apt-daily-upgrade.service 
`ConditionACPower=true` is always missed and the services are never started.

I don't really have a good solution in mind, but:
I think for starters we should reconsider whether refreshing caches 
(apt-daily.service) should really need AC power: it shouldn't be a very power 
hungry operation.
But that does not solve the problem for apt-daily-upgrade.service which is 
supposed to run unattended-upgrade daily.

Also, setting the `Unattended-Upgrade::OnlyOnACPower` apt config to
false wouldn't mitigate this issue, because without systemd first
starting the service we never even get to check that; and regardless the
situation should be better with the default configs.

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089151

Title:
  apt-daily and apt-daily-upgrade may never actually run

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2089151/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to