gpg: error searching keyserver: Network is unreachable

Klaus Ethgen klaus+gnupg at
Sun Mar 7 11:40:46 CET 2021

Hi Christian,

Am Sa den  6. Mär 2021 um  8:44 schrieb Christian Ribeaud:
> Desperately searching for hours now???
> I am NOT able to run following command:
> gpg --keyserver hkp:// --keyserver-options no-self-sigs-only,no-import-clean --search-keys <any-key>
> Always getting following output:
> gpg: error searching keyserver: No keyserver available
> gpg: keyserver search failed: No keyserver available

Remember, dirmng is using tor by default if it is installed and running!

You have to put no-use-tor to your .gnupg/dirmngr.conf to prevent this.

This did cost me hours to find out, when the feature was implemented.

Klaus Ethgen                             
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <Klaus at>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 688 bytes
Desc: not available
URL: <>

More information about the Gnupg-users mailing list