cli: Installation failed on Ubuntu 20

I was trying to install gh on ubuntu 20 and I run sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 as described from the documentation

Error

I got this message gpg: keyserver receive failed: Server indicated a failure

Logs

Executing: /tmp/apt-key-gpghome.Kr7mQdYGPK/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 gpg: keyserver receive failed: Server indicated a failure

Paste the activity from your command line. Redact if needed.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 18 (5 by maintainers)

Most upvoted comments

Fixed it Using: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C99B11DEB97541F0 adding hkp:// and :80 did the trick

reference: https://unix.stackexchange.com/questions/399027/gpg-keyserver-receive-failed-server-indicated-a-failure

Facing this. No VPN on my end. Ubuntu 20.04

You only mentioned the addition of port :80 , that alone didn’t work. hkp:// was essential too.

when I tried to access the link https://cli.github.com/packages, I see that it is not found.

You cannot visit this link in your web browser. That will always result in a “Not found” page, and that is expected.

To configure your package manager to download packages from that location, you must follow the instructions here: https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt

If that doesn’t work, please provide more information about what you’ve tried and what doesn’t work. Most importantly, check your /etc/apt/sources.list.d/ directory for signs of having properly configured our package repository.

It needs upgrade , contact me back if you want my help okay

On Thu, Sep 24, 2020 at 8:42 PM Rohan Rajpal notifications@github.com wrote:

Which device are you using

… <#m_-732577407780737687_>

On Thu, Sep 24, 2020 at 7:35 PM Rohan Rajpal @.***> wrote: Hey, I followed the install instructions and came across this error, any suggestions what might be the reason? @.***X556UQK ~ [1]> sudo apt-add-repository https://cli.github.com/packages (base) Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease Get:2 https://download.docker.com/linux/ubuntu focal InRelease [36.2 kB] Hit:3 https://deb.nodesource.com/node_14.x focal InRelease Hit:4 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease Get:5 https://cli.github.com/packages focal InRelease [3,024 B] Hit:6 http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_20.04 InRelease Hit:7 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease Err:5 https://cli.github.com/packages focal InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY C99B11DEB97541F0 Hit:8 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal InRelease Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:10 https://brave-browser-apt-release.s3.brave.com stable InRelease Reading package lists… Done W: GPG error: https://cli.github.com/packages focal InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY C99B11DEB97541F0 E: The repository ’ https://cli.github.com/packages focal InRelease’ is not signed. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1799 (comment) https://github.com/cli/cli/issues/1799#issuecomment-698516045>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQZUFQDEM3WIHXBEQYXXHT3SHOGPJANCNFSM4RR4CNGQ .

Hey, I have an Asus X556UQK with Ubuntu 20.04 LTS.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/cli/cli/issues/1799#issuecomment-698549564, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQZUFQAQXP4NUURYTLPGZDLSHOOLLANCNFSM4RR4CNGQ .

@Satwato Thanks a lot. This really fixes the issue.

Could it be that these are legitimate network errors on your end? Does the problem persist over multiple retries spread out over an hour?