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)
Fixed it Using:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C99B11DEB97541F0
addinghkp://
and:80
did the trickreference: 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.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:
@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?