How to fix gpg: keyserver receive failed: No route to host
- Open
~.gnupg/gpg.conf
and add the following line:
keyserver hkp://keyserver.ubuntu.com:80
- If the above step doesn’t work, check (and change) your DNS:
cat /etc/resolv.conf
~.gnupg/gpg.conf
and add the following line:keyserver hkp://keyserver.ubuntu.com:80
cat /etc/resolv.conf