cli: ubuntu public key unavailable
Describe the feature or problem you’d like to solve
I’m trying to install github cli on ubuntu following the instructions, but apt can’t seem to find and validate the public key used to sign the package.
Err:1 https://cli.github.com/packages stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C99B11DEB97541F0
[...]
W: GPG error: https://cli.github.com/packages stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C99B11DEB97541F0
It seems to be missing from keyserver.ubuntu.com: https://keyserver.ubuntu.com/pks/lookup?search=C99B11DEB97541F0&op=hget
Proposed solution
Add public key to keyserver.ubuntu.com or update public key used to sign package.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (5 by maintainers)
@mjohngreene I also ran into this a few minutes ago. The install website says they changed the key recently and to follow their instructions: https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt Once I reran this (on Ubuntu) the error went away.
I am currently running KDE Neon (20.04) and had to do the following (note: the first two lines were undoing the previous attempt to use the new accepted method in the docs):
I have not run the release upgrade to 22.04 yet, so this may just be for the last LTS, but I am now able to install/update
gh
without any errors.@DrPyser Thank you for confirming! We have modified our installation instructions to fix the permissions issue when setting up our package repository 👍