I've installed gnupg 2.1.0 with the speedo build system on an Ubuntu 14.4 into
/opt/gnupg and set my LD_LIBRARY_PATH / PATH accordingly.
Everything works fine I can sign / encrypt / verify but the lookup of openpgp
keys fails with: "error searching keyserver: System error w/o errno"
I guess it has to be something with my environment but if I can figure out the
problem maybe the error message could be improved for that case.
To rule out some environmental causes I ran the following test:
pkill gpg-agent
pkill dirmngr
unset GPG_AGENT_INFO
gpg2 --keyserver hkp://75.75.183.132 --homedir mktemp -d -v -v -v --search
aheinecke@intevation.de
Output:
gpg: using character set 'utf-8'
gpg: keybox '/tmp/tmp.GICwwzmCUz/pubring.kbx' created
gpg: no running Dirmngr - starting '/opt/gnupg/bin/dirmngr'
gpg: waiting for the dirmngr to come up ... (5s)
gpg: connection to the dirmngr established
gpg: error searching keyserver: System error w/o errno
gpg: keyserver search failed: System error w/o errno
If I run the same command with gpg 1.4.16 everything is ok:
gpg --keyserver hkp://75.75.183.132 --homedir mktemp -d -v -v -v --search
aheinecke@intevation.de
gpg: using character set `utf-8'
gpg: keyring `/tmp/tmp.79u9D4HS5L/secring.gpg' created
gpg: keyring `/tmp/tmp.79u9D4HS5L/pubring.gpg' created
gpg: searching for "aheinecke@intevation.de" from hkp server 75.75.183.132
(1) Andre Heinecke <andre@heinecke.or.at>
Andre Heinecke <aheinecke@intevation.de> Andre Heinecke <andre.heinecke@intevation.de> 384 bit unknown key 58BD45EC, created: 2014-11-18, expires: 2019-11-17
(2) Andre Heinecke <aheinecke@intevation.de>
Andre Heinecke <andre.heinecke@intevation.de> 1024 bit DSA key C97822F5, created: 2009-11-23, expires: 2015-12-31
Keys 1-2 of 2 for "aheinecke@intevation.de". Enter number(s), N)ext, or Q)uit >
gpg: Interrupt caught ... exiting