I was trying to verify TOR package signature with this command:
gpg --keyserver pool.sks-keyservers.net --recv-keys 0x4E2C6E8793298290
I got this response
gpg: requesting key 0x4E2C6E8793298290 from hkp server pool.sks-keyservers.net
?: invalid HTTP proxy (socks5-hostname://127.0.0.1:9050): unsupported URI
gpgkeys: HTTP fetch error 7: couldn't connect: Success
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver unreachable
gpg: keyserver communications error: public key not found
gpg: keyserver receive failed: public key not found
Thankfully I was able to do the actual verification by using another computer (both Ubuntu 16.04LTS).
But someone pointed out that my main system's GnuPG configuration is not default, as it's expecting HTTP proxy. This seemed proven true by moving the same files (package and signature) to another computer with the same OS and giving the same command and it worked instantly.
Does anyone know how to restore my GnuPG configuration to default on my main system? Thanks.
~/.gnupg/dirmngr.conf
and add a line sayinguse-tor
. gnupg.org/documentation/manuals/gnupg/… otherwise, edit~/.gnupg/gpg.conf
and remove the proxy config line and invokegpg
astorsocks gpg