How to fix gpg: keyserver receive failed: No route to host

1 min read

  1. Open ~.gnupg/gpg.conf and add the following line:
gpg.conf
keyserver hkp://keyserver.ubuntu.com:80

If the above step doesn’t work, check (and change) your DNS