[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#910654: cloud.debian.org: cloud-init apt module can't add GPG keys; dirmngr missing

Package: cloud.debian.org
Severity: normal

Dear Maintainer,

On clean instantiations of the Debian Stretch AWS AMIs, the cloud-init Apt Configure
module can't receive GPG keys. The following cloud-init

  keyid: '6F6B15509CF8E59E6E469F327F438280EF8D349F'
  source: 'deb http://apt.puppetlabs.com $RELEASE puppet5'

produces the following output in /var/log/cloud-init.log on a new AWS instance:

2018-10-09 10:17:29,164 - gpg.py[ERROR]: Failed to obtain gpg key 6F6B15509CF8E59E6E469F327F438280EF8D349F
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/gpg.py", line 33, in recv_key
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1850, in subp
cloudinit.util.ProcessExecutionError: Unexpected error while running command.
Command: ['gpg', '--keyserver', 'keyserver.ubuntu.com', '--recv', '6F6B15509CF8E59E6E469F327F438280EF8D349F']
Exit code: 2
Reason: -
Stdout: -
Stderr: gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
    gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: No such file or directory
    gpg: keyserver receive failed: No dirmngr

This issue can be worked around by installing dirmngr in the bootcmd step, but
I would expect this functionality to work out of the box.

Kind regards,

Daniel Strong

-- System Information:
Debian Release: 9.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply to: