<!DOCTYPE html><html><head><title></title></head><body><div>I figured out what the problem was this morning. It wasn't name resolution, although I suspected that as well. Instead it turned out to be the port.</div><div><br></div><div>When I changed the command to</div><div><br></div><div>gpg --keyserver<span class="qt-Apple-converted-space"> </span><a href="hkp://keyserver.ubuntu.com">hkp://keyserver.ubuntu.com</a>::11371<span class="qt-Apple-converted-space"> </span>--recv-keys 77D4D81DC47D68FA9E9E6A7C5DF19E2B67A7B584</div><div><br></div><div>then it retrieved the key as expected. I added the port to gpg.conf and now everything is fine.</div><div><br></div><div>I did notice that /etc/services on macOS has two entries for hkp:</div><div><br></div><div>hkp             11371/udp    # OpenPGP HTTP Keyserver</div><div>hkp             11371/tcp    # OpenPGP HTTP Keyserver</div><div><br></div><div>I tried commenting out the udp version and restarting dirmngr, but that had no effect.</div><div><br></div><div>Walt</div><div><br></div><div>On Mon, Jun 16, 2025, at 5:53 AM, Andrew Gallagher wrote:</div><blockquote type="cite" id="qt" style="overflow-wrap:break-word;line-break:after-white-space;"><div>On 14 Jun 2025, at 21:36, Walt Mankowski via Gnupg-users <gnupg-users@gnupg.org> wrote:</div><div><blockquote type="cite"><div><br></div><div><div><div style="margin-top:0px;margin-bottom:0px;font-style:normal;font-variant-caps:normal;line-height:normal;font-family:"Helvetica Neue";font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-position:normal;font-feature-settings:normal;font-optical-sizing:auto;font-variation-settings:normal;color:rgb(21, 23, 24);"><span style="font-kerning:none;">Every time I try to import a key, it fails almost immediately with the error</span></div><div><br></div><div>gpg: keyserver receive failed: Try again later</div><div><br></div><div><span style="font-kerning:none;">I've tried a number of different keyservers and keep getting the same error. I have an Ubuntu box on the same network. I've run the same command on each box, for example:</span></div><div><br></div><div>gpg --keyserver<span class="qt-Apple-converted-space"> </span><a href="hkp://keyserver.ubuntu.com">hkp://keyserver.ubuntu.com</a><span class="qt-Apple-converted-space"> </span>--recv-keys 77D4D81DC47D68FA9E9E6A7C5DF19E2B67A7B584</div><div><br></div><div><span style="font-kerning:none;">This imports the key on Ubuntu but gives me the "Try again later" error on macOS.</span></div><div><br></div><div><span style="font-kerning:none;">I looked online for help but didn't find very much. I've set ~/.gnupg/dirmngr.conf to</span></div><div><br></div></div><div>log-file ~/.gnupg/dirmngr.log</div><div>debug-level guru</div><div>standard-resolver</div><div><br></div><div><span style="font-kerning:none;">and restarted dirmngr, but that had very little effect. In particular nothing gets logged to dirmngr.log.</span></div></div></blockquote></div><div><br></div><div>This is most likely a name resolution error. What are the contents of your /etc/resolv.conf file?</div><div><br></div><div>A</div><div><br></div><div><br></div><div><b>Attachments:</b></div><ul><li>signature.asc</li></ul></blockquote><div><br></div></body></html>