?: keys.gnupg.net: Host not found

Yuri Kanivetsky yuri.kanivetsky at gmail.com
Tue Oct 6 10:23:03 CEST 2015


Hi,

I can easily reproduce the issue on vagrant VMs (virtualbox,
https://www.vagrantup.com/). At least on ubuntu/trusty64 vagrant box. And I
was probably able to reproduce it on VM created manually, not sure about
it. Didn't try much on host machines.

    $ gpg --keyserver hkp://keys.gnupg.net --recv-keys
409B6B1796C275462A1703113804BB82D39DC0E3
    gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
    ?: keys.gnupg.net: Host not found
    gpgkeys: HTTP fetch error 7: couldn't connect: Success
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0

Here are some related links:

    https://bugs.launchpad.net/ubuntu/+source/gnupg/+bug/1044156
    https://github.com/protobox/protobox/issues/159
    https://github.com/rvm/rvm/issues/3110#issuecomment-95161168

I used this command to investigate the issue:

    $ i=0; while true; do echo "--- $i"; gpg --delete-key --batch --yes
D39DC0E3; gpg --keyserver hkp://keys.gnupg.net --recv-keys
409B6B1796C275462A1703113804BB82D39DC0E3 || { echo -e $? '\a'; break; };
sleep 5; : $(( i++ )); done

Relogging in the VM seems to help. Using canonical name (CNAME,
pool.sks-keyservers.net) or IP address seems to help as well.

I can ping keys.gnupg.net, when this happens:

    vagrant at vagrant-ubuntu-trusty-64:~$ ping keys.gnupg.net
    PING pool.sks-keyservers.net (223.252.21.101) 56(84) bytes of data.
    64 bytes from svcs4.riverwillow.net.au (223.252.21.101): icmp_seq=1
ttl=63 time=358 ms
    64 bytes from svcs4.riverwillow.net.au (223.252.21.101): icmp_seq=2
ttl=63 time=359 ms
    64 bytes from svcs4.riverwillow.net.au (223.252.21.101): icmp_seq=3
ttl=63 time=360 ms
    64 bytes from svcs4.riverwillow.net.au (223.252.21.101): icmp_seq=4
ttl=63 time=359 ms
    ^C
    --- pool.sks-keyservers.net ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3004ms
    rtt min/avg/max/mdev = 358.999/359.600/360.172/0.857 ms
    vagrant at vagrant-ubuntu-trusty-64:~$ gpg --keyserver hkp://keys.gnupg.net
--recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
    ?: keys.gnupg.net: Host not found
    gpgkeys: HTTP fetch error 7: couldn't connect: Success
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0
    vagrant at vagrant-ubuntu-trusty-64:~$ ping keys.gnupg.net
    PING pool.sks-keyservers.net (80.108.223.189) 56(84) bytes of data.
    64 bytes from chello080108223189.4.13.vie.surfer.at (80.108.223.189):
icmp_seq=1 ttl=63 time=60.4 ms
    64 bytes from chello080108223189.4.13.vie.surfer.at (80.108.223.189):
icmp_seq=2 ttl=63 time=60.5 ms
    ^C
    --- pool.sks-keyservers.net ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1001ms
    rtt min/avg/max/mdev = 60.434/60.473/60.512/0.039 ms

Do you have any clues? Is there anything I can check? I'm not using proxy,
if anything.

Regards,
Yuri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20151006/1770c182/attachment-0001.html>


More information about the Gnupg-users mailing list