-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gpg: keyserver receive failed: No route to host #4215
Comments
This worked, presumably providing an IPv4 compatible host: gpg-connect-agent --dirmngr 'keyserver --hosttable' |
@DanielViglione please watching this document.
|
Thanks, that seems to work for me. |
Build that was failing: https://travis-ci.org/travis-ci/travis-rubies/jobs/347426899 Error: ``` The command "unset JRUBY_OPTS" exited with 0. 3.61s$ ./build.sh update rvm 2.29s$ rvm remove 1.8.7 ruby-1.8.7-head - #already gone /Users/travis/.rvm/bin/rvm: line 66: shell_session_update: command not found /usr/local/bin/gpg gpg: /Users/travis/.gnupg/trustdb.gpg: trustdb created gpg: error reading key: No public key gpg: keyserver receive failed: No route to host The command "./build.sh" exited with 2. ``` - First error seems to be a well known issue : direnv/direnv#210 - Second error for gpg rvm/rvm#4215 (comment)
Build that was failing: https://travis-ci.org/travis-ci/travis-rubies/jobs/347426899 Error: ``` The command "unset JRUBY_OPTS" exited with 0. 3.61s$ ./build.sh update rvm 2.29s$ rvm remove 1.8.7 ruby-1.8.7-head - #already gone /Users/travis/.rvm/bin/rvm: line 66: shell_session_update: command not found /usr/local/bin/gpg gpg: /Users/travis/.gnupg/trustdb.gpg: trustdb created gpg: error reading key: No public key gpg: keyserver receive failed: No route to host The command "./build.sh" exited with 2. ``` - First error seems to be a well known issue : direnv/direnv#210 - Second error for gpg rvm/rvm#4215 (comment)
I ran into this problem on MacOS 10.13.6, and I currently suspect it's something weird with gpg deciding to use IPv6. I currently don't have a valid global IPv6 address, so all IPv6 addrs should be "no route to host", but I noticed that if I manually look up keys.gnupg.net and substitute in one of the IPv4 addresses explicitly, then the command works and I can proceed, without doing the other workaround with curl.
|
Alternative workaround: You can forbid gpg's internal "dirmngr" from using IPv6 if that is your problem. Add the following line to ~/.gnupg/dirmngr.conf:
Make sure no existing dirmngr processes are still running (and kill them if they are), and then try your gpg --recv-keys command again as specified originally, and it should work (or at least does for me). Note that the risk here is that if you really do need IPv6 later at some point, you may forget about this setting, but for most people this is unlikely. |
@doviende thank you so much for that, was driving me crazy |
@doviende I added this info to rvm.io: rvm/rvm-site@e889114 With some other documentation fixes, I think we can close this issue. |
Was just about to log a bug for this and I don't believe this bug should be closed as it is not IPv6 related. This The malicious or dead IP is:
According to sks-keyservers.net, you should be using cc/ @pkuczynski |
The following code can be used in a script, as far as it will be compatible despite of future changes in the IPs (from keys.gnupg.net) or the gpg --keyserver
hkp://$(host keys.gnupg.net | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | head -1)
$(\curl -sSL https://get.rvm.io | grep -Eo '*--recv-keys.*') ___________ Example ___________ $ gpg --keyserver hkp://$(host keys.gnupg.net | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | head -1) $(\curl -sSL https://get.rvm.io | grep -Eo '*--recv-keys.*')
gpg: key 105BD0E739499BDB: 4 signatures not checked due to missing keys
gpg: key 105BD0E739499BDB: "Piotr Kuczynski <piotr.kuczynski@gmail.com>" not changed
gpg: key 3804BB82D39DC0E3: 101 signatures not checked due to missing keys
gpg: key 3804BB82D39DC0E3: "Michal Papis (RVM signing) <mpapis@gmail.com>" not changed
gpg: Total number processed: 2
gpg: unchanged: 2 |
To restart
|
This is working without having to disable ipv6:
|
Since this is coming up in the Google search results for this GPG issue, I will add that using edit: forgot words |
I had the same problem, couldn't install |
Hi - @texpert 's answer was the closest for me, but it turns out I was possibly fighting a firewall so had to force port 80 and use: |
I also came here because of the search engine. |
I just ran into this and followed the suggestion on this Medium post and then |
They GPG key import command also failed locally on my machine. This issue provided some insight into the problem. rvm/rvm#4215 Moving to IPV4 keyserver fixes things
They GPG key import command also failed locally on my machine. This issue provided some insight into the problem. rvm/rvm#4215 Moving to IPV4 keyserver fixes things
use hkp://ipv4.pool.sks-keyservers.net |
Confirmed change to
worked fine. |
|
I'm getting I followed the suggestion in Medium post and ran
|
@atalis |
Anybody has got working solution as last few posts are not working on Mac 10.15.7 |
I did above steps and got below
Is it safe to any random person's public key ?
|
|
Try only
|
Just use an other GPG key server like:
|
good evening I'm having trouble installing the script I keep getting these errors thanks in advance Security and Settings Alerts There are errors in your configuration. Check the security of your Nextcloud via our security scan ↗. Version Invalid private key for the crypto app. Update the private key password in your personal settings to regain access to your encrypted files. |
Out of all of the urls provided, this is the only one that worked ¯_(ツ)_/¯ |
Why don't they update their website with this info..? 🤔 |
Only the Ubuntu keyserver worked for me as well. DNS doesn't even appear to resolve for the domains specified in the documentation:
|
루비 설치시 기존 keyserver 주소가 작동하지 않아 유효한 링크로 변경합니다. See also: rvm/rvm#4215 (comment)
루비 설치시 기존 keyserver 주소가 작동하지 않아 유효한 링크로 변경합니다. See also: rvm/rvm#4215 (comment)
This is not directly related to RVM. But if you look at your instructions page, it gives the following commands:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
I have GPG (GNU Privacy Guard) installed on my Mac OSX Sierra via Homebrew. When I run this command, this it result:
$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: directory '/Users/viggy/.gnupg' created
gpg: keybox '/Users/viggy/.gnupg/pubring.kbx' created
gpg: keyserver receive failed: No route to host
How to resolve?
The text was updated successfully, but these errors were encountered: