You are not logged in.
I'm trying to import a gpg public key (like explain here: https://wiki.archlinux.org/title/GnuPG# … ublic_key)
The keyserver option don't work properly
gpg --keyserver hkp://keyserver.ubuntu.com --recv-key F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
gpg: keyserver receive failed: No route to host
Same error with another keyserver (+hkp://)
[Dam@damien-MBP ~]$ gpg --keyserver hkp://pgp.mit.edu --recv-key F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
gpg: keyserver receive failed: Server indicated a failure
I tried to ping the canonical keyserver with strange results: it's ok with top domain
[Dam@damien-MBP ~]$ ping -c 3 ubuntu.com
PING ubuntu.com (2620:2d:4000:1::27) 56 data bytes
64 bytes from website-content-cache-2.canonical.com (2620:2d:4000:1::27): icmp_seq=1 ttl=49 time=23.9 ms
64 bytes from website-content-cache-2.canonical.com (2620:2d:4000:1::27): icmp_seq=2 ttl=49 time=27.2 ms
64 bytes from website-content-cache-2.canonical.com (2620:2d:4000:1::27): icmp_seq=3 ttl=49 time=26.0 ms
--- ubuntu.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 23.863/25.673/27.157/1.364 ms
But it's fails with complete address
[Dam@damien-MBP ~]$ ping -c 2 keyserver.ubuntu.com
PING keyserver.ubuntu.com (2620:2d:4000:1007::d43) 56 data bytes
^C
--- keyserver.ubuntu.com ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1056ms
And these keyservers seem to be reachable
[Dam@damien-MBP public-keys.d]$ gpg-connect-agent --dirmngr 'keyserver --hosttable'
S # hosttable (idx, ipv6, ipv4, dead, name, time):
S # 0 keyserver.ubuntu.com
S # 1 pool.sks-keyservers.net
S # 2 pgp.mit.edu
OK
I tried to add this key manually, with success
[Dam@damien-MBP public-keys.d]$ wget -O .gnupg/public-keys.d/test.asc 'https://keyserver.ubuntu.com/pks/lookup?search=0xF23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87&fingerprint=on&op=get'
[Dam@damien-MBP ~]$ gpg --import .gnupg/public-keys.d/test.asc
gpg: key DBD2CE893E2D1C87: 1 signature not checked due to a missing key
gpg: key DBD2CE893E2D1C87: public key "Christoph Feck <cfeck@kde.org>" imported
gpg: Total number processed: 1
gpg: imported: 1
My question is : what's wrong with "--keyserver" option? and why can I ping these keyservers?
Last edited by Damien Yearwing (2025-06-09 19:09:04)
Offline
and why can I ping these keyservers?
keyserver.ubuntu.com doesn't echo icmp requests, that's normal.
gpg --keyserver hkp://185.125.188.26 --search-keys F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
gpg --keyserver hkp://185.125.188.27 --search-keys F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
gpg --keyserver hkp://2620:2d:4000:1007::d43 --search-keys F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
gpg --keyserver hkp://2620:2d:4000:1007::70c --search-keys F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
Offline
keyserver.ubuntu.com doesn't echo icmp requests, that's normal.
OK, that makes sense.
About DNS :
gpg --keyserver hkp://185.125.188.26 --search-keys F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
gpg: error searching keyserver: No keyserver available
gpg: keyserver search failed: No keyserver available
gpg --keyserver hkp://185.125.188.27 --search-keys F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
gpg: error searching keyserver: No keyserver available
gpg: keyserver search failed: No keyserver available
gpg --keyserver hkp://2620:2d:4000:1007::d43 --search-keys F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
gpg: error searching keyserver: No route to host
gpg: keyserver search failed: No route to host
Offline
As you suggest here I tried this, with success:
ln -rsf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
I don't know why mentioning the direct IP address doesn't work.
Last edited by Damien Yearwing (2025-06-09 19:07:34)
Offline