Verified. The first dirmngr started by 1.6.1 stayed alive even after 1.6.2 finished executing; the dirmngr started by 1.6.2 was not alive anymore.
+ lxc launch -e ubuntu:bionic lp1773992-bionic Creating lp1773992-bionic Starting lp1773992-bionic + sleep 5 + lxc exec lp1773992-bionic -- sh -c 'apt-cache policy apt | grep Inst ; apt-key adv --recv-keys 843938DF228D22F7B3742BC0D94AA3F0EFE21092 < /dev/null ; sleep 2; ps aux' Installed: 1.6.1 Executing: /tmp/apt-key-gpghome.UEzrZXm31Q/gpg.1.sh --recv-keys 843938DF228D22F7B3742BC0D94AA3F0EFE21092 [...] root 326 0.0 0.0 173060 13952 ? Ss 09:39 0:00 dirmngr --daemon --homedir /tmp/apt-key-gpghome.UEzrZXm31Q root 411 0.0 0.0 37792 3428 ? R+ 09:40 0:00 ps aux + lxc exec lp1773992-bionic -- sh -c 'echo deb http://archive.ubuntu.com/ubuntu bionic-proposed main >> /etc/apt/sources.list && apt-get update && apt-get -y install apt/bionic-proposed' dpkg-preconfigure: unable to re-open stdin: No such file or directory + lxc exec lp1773992-bionic -- sh -c 'apt-cache policy apt | grep Inst ; apt-key adv --recv-keys 843938DF228D22F7B3742BC0D94AA3F0EFE21092 < /dev/null ; sleep 2; ps aux' Installed: 1.6.2 Executing: /tmp/apt-key-gpghome.EAd3H1TKh1/gpg.1.sh --recv-keys 843938DF228D22F7B3742BC0D94AA3F0EFE21092 gpg: key D94AA3F0EFE21092: 45 signatures not checked due to missing keys gpg: key D94AA3F0EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <cdim...@ubuntu.com>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 159664 8980 ? Ss 09:39 0:00 /sbin/init root 51 0.0 0.0 78436 9844 ? Ss 09:39 0:00 /lib/systemd/systemd-journald root 63 0.0 0.0 33348 3580 ? Ss 09:39 0:00 /lib/systemd/systemd-udevd systemd+ 151 0.0 0.0 80012 5340 ? Ss 09:39 0:00 /lib/systemd/systemd-networkd systemd+ 152 0.0 0.0 70608 5332 ? Ss 09:39 0:00 /lib/systemd/systemd-resolved daemon 189 0.0 0.0 28332 2404 ? Ss 09:39 0:00 /usr/sbin/atd -f root 191 0.0 0.0 31748 3180 ? Ss 09:39 0:00 /usr/sbin/cron -f root 192 0.0 0.0 287988 7072 ? Ssl 09:39 0:00 /usr/lib/accountsservice/accounts-daemon root 194 0.0 0.0 61996 5736 ? Ss 09:39 0:00 /lib/systemd/systemd-logind syslog 196 0.0 0.0 197636 4336 ? Ssl 09:39 0:00 /usr/sbin/rsyslogd -n root 197 0.0 0.0 1434880 21332 ? Ssl 09:39 0:00 /usr/lib/snapd/snapd root 201 0.0 0.0 170864 17152 ? Ssl 09:39 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher message+ 202 0.0 0.0 50052 4472 ? Ss 09:39 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only root 206 0.0 0.0 288888 6696 ? Ssl 09:39 0:00 /usr/lib/policykit-1/polkitd --no-debug root 218 0.0 0.0 72296 5840 ? Ss 09:39 0:00 /usr/sbin/sshd -D root 227 0.0 0.0 16412 2404 console Ss+ 09:39 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud console 115200,38400,9600 linux root 326 0.0 0.0 173060 13952 ? Ss 09:39 0:00 dirmngr --daemon --homedir /tmp/apt-key-gpghome.UEzrZXm31Q root 1445 0.0 0.0 4628 808 ? Ss+ 09:40 0:00 sh -c apt-cache policy apt | grep Inst ; apt-key adv --recv-keys 843938DF228D22F7B3742BC0D94AA3F0EFE21092 < /dev/null ; sleep 2; ps aux root 1563 0.0 0.0 37792 3252 ? R+ 09:40 0:00 ps aux ** Tags removed: verification-needed verification-needed-bionic ** Tags added: verification-done verification-done-bionic -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1773992 Title: apt-key adv should gpgconf --kill all the things after execution Status in apt package in Ubuntu: Fix Released Status in apt source package in Bionic: Fix Committed Bug description: [Impact] dirmngr processes are left hanging around after doing key server stuff with apt-key adv. [Test case] apt-key adv --recv-keys "8439 38DF 228D 22F7 B374 2BC0 D94A A3F0 EFE2 1092" < /dev/null ; sleep 2; ps aux should not show a dirmngr process (except for any that was there before running it, obviously). [Regression potential] This just kills more processes using the temporary gpg home directory. It's hard to imagine what could go wrong there. Maybe gpgconf could go mad and kill the wrong process, who knows? [Original bug report] apt-key adv should gpgconf --kill all the things after execution to ensure that e.g. dirmngr processes are not left hanging around To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1773992/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp