module cc_apt_configure must make sure gnupg is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
when using the module cc_apt_configure we need to make sure that gnupg is installed before using apt-key add to add a certain apt key.
The most recent debian 10 cloud image from https:/
#cloud-config
apt:
http_proxy: http://
https_proxy: http://
sources:
saltstack:
source: "deb http://
key: |
It will then throw the following errors:
[ 21.870823] cloud-init[494]: 2019-12-06 11:26:16,967 - cc_apt_
[ 21.875126] cloud-init[494]: Traceback (most recent call last):
[ 21.877629] cloud-init[494]: File "/usr/lib/
[ 21.881435] cloud-init[494]: util.subp(
[ 21.884155] cloud-init[494]: File "/usr/lib/
[ 21.886831] cloud-init[494]: cmd=args)
[ 21.888611] cloud-init[494]: cloudinit.
[ 21.891311] cloud-init[494]: Command: ['apt-key', 'add', '-']
[ 21.893090] cloud-init[494]: Exit code: 255
[ 21.894566] cloud-init[494]: Reason: -
[ 21.895819] cloud-init[494]: Stdout:
[ 21.897109] cloud-init[494]: Stderr: E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
[ 21.899870] cloud-init[494]: 2019-12-06 11:26:16,973 - util.py[WARNING]: Running module apt-configure (<module 'cloudinit.
description: | updated |
Changed in cloud-init: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Tracked in Github Issues as https:/ /github. com/canonical/ cloud-init/ issues/ 3514