[Bug 1649959] Re: unattended upgrade of apt kills running apt-daily job

Julian Andres Klode julian.klode at gmail.com
Wed Dec 14 19:33:30 UTC 2016


** Description changed:

+ [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-upgrades)
+ 
+ [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-installer libapt-inst2.0 libapt-pkg5.0 libgme0
  
  but the unattended-upgrades-dpkg.log log terminates after apt is
  configured.
  
  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)
  NonfreeKernelModules: openafs
  Package: apt 1.3.2ubuntu0.1
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 4.8.0-30.32-generic 4.8.6
  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

-- 
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/1649959

Title:
  unattended upgrade of apt kills running apt-daily job

Status in apt package in Ubuntu:
  Fix Committed
Status in apt source package in Yakkety:
  Confirmed

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-upgrades)

  [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-installer libapt-inst2.0 libapt-pkg5.0 libgme0

  but the unattended-upgrades-dpkg.log log terminates after apt is
  configured.

  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)
  NonfreeKernelModules: openafs
  Package: apt 1.3.2ubuntu0.1
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 4.8.0-30.32-generic 4.8.6
  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

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



More information about the foundations-bugs mailing list