While connecting sks server works fine, it fails with the keys.openpgp.org server:
$ cat /tmp/dirmgr.log 2020-01-17 11:14:44 dirmngr[8500] listening on socket '/run/user/4728/gnupg/S.dirmngr' 2020-01-17 11:14:44 dirmngr[8501.0] permanently loaded certificates: 143 2020-01-17 11:14:44 dirmngr[8501.0] runtime cached certificates: 0 2020-01-17 11:14:44 dirmngr[8501.0] trusted certificates: 143 (142,0,0,1) 2020-01-17 11:14:44 dirmngr[8501.6] handler for fd 6 started 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> # Home: /home/mb/.gnupg 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> # Config: /home/mb/.gnupg/dirmngr.conf 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> OK Dirmngr 2.2.19 at your service 2020-01-17 11:14:44 dirmngr[8501.6] connection from process 8498 (4728:4728) 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- GETINFO version 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> D 2.2.19 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> OK 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- KEYSERVER --clear hkps://keys.openpgp.org 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> OK 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- KEYSERVER 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> S KEYSERVER hkps://keys.openpgp.org 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> OK 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- KS_PUT 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> INQUIRE KEYBLOCK 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- [ 44 20 99 02 33 30 44 04 59 b1 32 06 01 10 00 a8 ...(982 byte(s) skipped) ] 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- [ 44 20 a6 02 b7 5f 27 23 ee 2c 49 60 0e 40 e9 10 ...(982 byte(s) skipped) ] 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- [ 44 20 50 f6 1d 3f 33 fb 25 30 44 25 30 41 dc 1f ...(982 byte(s) skipped) ] 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- [ 44 20 42 d5 85 25 30 41 74 f6 25 32 35 28 f4 65 ...(982 byte(s) skipped) ] 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- [ 44 20 d7 97 70 2b 17 fc 4f 33 d7 a6 12 58 07 04 ...(982 byte(s) skipped) ] 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- [ 44 20 d2 96 d4 b2 12 e1 0f ae 62 d0 d7 70 f3 fc ...(982 byte(s) skipped) ] 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- [ 44 20 86 1b a9 9c 61 fd 01 54 9f 63 68 33 a5 1f ...(571 byte(s) skipped) ] 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- END 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> INQUIRE KEYBLOCK_INFO 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- D pub::4096:1:997E0920CFD3306C:1504733902:1672337035::::::::::%0Auid:::::1514977035::::Mo <.................de>:::::::%0Asig::::997E3320CFD7F06C:1514973335:::::::::::%0Asig::::997E0920CFD3306C:1504733902:::::::::::%0Asig::::99330920CFD7F06C:1504783346:::::::::::%0Auid:::::1514977035::::Mo <....................de>:::::::%0Asig::::997E0330CFD7F06C:1514977035:::::::::::%0Asig::::99733920CFD7F06C:1503385191:::::::::::%0Asub::4096:1:FB7005230B77339A:1504784902:1611053302::::::::::%0Asub::4096:1:9508F7A793326632:1504785334:1613350642::::::::::%0A 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- END 2020-01-17 11:14:44 dirmngr[8501.6] resolve_dns_addr for 'keys.openpgp.org': 'keys.openpgp.org' [already known] 2020-01-17 11:14:44 dirmngr[8501.6] resolve_dns_addr for 'keys.openpgp.org': 'keys.openpgp.org' [already known] 2020-01-17 11:14:44 dirmngr[8501.6] number of system provided CAs: 142 2020-01-17 11:14:44 dirmngr[8501.6] error creating socket: Address family not supported by protocol 2020-01-17 11:14:44 dirmngr[8501.6] error connecting to 'https://keys.openpgp.org:443': Address family not supported by protocol 2020-01-17 11:14:44 dirmngr[8501.6] marking host 'keys.openpgp.org' as dead 2020-01-17 11:14:44 dirmngr[8501.6] host 'keys.openpgp.org' marked as dead 2020-01-17 11:14:44 dirmngr[8501.6] command 'KS_PUT' failed: No keyserver available 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> ERR 167772346 No keyserver available <Dirmngr> 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 <- BYE 2020-01-17 11:14:44 dirmngr[8501.6] DBG: chan_6 -> OK closing connection 2020-01-17 11:14:44 dirmngr[8501.6] handler for fd 6 terminated
$ cat ~/.gnupg/dirmngr.conf log-file /tmp/dirmgr.log debug-level guru
$ cat ~/.gnupg/gpg.conf #keyserver hkps://hkps.pool.sks-keyservers.net:443 keyserver hkps://keys.openpgp.org keyserver-options auto-key-retrieve include-revoked use-agent keyid-format 0xlong