unattended upgrade of apt kills running apt-daily job
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Yakkety |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
Causes automatic upgrades by unattended-upgrades to be interrupted if apt is configured, leaving the system in a partially configured state.
[Test case]
Install apt - make sure the apt-daily.service is not restarted (this systemd service runs unattended-
[Regression Potential]
It's only overriding dh_systemd_start to not be called for the service, so I don't see any possibility for regressions.
[Original Bug report]
This morning, I discovered that my new xenial system had attempted an unattended upgrade overnight but the upgrade was incomplete. It attempted to upgrade
apt apt-transport-https apt-utils firefox firefox-locale-en flashplugin-
but the unattended-
I had to dpkg --configure --pending and apt-get -f install to get apt back into working order.
There were no errors, crashes or cores logged.
The journal indicates that apt-daily.service stopped and restarted around the time of the upgrade, so I am assuming that is the problem (that systemd killed the update session as the result of an update to the unit files)
---
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 16.10
InstallationDate: Installed on 2016-12-06 (7 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
NonfreeKernelMo
Package: apt 1.3.2ubuntu0.1
PackageArchitec
ProcVersionSign
Tags: yakkety
Uname: Linux 4.8.0-30-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo wireshark
_MarkForUpload: True
description: | updated |
apport information