apt-get update triggers asynchronous task
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
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/
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/
For the record, what we do is in http://
Related bugs:
* bug 524674: apt-check hangs, preventing login via SSH
* bug 1527710: apt-get update triggers asynchronous task
* bug 1533243: preseeded installation fails on critical question: partman/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: update-
ProcVersionSign
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
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: None
Ec2Ramdisk: None
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: update-notifier
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in update-notifier (Ubuntu): | |
importance: | Undecided → Medium |
Hi Scott,
I don't see what could be triggering this behavior. The update- notifier- common package includes hooks for the following: postinst. d
- apt
- cron
- /etc/kernel/
- update-motd
The only one of these that would be triggered by 'apt-get update' is the apt hook, which only does:
$ cat /etc/apt/ apt.conf. d/99update- notifier update- notifier ]; then touch /var/lib/ update- notifier/ dpkg-run- stamp; fi; if [ -e /var/lib/ update- notifier/ updates- available ]; then echo > /var/lib/ update- notifier/ updates- available; fi "; };
DPkg::Post-Invoke {"if [ -d /var/lib/
And a) apt-get update doesn't invoke dpkg, and b) this should not be asynchronous in any way.
So, what is causing /usr/lib/ update- notifier/ update- motd-updates- available to be invoked in this environment?