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

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:// 
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"

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  apt-key leaves files in /dev open after exit

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to