0

Issue fetching gpg keys

I was trying to fetch a key from keyserver.ubuntu.com (gpg --keyserver keyserver.ubuntu.com --recv-keys 6e85a86e4652b4e6), and kept getting the following error:

gpg: keyserver receive failed: Server indicated a failure

After some digging, I found out that it's a DNS issue affecting dirmngr and "faulty" DNS servers.

 

https://bugs.launchpad.net/snapcraft/+bug/1942660/comments/5

https://unix.stackexchange.com/questions/399027/gpg-keyserver-receive-failed-server-indicated-a-failure (most answers here point to DNS)

 

Sure enough, after adding 1.1.1.1 (Cloudflare DNS) as the DNS resolver for keyserver.ubuntu.com, the issue disappeared:

# /etc/systemd/resolved.conf

[...]

DNS=1.1.1.1
Domains=~keyserver.ubuntu.com

 

I'm not sure if this is an isolated issue but I'm posting here just in case.

Reply

null

Content aside

  • 3 mths agoLast active
  • 15Views
  • 2 Following