Package: dirmngr Version: 2.1.21-2 Severity: normal Dear Maintainer,
running Debian in a chroot enviroment in an ipv4 only environment, i.e. on top of a system that runs a kernel without ipv6 support loaded --recv-keys and --send-keys failed with gpg: keyserver send failed: Address family not supported by protocol The problem can be solved by enabling ipv6 in the host kernel (in my case I just needed to run 'modprobe ipv6'). Debug output of programs: > gpg-connect-agent --dirmngr 'keyserver --hosttable' /bye gpg-connect-agent: no running Dirmngr - starting '/usr/bin/dirmngr' gpg-connect-agent: waiting for the dirmngr to come up ... (5s) gpg-connect-agent: connection to the dirmngr established S # hosttable (idx, ipv6, ipv4, dead, name, time): OK I've also tried (debug log shortened). > gpg -vv --debug-all --keyserver keyring.debian.org --send-keys 1530B71F gpg: reading options from '*/.gnupg/gpg.conf' gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing ipc clock lookup extprog gpg: DBG: [not enabled in the source] start gpg: DBG: chan_3 <- # Home: ...gnupg gpg: DBG: chan_3 <- # Config: [none] gpg: DBG: chan_3 <- OK Dirmngr 2.1.18 at your service gpg: DBG: connection to the dirmngr established gpg: DBG: chan_3 -> GETINFO version gpg: DBG: chan_3 <- D 2.1.18 gpg: DBG: chan_3 <- OK gpg: DBG: chan_3 -> KEYSERVER --clear hkp://keyring.debian.org gpg: DBG: chan_3 <- OK gpg: DBG: chan_3 -> KEYSERVER gpg: DBG: chan_3 <- S KEYSERVER hkp://keyring.debian.org gpg: DBG: chan_3 <- OK gpg: DBG: [not enabled in the source] keydb_new gpg: DBG: [not enabled in the source] keydb_search enter gpg: DBG: keydb_search: 1 search descriptions: gpg: DBG: keydb_search 0: SHORT_KID: '1530B71F' gpg: DBG: keydb_search: searching keyring (resource 0 of 1) gpg: DBG: keyring_search: need_uid = 0; need_words = 0; need_keyid = 1; need_fpr = 0; any_skip = 0 gpg: DBG: fd_cache_open (*/gnupg/pubring.gpg) not cached gpg: DBG: iobuf-2.0: open '*/.gnupg/pubring.gpg' desc=file_filter(fd) fd=4 gpg: DBG: keyring_search: initializing offset table. (need_keyid: 1 => 1) gpg: DBG: keyring_search: searching from start of resource. gpg: DBG: iobuf-2.0: underflow: buffer size: 8192; still buffered: 0 => space for 8192 bytes gpg: DBG: iobuf-2.0: underflow: A->FILTER (8192 bytes) gpg: DBG: iobuf-2.0: A->FILTER() returned rc=0 (ok), read 8192 bytes gpg: DBG: parse_packet(iob=2): type=6 length=269 (search.../../g10/keyring.c.1133) gpg: DBG: free_packet() type=6 ... gpg: DBG: keyring_search: packet starting at offset 5884 matched descriptor 0 gpg: DBG: keyring_search: returning success gpg: DBG: free_packet() type=6 gpg: DBG: keydb_search: searched keyring (resource 0 of 1) => Success gpg: DBG: [not enabled in the source] keydb_search leave (found) gpg: DBG: [not enabled in the source] keydb_get_keybock enter gpg: DBG: fd_cache_open (*/.gnupg/pubring.gpg) not cached gpg: DBG: iobuf-3.0: open '*/.gnupg/pubring.gpg' desc=file_filter(fd) fd=5 gpg: DBG: iobuf-3.0: underflow: buffer size: 8192; still buffered: 0 => space for 8192 bytes gpg: DBG: iobuf-3.0: underflow: A->FILTER (8192 bytes) gpg: DBG: iobuf-3.0: A->FILTER() returned rc=0 (ok), read 8192 bytes gpg: DBG: parse_packet(iob=3): type=6 length=525 (parse.../../g10/keyring.c.413) ... gpg: DBG: iobuf-3.0: underflow: buffer size: 8192; still buffered: 0 => space for 8192 bytes gpg: DBG: iobuf-3.0: underflow: A->FILTER (8192 bytes) gpg: DBG: iobuf-3.0: A->FILTER() returned rc=0 (ok), read 8192 bytes gpg: DBG: parse_packet(iob=3): type=12 length=2 (parse.../../g10/keyring.c.413) gpg: DBG: free_packet() type=12 ... gpg: DBG: free_packet() type=6 gpg: DBG: iobuf-3.0: close 'file_filter(fd)' gpg: DBG: /home/gerddie/.gnupg/pubring.gpg: close fd/handle 5 gpg: DBG: fd_cache_close (/home/gerddie/.gnupg/pubring.gpg) new slot created gpg: DBG: [not enabled in the source] keydb_get_keyblock leave gpg: DBG: build_packet() type=6 gpg: DBG: iobuf-4.0: close '?' gpg: DBG: build_packet() type=13 gpg: DBG: build_packet() type=2 gpg: DBG: iobuf-5.0: close '?' ... gpg: DBG: increasing temp iobuf from 8192 to 16384 gpg: DBG: iobuf-21.0: close '?' gpg: DBG: build_packet() type=14 ... gpg: DBG: */.gnupg/pubring.gpg: close fd/handle 4 gpg: DBG: fd_cache_close (*/.gnupg/pubring.gpg) new slot created gpg: DBG: iobuf-1.0: close '?' gpg: sending key 02541A371530B71F to hkp://keyring.debian.org gpg: DBG: iobuf-26.0: close '?' gpg: DBG: rsa_verify data:+01ff... gpg: DdBG:rsa_verify sig:+7279bd... gpg: DBG: rsa_verify n:+c3e31b... gpg: DBG: rsa_verify e:+010001... gpg: DBG: rsa_verify cmp:+01fff... gpg: DBG: rsa_verify => Good gpg: DBG: chan_3 -> KS_PUT gpg: DBG: chan_3 <- INQUIRE KEYBLOCK gpg: DBG: chan_3 -> [ 44 20 99 ...(982 byte(s) skipped) ] gpg: DBG: chan_3 -> [ 44 20 3d ...(982 byte(s) skipped) ] ... gpg: DBG: chan_3 -> END gpg: DBG: chan_3 <- INQUIRE KEYBLOCK_INFO gpg: DBG: chan_3 -> D pub::4096:1:02541A371530B71F:1395591437:1595083809::::::::::%0Auid::::: 1500475809::::Gert Wollny (DM key) <gw.foss...@gmail.com>:...1437::: gpg: DBG: chan_3 -> D ::::::::%0Asub::2048:1:F81E368B9B26AB98:1445361906:1539969906:::::::::: %0A gpg: DBG: chan_3 -> END gpg: DBG: chan_3 <- ERR 167804933 Address family not supported by protocol <Dirmngr> gpg: DBG: free_packet() type=6 gpg: DBG: free_packet() type=13 ... gpg: DBG: free_packet() type=14 gpg: DBG: free_packet() type=2 gpg: keyserver send failed: Address family not supported by protocol gpg: keyserver send failed: Address family not supported by protocol gpg: DBG: chan_3 -> BYE gpg: DBG: [not enabled in the source] stop gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0 outmix=0 getlvl1=0/0 getlvl2=0/0 gpg: secmem usage: 0/65536 bytes in 0 blocks best regards, Gert -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.11.12-gentoo-radeon (SMP w/6 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: unable to detect Versions of packages dirmngr depends on: ii adduser 3.115 ii libassuan0 2.4.3-2 ii libc6 2.24-14 ii libgcrypt20 1.7.8-2 ii libgnutls30 3.5.14-2 ii libgpg-error0 1.27-3 ii libksba8 1.3.5-2 ii libldap-2.4-2 2.4.45+dfsg-1 ii libnpth0 1.5-2 ii lsb-base 9.20161125 Versions of packages dirmngr recommends: ii gnupg 2.1.21-2 Versions of packages dirmngr suggests: pn dbus-user-session <none> ii libpam-systemd 234-2 pn pinentry-gnome3 <none> pn tor <none> -- no debconf information