[Bug 1527710] Re: apt-get update triggers asynchronous task

Launchpad Bug Tracker 1527710 at bugs.launchpad.net
Wed Jan 27 23:01:46 UTC 2016


This bug was fixed in the package update-notifier - 3.165

---------------
update-notifier (3.165) xenial; urgency=medium

  * data/update-motd-updates-available
    - do not execute asynchronously as that causes problems with installers
      and generally produces unexpected behavior by default (LP: #1527710).
    - define NEEDS_CHECK to avoid unintentionally using value from inherrited
      environment.

 -- Scott Moser <smoser at ubuntu.com>  Wed, 27 Jan 2016 17:04:44 -0500

** Changed in: update-notifier (Ubuntu)
       Status: Confirmed => Fix Released

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

Title:
  apt-get update triggers asynchronous task

Status in update-notifier package in Ubuntu:
  Fix Released

Bug description:
  I have a work flow (curtin installation) that does something to the affect of:
   mount $DEVICE /target 
   mount --bind /dev /target/dev
   chroot /target apt-get update
   umount /target/dev
   umount /target/

  With xenial, I started having failures on the umount of /target/dev because of open file handles.
  An lsof showed me that /usr/lib/update-notifier/update-motd-updates-available had open file handles on /dev/null and apt-check had handles on /dev/urandom.

  I admit that part of this is my fault, because we do a selective apt-
  get update (only pulling deb sources, not deb-src).  As a result, when
  /usr/lib/update-notifier/update-motd-updates-available there was
  possibly more work to be done then would normally have to be done...
  not sure on that.

  For the record, what we do is in http://bazaar.launchpad.net/~curtin-
  dev/curtin/trunk/view/head:/curtin/util.py#L486 (apt_update method).

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: update-notifier-common 3.164
  ProcVersionSignature: User Name 4.3.0-2.11-generic 4.3.0
  Uname: Linux 4.3.0-2-generic x86_64
  ApportVersion: 2.19.3-0ubuntu2
  Architecture: amd64
  Date: Fri Dec 18 18:02:41 2015
  Ec2AMI: ami-0000072f
  Ec2AMIManifest: FIXME
  Ec2AvailabilityZone: nova
  Ec2InstanceType: m1.small
  Ec2Kernel: None
  Ec2Ramdisk: None
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: update-notifier
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1527710/+subscriptions



More information about the foundations-bugs mailing list