gpg: keyserver receive failed: No route to host stack overflow

左心房为你撑大大i 提交于 2021-02-07 13:20:03

问题


i'm trying to install fastlane for my ios app but when i'm trying to install RVM, i'm facing issues.

My command is gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113************* 7D2BAF1CF37B13E2069D69561*************


回答1:


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*************



回答2:


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



来源:https://stackoverflow.com/questions/54801274/gpg-keyserver-receive-failed-no-route-to-host-stack-overflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!