<div dir="ltr"><div>Hi,</div><div><br></div><div>Interestingly enough got the same problem on ARMHF after moving to bullseye.</div><div><br></div><div>I have version 1.8.7-6 installed over 1.8.4-5+deb10u1</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># cat /var/log/dpkg.log.1 | grep libgcrypt<br>2021-09-07 13:07:54 upgrade libgcrypt20:armhf 1.8.4-5+deb10u1 1.8.7-6<br>2021-09-07 13:07:54 status half-configured libgcrypt20:armhf 1.8.4-5+deb10u1<br>2021-09-07 13:07:54 status unpacked libgcrypt20:armhf 1.8.4-5+deb10u1<br>2021-09-07 13:07:54 status half-installed libgcrypt20:armhf 1.8.4-5+deb10u1<br>2021-09-07 13:07:54 status unpacked libgcrypt20:armhf 1.8.7-6<br>2021-09-07 13:07:54 configure libgcrypt20:armhf 1.8.7-6 <none><br>2021-09-07 13:07:54 status unpacked libgcrypt20:armhf 1.8.7-6<br>2021-09-07 13:07:54 status half-configured libgcrypt20:armhf 1.8.7-6<br>2021-09-07 13:07:54 status installed libgcrypt20:armhf 1.8.7-6</blockquote><div><br></div><div>and confirmed to be OK:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># dpkg -s libgcrypt20<br>Package: libgcrypt20<br>Status: install ok installed<br>Priority: optional<br>Section: libs<br>Installed-Size: 1027<br>Maintainer: Debian GnuTLS Maintainers <<a href="mailto:pkg-gnutls-maint@lists.alioth.debian.org">pkg-gnutls-maint@lists.alioth.debian.org</a>><br>Architecture: armhf<br>Multi-Arch: same<br>Version: 1.8.7-6<br>Depends: libc6 (>= 2.28), libgpg-error0 (>= 1.25)<br>Suggests: rng-tools<br>Description: LGPL Crypto library - runtime library<br> libgcrypt contains cryptographic functions.  Many important free<br> ciphers, hash algorithms and public key signing algorithms have been<br> implemented:<br> .<br> Arcfour, Blowfish, CAST5, DES, AES, Twofish, Serpent, rfc2268 (rc2), SEED,<br> Poly1305, Camellia, ChaCha20, IDEA, Salsa, Blake-2, CRC, MD2, MD4, MD5,<br> RIPE-MD160, SHA-1, SHA-256, SHA-512, SHA3-224, SHA3-256, SHA3-384, SHA3-512,<br> SHAKE128, SHAKE256, Tiger, Whirlpool, DSA, DSA2, ElGamal, RSA, ECC<br> (Curve25519, sec256k1, GOST R 34.10-2001 and GOST R 34.10-2012, etc.)<br>Homepage: <a href="https://directory.fsf.org/project/libgcrypt/">https://directory.fsf.org/project/libgcrypt/</a></blockquote><div><br></div><div>gpg is linking to libgcrypt.so.20</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># ldd  /usr/bin/gpg<br>     linux-vdso.so.1 (0x7ed53000)<br>  /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0x76ec2000)<br>        libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x76e85000)<br>       libbz2.so.1.0 => /lib/arm-linux-gnueabihf/libbz2.so.1.0 (0x76e65000)<br>       libsqlite3.so.0 => /usr/lib/arm-linux-gnueabihf/libsqlite3.so.0 (0x76d39000)<br>       libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0x76c96000)<br>   libreadline.so.8 => /lib/arm-linux-gnueabihf/libreadline.so.8 (0x76c43000)<br> libassuan.so.0 => /usr/lib/arm-linux-gnueabihf/libassuan.so.0 (0x76c23000)<br> libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0x76bf6000)<br>       libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76aa2000)<br>       /lib/ld-linux-armhf.so.3 (0x76ed7000)<br> libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x76a33000)<br>       libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76a07000)<br>   libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x769f3000)<br>     libtinfo.so.6 => /lib/arm-linux-gnueabihf/libtinfo.so.6 (0x769c1000)</blockquote><div><br></div><div>That is pointing to libgcrypt.so.20.0.3</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># ls -al /lib/arm-linux-gnueabihf/libgcrypt.so.20<br>lrwxrwxrwx 1 root root 19 Sep  7 14:30 /lib/arm-linux-gnueabihf/libgcrypt.so.20 -> libgcrypt.so.20.0.3 </blockquote><div><br></div><div>but in the system there also:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># ls -al /usr/lib/arm-linux-gnueabihf/libgcrypt.so.20<br>lrwxrwxrwx 1 root root 19 May 27 18:07 /usr/lib/arm-linux-gnueabihf/libgcrypt.so.20 -> libgcrypt.so.20.2.8</blockquote><div><br></div><div>coming from:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">root@rpi3:~# dpkg -L libgcrypt20<br>/.<br>/usr<br>/usr/lib<br>/usr/lib/arm-linux-gnueabihf<br>/usr/lib/arm-linux-gnueabihf/libgcrypt.so.20.2.8<br>/usr/share<br>/usr/share/doc<br>/usr/share/doc/libgcrypt20<br>/usr/share/doc/libgcrypt20/AUTHORS.gz<br>/usr/share/doc/libgcrypt20/NEWS.gz<br>/usr/share/doc/libgcrypt20/README.gz<br>/usr/share/doc/libgcrypt20/THANKS.gz<br>/usr/share/doc/libgcrypt20/changelog.Debian.gz<br>/usr/share/doc/libgcrypt20/changelog.gz<br>/usr/share/doc/libgcrypt20/copyright<br>/usr/lib/arm-linux-gnueabihf/libgcrypt.so.20</blockquote><div><br></div><div>After removing old lib from /lib/arm-linux-gnueabihf/libgcrypt.so.20, leaving /usr/lib/arm-linux-gnueabihf/libgcrypt.so.20 in place and re-running ldconfig</div><div><br></div><div>I moved from<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># gpg --version<br>gpg: Fatal: libgcrypt is too old (need 1.8.0, have 1.6.3)</blockquote><div><br></div><div>to<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># gpg --version<br>gpg (GnuPG) 2.2.27<br>libgcrypt 1.8.8<br>Copyright (C) 2021 Free Software Foundation, Inc.<br>License GNU GPL-3.0-or-later <<a href="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</a>><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Home: /xxxxxxxx/.gnupg<br>Supported algorithms:<br>Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA<br>Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,<br>        CAMELLIA128, CAMELLIA192, CAMELLIA256<br>Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224<br>Compression: Uncompressed, ZIP, ZLIB, BZIP2</blockquote><br></div><div>This was following an dist-upgrade from Debian 10 to Debian 11.</div><div><br></div><div>IMO problem is coming from libgcrypt moving in Debian 11 from /lib/arm-linux-gnueabihf/ to /usr/lib/arm-linux-gnueabihf/ and leaving old lib behind</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>--</div>Mat</div></div></div></div>