[Bug 2089151] Re: apt-daily and apt-daily-upgrade may never actually run

Ravi Kant Sharma 2089151 at bugs.launchpad.net
Mon Nov 25 12:22:36 UTC 2024


** Tags added: rls-pp-incoming

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

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

Status in apt package in Ubuntu:
  New

Bug description:
  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.

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




More information about the foundations-bugs mailing list