Package lists are not updated before Unattended upgrades runs automatically.

Bug #1603620 reported by Jarno Suni
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
Undecided
Unassigned
unattended-upgrades (Ubuntu)
Invalid
Critical
Unassigned

Bug Description

Newest kernel available currently is 4.4.0-31-generic, but

$ linux-version list
4.2.0-38-generic
4.4.0-24-generic
4.4.0-28-generic

`apt-get dist-upgrade` does not upgrade kernel either, unless I run `apt-get update` first.

I wonder why kernel was not upgraded 2016-07-16 morning.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: unattended-upgrades 0.90
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Jul 16 11:40:07 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-11-21 (237 days ago)
InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
PackageArchitecture: all
SourcePackage: unattended-upgrades
UpgradeStatus: Upgraded to xenial on 2016-06-24 (21 days ago)
modified.conffile..etc.apt.apt.conf.d.10periodic:
 APT::Periodic::Update-Package-Lists "1";
 APT::Periodic::Download-Upgradeable-Packages "0";
 APT::Periodic::AutocleanInterval "0";
 APT::Periodic::Unattended-Upgrade "0";
mtime.conffile..etc.apt.apt.conf.d.10periodic: 2016-02-15T22:39:19.560937
mtime.conffile..etc.apt.apt.conf.d.50unattended-upgrades: 2016-06-24T18:13:45.181749

Revision history for this message
Jarno Suni (jarnos) wrote :
description: updated
Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Jarno Suni (jarnos) wrote :

It seems like package lists are not updated even if they should.

Jarno Suni (jarnos)
summary: - Unattended upgrades does not upgrade kernel even if it is available.
+ Unattended upgrades does not upgrade kernel even if new one is
+ available.
Revision history for this message
Jarno Suni (jarnos) wrote : Re: Unattended upgrades does not upgrade kernel even if new one is available.

Today unattended-upgrades did install the new kernel, but I think it should have done it before.

Revision history for this message
Mathew Hodson (mhodson) wrote :

Since it did upgrade, it seems like the package list just had not been synchronized yet.

Changed in unattended-upgrades (Ubuntu):
status: New → Invalid
Revision history for this message
Jarno Suni (jarnos) wrote :

So how to take care that the list will be synchronized before running unattended-upgrade?

Revision history for this message
Jarno Suni (jarnos) wrote : Re: Package lists are not updated before Unattended upgrades run automatically.

I am not sure which package is responsible for updating the package list so marking as new.

summary: - Unattended upgrades does not upgrade kernel even if new one is
- available.
+ Package lists are not updated before Unattended upgrades run
+ automatically.
Changed in unattended-upgrades (Ubuntu):
status: Invalid → New
summary: - Package lists are not updated before Unattended upgrades run
+ Package lists are not updated before Unattended upgrades runs
automatically.
Revision history for this message
Brian Murray (brian-murray) wrote :

Did you manually run unattended-upgrade? Its supposed to be run as part of cron which updates the package lists and then calls unattended-upgrade. See /usr/lib/apt/apt.systemd.daily for details.

Changed in unattended-upgrades (Ubuntu):
status: New → Incomplete
Revision history for this message
Jarno Suni (jarnos) wrote :

No, I let unattended-upgrade run automatically.

Revision history for this message
bedfojo (bedfojo) wrote :

Also having this problem.

Software Updater never automatically launches even if I ask for immediate display of available updates.

Unattended-upgrades never installs anything.

After forcing a reload of package info then rebooting the next day, I got errors from unattended-upgrades:
2016-11-29 21:06:13,620 ERROR An error occurred: 'Could not resolve 'ubuntu.mirrors.skynet.be''
2016-11-29 21:06:13,621 ERROR The URI 'http://security.ubuntu.com/ubuntu/pool/main/g/gst-plugins-good1.0/gstreamer1.0-plugins-good_1.8.3-1ubuntu1.2_amd64.deb' failed to download, aborting

Looks like both Software Updater and unattended-upgrades are launched before my network is up.

Revision history for this message
Jarno Suni (jarnos) wrote :

Brian Murray, what is incomplete, except timing the package list updates before unattended-upgrade?

Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unattended-upgrades (Ubuntu) because there has been no activity for 60 days.]

Changed in unattended-upgrades (Ubuntu):
status: Incomplete → Expired
Jarno Suni (jarnos)
Changed in unattended-upgrades (Ubuntu):
status: Expired → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unattended-upgrades (Ubuntu):
status: New → Confirmed
Changed in unattended-upgrades (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Aex Rauch (centaurie) wrote :

We found a workaround sudo systemctl edit apt-daily.timer with following content [Unit]
After=network-online.target
Wants=network-online.target

Today I recive a mail from unattanded-upgrades

Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Julian Andres Klode (juliank) wrote :

Fix released, AFAP. There's still some issues on resume only machines that need to be sorted out, but the plan is to deal with that later (it needs a custom online waiting tool to be written).

Changed in apt (Ubuntu):
status: New → Fix Released
Changed in unattended-upgrades (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Jarno Suni (jarnos) wrote :

I think the fix is not released in Ubuntu, yet. If the target apt release is 1.4.6, which I found in the linked GitHub page, it is not even in Artful, yet.

Revision history for this message
Julian Andres Klode (juliank) wrote :

No, it's 1.4.1, as the github page links.

Revision history for this message
Jarno Suni (jarnos) wrote :

Still not in the latest release of Ubuntu, which is zesty currently.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Released versions do not matter regarding the overall bug state. That bug has been fixed in an update to xenial, yakkety, and zesty; which is in the unapproved queue, but has a slightly annoying regression (and that regression was fixed in 1.4.6). I should update the SRUs now, but associating a new bug with that retroactively (changing a changelog entry from months ago) looks a bit weird.

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

Other bug subscribers

Remote bug watches

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