Public bug reported:

In Ubuntu 16.10, but not in 16.04, apt-key leaves /dev/null and
/dev/urandom open after exiting. Here's a procedure to replicate the
problem:

1. Install Ubuntu 16.10. (I used MAAS for this task.)
2. Install the "lsof" package (which is not installed by default).
3. Type "lsof | grep dev" to see open files.
4. Type "sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 
1FEADE10;"
5. Type "lsof | grep dev" again.
6. Compare the output of the two "lsof" commands.

I'm attaching two files, before.txt and after.txt, that show the before
and after results from "lsof | grep dev" in this scenario. Note that the
/dev/null and /dev/urandom files are both open after apt-key is run, but
not before. This problem does NOT occur with Ubuntu 16.04.

This problem is preventing us (the server certification team) from
importing keys in a custom MAAS preseed script; after installing
successfully, umounting the installed image fails because of the open
files on /dev.

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: hwcert-server

** Attachment added: ""lsof | grep dev" output from before running apt-key"
   https://bugs.launchpad.net/bugs/1634234/+attachment/4762665/+files/before.txt

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

Title:
  apt-key leaves files in /dev open after exit

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to