Error while installation on GCP(google cloud) on debian 9

I am getting the following error while installing on a new server on GCP
i followed the steps provided in github page for production installation.
please help!

fatal: [localhost]: FAILED! => {
“changed”: false,
“cmd”: “/usr/bin/apt-key adv --no-tty --keyserver hkp://keyserver.ubuntu.com:80 --recv F1656F24C74CD1D8”,
“invocation”: {
“module_args”: {
“data”: null,
“file”: null,
“id”: “0xF1656F24C74CD1D8”,
“key”: null,
“keyring”: null,
“keyserver”: “hkp://keyserver.ubuntu.com:80”,
“state”: “present”,
“url”: null,
“validate_certs”: true
}
},
“msg”: “Error fetching key F1656F24C74CD1D8 from keyserver: hkp://keyserver.ubuntu.com:80”,
“rc”: 2,
“stderr”: “Warning: apt-key output should not be parsed (stdout is not a terminal)\ngpg: failed to start the dirmng
r ‘/usr/bin/dirmngr’: No such file or directory\ngpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.hODS9bVUuf/S.dirmngr’
failed: No such file or directory\ngpg: keyserver receive failed: No dirmngr\n”,
“stderr_lines”: [
“Warning: apt-key output should not be parsed (stdout is not a terminal)”,
“gpg: failed to start the dirmngr ‘/usr/bin/dirmngr’: No such file or directory”,
“gpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.hODS9bVUuf/S.dirmngr’ failed: No such file or directory”,
“gpg: keyserver receive failed: No dirmngr”
],
“stdout”: “Executing: /tmp/apt-key-gpghome.hODS9bVUuf/gpg.1.sh --no-tty --keyserver hkp://keyserver.ubuntu.com:80 -
-recv F1656F24C74CD1D8\n”,
“stdout_lines”: [
“Executing: /tmp/apt-key-gpghome.hODS9bVUuf/gpg.1.sh --no-tty --keyserver hkp://keyserver.ubuntu.com:80 --recv
F1656F24C74CD1D8”
]
}

sudo apt install software-properties-common -y
sudo apt install dirmngr -y
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xF1656F24C74CD1D8
sudo apt install curl -y

1 Like

Thanks, that’s great, it worked like a charm!