gpg: keyserver receive failed: No route to host stack overflow
Asked Answered
M

4

12

While attempting to set up fastlane for my iOS application, I encountered challenges while installing RVM.

My command is

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113************* 7D2BAF1CF37B13E2069D69561*************
Merrymaking answered 21/2, 2019 at 7:16 Comment(1)
stackoverflow.com/a/31000710 This resolved my issue.Vaud
M
40

Please use

hkp://ipv4.pool.sks-keyservers.net

instead of

hkp://keys.gnupg.net

type this command

gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113************* 7D2BAF1CF37B13E2069D69561*************
Merrymaking answered 21/2, 2019 at 7:16 Comment(3)
Just to note, the official RVM documentation says to use hkp://pool.sks-keyservers.net without the ipv4 prepended to the URL in the first step of installing GPG keys. Adding the ipv4 here fixes the issue.Confinement
In case above server is not responding or facing any issue you can try any of the below one hkp://pgp.mit.edu hkp://keyserver.pgp.com rvm.io/rvm/securityJoellajoelle
The info on RVM's site has been updated: If you encounter problem with the key server above, try a different one. Some alternatives are presented below: hkp://ipv4.pool.sks-keyservers.net hkp://pgp.mit.edu hkp://keyserver.pgp.comPreponderance
Z
6

TL;DR; The list of key servers is unstable and some of them are not pingeable at all. Here's a way of finding an available server

I've tried different key servers and got a

gpg: keyserver receive failed: No route to host or a gpg: keyserver receive failed: Operation timed out

You have to find a server that's up and running correctly

  1. Run gpg-connect-agent --dirmngr 'keyserver --hosttable' to get the list of available servers
  2. Run the gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C2………………6956105BD0E739499BDB and instead of hkp://pool.sks... try few of the servers URL

src: https://nrogap.medium.com/install-rvm-in-macos-step-by-step-d3b3c236953b

Zolly answered 23/1, 2021 at 10:37 Comment(0)
J
0

Ik it's late but for future references

rvm mentioned alternative servers on there website you can use any of them. Mentioned servers as of now are below ones

hkp://ipv4.pool.sks-keyservers.net
hkp://pgp.mit.edu
hkp://keyserver.pgp.com

Check list here: https://rvm.io/rvm/security

Joellajoelle answered 7/2, 2024 at 7:2 Comment(0)
M
0
  1. gpg --armor --export ___YOUR_KEY_HERE____ | pbcopy
  2. curl --location 'http://keyserver.ubuntu.com/pks/add' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'keytext=__PASTE_HERE__'
Miran answered 19/5, 2024 at 16:54 Comment(2)
Thank you for your interest in contributing to the Stack Overflow community. This question already has a few answers—including one that has been extensively validated by the community. Are you certain your approach hasn’t been given previously? If so, it would be useful to explain how your approach is different, under what circumstances your approach might be preferred, and/or why you think the previous answers aren’t sufficient. Can you kindly edit your answer to offer an explanation?Traffic
hey Reyaz, can you explain what each step is for?Karlise

© 2022 - 2025 — McMap. All rights reserved.