apt-daily.service could rarely update the system

Bug #1662677 reported by Jérôme
256
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
New
Undecided
Unassigned

Bug Description

On startup of computers with hard disks, apt-daily.service could complete before the Internet can be reached.

A HDD computer would rarely get updates if it is just started daily after 6 am and it is running only 1 hour. Basically, the random time between 6 am and 18 pm will rarely be between 6 and 7 am. Finally this computer may catch a random update from time to time.

Revision history for this message
Jérôme (jerome-bouat) wrote :
information type: Private Security → Public Security
Revision history for this message
Seth Arnold (seth-arnold) wrote :

Hi Jérôme, thanks for the bug report. The apt-daily.timer starts the apt-daily.service, which is still running at the end of your plot. That doesn't necessarily mean it's doing the right thing but at least it has an opportunity to handle many of the daily tasks.

We may need to tune the rules that fire the timer to make it more likely for updates to be installed in a timely fashion.

At least with 16.04 LTS and newer, daily updates are enabled by default. So this already is a welcome change from previous releases when users had to opt in to daily updates manually.

Thanks

Revision history for this message
Jérôme (jerome-bouat) wrote :

Is it possible to perform the change I put in /etc/systemd/system ?

Revision history for this message
Jérôme (jerome-bouat) wrote :

As a workaround, I put this entry in my file /etc/systemd/system/apt-daily.timer :
---
OnCalendar=*-*-* 0,2,4,6,8,10,12,14,16,18,20,22:00
---

To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.