Ack to all that was said, this needs more info. But furthermore we know the command it likely runs, the message you see before the issue is from the maintainer script [1]. Therefore you could try to isolate the issue a bit and see if this alone will trigger the issue:
testparm -d1 --suppress-prompt In the good case it should print the combined samba config, which might be interesting to share. But even better - if it does reproduce the issues, you can look a bit more closer. Please check if all of the following then matches (which is from a fully updated focal system): root@f:~# which testparm /usr/bin/testparm root@f:~# dpkg -S /usr/bin/testparm samba-common-bin: /usr/bin/testparm root@f:~# ldd /usr/bin/testparm linux-vdso.so.1 (0x00007ffd4d5fa000) libsecrets3.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsecrets3.so.0 (0x0000776d132c7000) libcmdline.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcmdline.so.0 (0x0000776d132be000) libreplace.so.0 => /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0 (0x0000776d132b9000) libsmbconf.so.0 => /lib/x86_64-linux-gnu/libsmbconf.so.0 (0x0000776d1320d000) libsamba-errors.so.1 => /lib/x86_64-linux-gnu/libsamba-errors.so.1 (0x0000776d130c1000) libsamba-util.so.0 => /lib/x86_64-linux-gnu/libsamba-util.so.0 (0x0000776d1304c000) libsamba-sockets.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0 (0x0000776d1302f000) libsamba-credentials.so.1 => /lib/x86_64-linux-gnu/libsamba-credentials.so.1 (0x0000776d13015000) libsamba-hostconfig.so.0 => /lib/x86_64-linux-gnu/libsamba-hostconfig.so.0 (0x0000776d12fe6000) libsamba-debug.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0 (0x0000776d12fdb000) libserver-role.so.0 => /usr/lib/x86_64-linux-gnu/samba/libserver-role.so.0 (0x0000776d12fd6000) libtalloc.so.2 => /lib/x86_64-linux-gnu/libtalloc.so.2 (0x0000776d12fc4000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x0000776d12f9f000) libpopt.so.0 => /lib/x86_64-linux-gnu/libpopt.so.0 (0x0000776d12f91000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000776d12d9f000) libdbwrap.so.0 => /usr/lib/x86_64-linux-gnu/samba/libdbwrap.so.0 (0x0000776d12d91000) libndr.so.2 => /lib/x86_64-linux-gnu/libndr.so.2 (0x0000776d12d74000) libcliauth.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcliauth.so.0 (0x0000776d12d5c000) libsamba-security.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0 (0x0000776d12d37000) libutil-tdb.so.0 => /usr/lib/x86_64-linux-gnu/samba/libutil-tdb.so.0 (0x0000776d12d32000) libkrb5samba.so.0 => /usr/lib/x86_64-linux-gnu/samba/libkrb5samba.so.0 (0x0000776d12d22000) libgenrand.so.0 => /usr/lib/x86_64-linux-gnu/samba/libgenrand.so.0 (0x0000776d12d1d000) libtime-basic.so.0 => /usr/lib/x86_64-linux-gnu/samba/libtime-basic.so.0 (0x0000776d12d18000) libcom_err-samba4.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcom_err-samba4.so.0 (0x0000776d12d13000) libsamba3-util.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamba3-util.so.0 (0x0000776d12d04000) libkrb5-samba4.so.26 => /usr/lib/x86_64-linux-gnu/samba/libkrb5-samba4.so.26 (0x0000776d12c92000) libndr-standard.so.0 => /lib/x86_64-linux-gnu/libndr-standard.so.0 (0x0000776d12927000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x0000776d1290d000) libsmbd-shim.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0 (0x0000776d12908000) libinterfaces.so.0 => /usr/lib/x86_64-linux-gnu/samba/libinterfaces.so.0 (0x0000776d12901000) libsocket-blocking.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsocket-blocking.so.0 (0x0000776d128fc000) libtevent-util.so.0 => /lib/x86_64-linux-gnu/libtevent-util.so.0 (0x0000776d128f5000) libmessages-util.so.0 => /usr/lib/x86_64-linux-gnu/samba/libmessages-util.so.0 (0x0000776d128f0000) libsys-rw.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsys-rw.so.0 (0x0000776d128eb000) libtalloc-report-printf.so.0 => /usr/lib/x86_64-linux-gnu/samba/libtalloc-report-printf.so.0 (0x0000776d128e6000) libutil-reg.so.0 => /usr/lib/x86_64-linux-gnu/samba/libutil-reg.so.0 (0x0000776d128df000) libiov-buf.so.0 => /usr/lib/x86_64-linux-gnu/samba/libiov-buf.so.0 (0x0000776d128da000) libCHARSET3.so.0 => /usr/lib/x86_64-linux-gnu/samba/libCHARSET3.so.0 (0x0000776d128d5000) libmessages-dgm.so.0 => /usr/lib/x86_64-linux-gnu/samba/libmessages-dgm.so.0 (0x0000776d128c7000) libserver-id-db.so.0 => /usr/lib/x86_64-linux-gnu/samba/libserver-id-db.so.0 (0x0000776d128c2000) libtdb-wrap.so.0 => /usr/lib/x86_64-linux-gnu/samba/libtdb-wrap.so.0 (0x0000776d128bd000) libutil-setid.so.0 => /usr/lib/x86_64-linux-gnu/samba/libutil-setid.so.0 (0x0000776d128b6000) libtevent.so.0 => /lib/x86_64-linux-gnu/libtevent.so.0 (0x0000776d128a0000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x0000776d12884000) liblber-2.4.so.2 => /lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x0000776d12873000) libldap_r-2.4.so.2 => /lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x0000776d1281d000) libtdb.so.1 => /lib/x86_64-linux-gnu/libtdb.so.1 (0x0000776d12803000) libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x0000776d127f8000) libicui18n.so.66 => /lib/x86_64-linux-gnu/libicui18n.so.66 (0x0000776d124f9000) libicuuc.so.66 => /lib/x86_64-linux-gnu/libicuuc.so.66 (0x0000776d12313000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x0000776d12264000) libndr-nbt.so.0 => /lib/x86_64-linux-gnu/libndr-nbt.so.0 (0x0000776d1223a000) libsamdb-common.so.0 => /usr/lib/x86_64-linux-gnu/samba/libsamdb-common.so.0 (0x0000776d12206000) libgssapi-samba4.so.2 => /usr/lib/x86_64-linux-gnu/samba/libgssapi-samba4.so.2 (0x0000776d121d0000) libldbsamba.so.0 => /usr/lib/x86_64-linux-gnu/samba/libldbsamba.so.0 (0x0000776d121a0000) libauthkrb5.so.0 => /usr/lib/x86_64-linux-gnu/samba/libauthkrb5.so.0 (0x0000776d12185000) libldb.so.2 => /lib/x86_64-linux-gnu/libldb.so.2 (0x0000776d1214f000) libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x0000776d11f79000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x0000776d11f71000) /lib64/ld-linux-x86-64.so.2 (0x0000776d132f0000) libasn1util.so.0 => /usr/lib/x86_64-linux-gnu/samba/libasn1util.so.0 (0x0000776d11f68000) libndr-samba.so.0 => /usr/lib/x86_64-linux-gnu/samba/libndr-samba.so.0 (0x0000776d11e0d000) libasn1-samba4.so.8 => /usr/lib/x86_64-linux-gnu/samba/libasn1-samba4.so.8 (0x0000776d11d8e000) libwind-samba4.so.0 => /usr/lib/x86_64-linux-gnu/samba/libwind-samba4.so.0 (0x0000776d11d62000) libroken-samba4.so.19 => /usr/lib/x86_64-linux-gnu/samba/libroken-samba4.so.19 (0x0000776d11d53000) libhcrypto-samba4.so.5 => /usr/lib/x86_64-linux-gnu/samba/libhcrypto-samba4.so.5 (0x0000776d11d1c000) libhx509-samba4.so.5 => /usr/lib/x86_64-linux-gnu/samba/libhx509-samba4.so.5 (0x0000776d11cd1000) libheimbase-samba4.so.1 => /usr/lib/x86_64-linux-gnu/samba/libheimbase-samba4.so.1 (0x0000776d11ccb000) libmsghdr.so.0 => /usr/lib/x86_64-linux-gnu/samba/libmsghdr.so.0 (0x0000776d11cc4000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x0000776d11ca8000) libsasl2.so.2 => /lib/x86_64-linux-gnu/libsasl2.so.2 (0x0000776d11c8b000) libgssapi.so.3 => /lib/x86_64-linux-gnu/libgssapi.so.3 (0x0000776d11c46000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x0000776d11a64000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x0000776d11913000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x0000776d118f8000) libicudata.so.66 => /lib/x86_64-linux-gnu/libicudata.so.66 (0x0000776d0fe37000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x0000776d0fe2d000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x0000776d0fe04000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x0000776d0fde3000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x0000776d0fcc3000) libflag-mapping.so.0 => /usr/lib/x86_64-linux-gnu/samba/libflag-mapping.so.0 (0x0000776d0fcbe000) libcli-ldap-common.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcli-ldap-common.so.0 (0x0000776d0fcb4000) libcommon-auth.so.0 => /usr/lib/x86_64-linux-gnu/samba/libcommon-auth.so.0 (0x0000776d0fca5000) libndr-krb5pac.so.0 => /lib/x86_64-linux-gnu/libndr-krb5pac.so.0 (0x0000776d0fc93000) libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x0000776d0fb5b000) libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x0000776d0fb3a000) libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x0000776d0f9b8000) libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x0000776d0f9a2000) libnettle.so.7 => /lib/x86_64-linux-gnu/libnettle.so.7 (0x0000776d0f968000) libhogweed.so.5 => /lib/x86_64-linux-gnu/libhogweed.so.5 (0x0000776d0f931000) libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x0000776d0f8ab000) libheimntlm.so.0 => /lib/x86_64-linux-gnu/libheimntlm.so.0 (0x0000776d0f89f000) libkrb5.so.26 => /lib/x86_64-linux-gnu/libkrb5.so.26 (0x0000776d0f80c000) libasn1.so.8 => /lib/x86_64-linux-gnu/libasn1.so.8 (0x0000776d0f766000) libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x0000776d0f75f000) libhcrypto.so.4 => /lib/x86_64-linux-gnu/libhcrypto.so.4 (0x0000776d0f725000) libroken.so.18 => /lib/x86_64-linux-gnu/libroken.so.18 (0x0000776d0f70c000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x0000776d0f6e9000) libMESSAGING-SEND.so.0 => /usr/lib/x86_64-linux-gnu/samba/libMESSAGING-SEND.so.0 (0x0000776d0f6e4000) libjansson.so.4 => /lib/x86_64-linux-gnu/libjansson.so.4 (0x0000776d0f6d5000) libffi.so.7 => /lib/x86_64-linux-gnu/libffi.so.7 (0x0000776d0f6c7000) libwind.so.0 => /lib/x86_64-linux-gnu/libwind.so.0 (0x0000776d0f69d000) libheimbase.so.1 => /lib/x86_64-linux-gnu/libheimbase.so.1 (0x0000776d0f68b000) libhx509.so.5 => /lib/x86_64-linux-gnu/libhx509.so.5 (0x0000776d0f63d000) libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x0000776d0f514000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x0000776d0f4d7000 root@f:~# for lib in $(ldd /usr/bin/testparm | awk '/ => / {print $3}'); do libt="$(readlink -f $lib)"; md5sum $libt; done 7c82e06454470d043058b88039065986 /usr/lib/x86_64-linux-gnu/samba/libsecrets3.so.0 97cf0be7fc2cf7fd73b18e798a9352a6 /usr/lib/x86_64-linux-gnu/samba/libcmdline.so.0 7a2c9a9fed8e913b8a131ac6169af7b2 /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0 1fb29eae42a15c72ab176e2f1c2f3728 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0.0.1 157dc41e1cacb0452695c9037dcd2ee4 /usr/lib/x86_64-linux-gnu/libsamba-errors.so.1 81022ac20ae4053dddd2737f5878e89c /usr/lib/x86_64-linux-gnu/libsamba-util.so.0.0.1 3a308a225c9569bf7f879cda47fe4ebd /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0 6fc466c7f807d93e6ad3fe20b4b3964d /usr/lib/x86_64-linux-gnu/libsamba-credentials.so.1.0.0 549a76a8580f5a3ee3e8ff1cb2805dfc /usr/lib/x86_64-linux-gnu/libsamba-hostconfig.so.0.0.1 0417c3de6c5391130fc161e6ed689060 /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0 68f0cd5221c50c1091457fa68a497b09 /usr/lib/x86_64-linux-gnu/samba/libserver-role.so.0 dbbc2498b5b8466dc8bb9380b813c86d /usr/lib/x86_64-linux-gnu/libtalloc.so.2.3.3 b7e503d73d410880406117bda2499676 /usr/lib/x86_64-linux-gnu/libpthread-2.31.so 77fcb53294414ac8e502fb4cbd6adb2e /usr/lib/x86_64-linux-gnu/libpopt.so.0.0.0 43f465780e27467000a85d8dee3d84b7 /usr/lib/x86_64-linux-gnu/libc-2.31.so 2f06f0ee50ac312bc89c6a0a8fb91503 /usr/lib/x86_64-linux-gnu/samba/libdbwrap.so.0 36af9463d56cf3fee32493b4938f42b9 /usr/lib/x86_64-linux-gnu/libndr.so.2.0.0 239c03c1a1dc0fa24200a931a5a40095 /usr/lib/x86_64-linux-gnu/samba/libcliauth.so.0 47aa064da72442c64df0aa7235ad68fc /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0 37064562c18637a1e1024b339e38f964 /usr/lib/x86_64-linux-gnu/samba/libutil-tdb.so.0 b5016e4f975446baf2ec5917c2e774aa /usr/lib/x86_64-linux-gnu/samba/libkrb5samba.so.0 57f745467f1b1194cfd86b045ebca158 /usr/lib/x86_64-linux-gnu/samba/libgenrand.so.0 efec45acc518449355a5fae6942dfa32 /usr/lib/x86_64-linux-gnu/samba/libtime-basic.so.0 f388d88cef4cf60d292d77ad4bef97c8 /usr/lib/x86_64-linux-gnu/samba/libcom_err-samba4.so.0.25 d9673c7ec7780cc802771350c2ae459e /usr/lib/x86_64-linux-gnu/samba/libsamba3-util.so.0 ab54bbbf87fda26f8530f95263d5f44e /usr/lib/x86_64-linux-gnu/samba/libkrb5-samba4.so.26.0.0 1823cee5539ff02100a1d01dd3068cad /usr/lib/x86_64-linux-gnu/libndr-standard.so.0.0.1 f9bd01f54a362400a5dc1db9dd1fe065 /usr/lib/x86_64-linux-gnu/libbsd.so.0.10.0 ad54cf93b4edf981c4402cc4ab9c6689 /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0 05b285439283e717cba70e79f7b45912 /usr/lib/x86_64-linux-gnu/samba/libinterfaces.so.0 453d3a0df48715cf3bf23bf32a2d0d05 /usr/lib/x86_64-linux-gnu/samba/libsocket-blocking.so.0 a411a2968afe956eec71880538865d9b /usr/lib/x86_64-linux-gnu/libtevent-util.so.0.0.1 dc2b4424e63403960d9adaf30998b2ea /usr/lib/x86_64-linux-gnu/samba/libmessages-util.so.0 5409cbd4bea44e83160ac4ba2f383c81 /usr/lib/x86_64-linux-gnu/samba/libsys-rw.so.0 5c6b1c56cf740b01796a9b6b8e412171 /usr/lib/x86_64-linux-gnu/samba/libtalloc-report-printf.so.0 767a7c693ca8fd8372cda6b4f6a76286 /usr/lib/x86_64-linux-gnu/samba/libutil-reg.so.0 2ac128e37fff7e67435aa64f91bb6636 /usr/lib/x86_64-linux-gnu/samba/libiov-buf.so.0 57a37d0dcef9dafbd21d27a458851d0a /usr/lib/x86_64-linux-gnu/samba/libCHARSET3.so.0 4f6d2a50ca435a4e9631ef1cd8e8c7ff /usr/lib/x86_64-linux-gnu/samba/libmessages-dgm.so.0 4b14df0cf38965295ef40dcc8971afff /usr/lib/x86_64-linux-gnu/samba/libserver-id-db.so.0 2b82a3f8c5754c01f64cfe829bb1d13c /usr/lib/x86_64-linux-gnu/samba/libtdb-wrap.so.0 657da8763a56c8c8d70f5fcdf60faaa3 /usr/lib/x86_64-linux-gnu/samba/libutil-setid.so.0 9b360fb4bef897a4be81f2ef72327ba5 /usr/lib/x86_64-linux-gnu/libtevent.so.0.11.0 b0e866054c1da5f8b28bf45242861f76 /usr/lib/x86_64-linux-gnu/libz.so.1.2.11 d666a4ff05a724e1fedf5c683d8ad820 /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.12 24e444170d7c4170a5f08fcea450bdb7 /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.12 51c64d01d5e117003feb7e19f8d20f89 /usr/lib/x86_64-linux-gnu/libtdb.so.1.4.5 44d4ec0f67e7c481ee67261c79233c0e /usr/lib/x86_64-linux-gnu/libcap.so.2.32 053f6f9d58e59a75509e4bf5e2c21f96 /usr/lib/x86_64-linux-gnu/libicui18n.so.66.1 847a1dc2d266d158449beb5b4229ba45 /usr/lib/x86_64-linux-gnu/libicuuc.so.66.1 fe3f3cdc7915bbe7d2a8bec0689ff3d0 /usr/lib/x86_64-linux-gnu/libsystemd.so.0.28.0 3b85bcaf8f6d84102fb7fab5fdc3df59 /usr/lib/x86_64-linux-gnu/libndr-nbt.so.0.0.1 da2e5eb1b721766f01608d81972c1612 /usr/lib/x86_64-linux-gnu/samba/libsamdb-common.so.0 c66f90768d02b8e5b81783f2802ef6c7 /usr/lib/x86_64-linux-gnu/samba/libgssapi-samba4.so.2.0.0 16f31215618e9482d82ffe869fe9c517 /usr/lib/x86_64-linux-gnu/samba/libldbsamba.so.0 2c5b8a9760d92153a09aae0a9dfd7845 /usr/lib/x86_64-linux-gnu/samba/libauthkrb5.so.0 c917244aea1d40744264e22206a562b6 /usr/lib/x86_64-linux-gnu/libldb.so.2.4.4 8f63ecd84d232282056d291aa175c8bc /usr/lib/x86_64-linux-gnu/libgnutls.so.30.27.0 bc02c8535c9a5c39348378f1dd224f6b /usr/lib/x86_64-linux-gnu/libdl-2.31.so da2f92f7f0597f393616ad30e54859ff /usr/lib/x86_64-linux-gnu/samba/libasn1util.so.0 d13a162d76e8ee0b18059aac339f0fde /usr/lib/x86_64-linux-gnu/samba/libndr-samba.so.0 5e50857420d0c7da76f0888f11064873 /usr/lib/x86_64-linux-gnu/samba/libasn1-samba4.so.8.0.0 f2d34f7e27c337be2e9ba750eeeac05c /usr/lib/x86_64-linux-gnu/samba/libwind-samba4.so.0.0.0 8a1b0b905abbce8293e462cef4a1d1c9 /usr/lib/x86_64-linux-gnu/samba/libroken-samba4.so.19.0.1 bee2af456ed070a49ed4553ea6bf6193 /usr/lib/x86_64-linux-gnu/samba/libhcrypto-samba4.so.5.0.1 2dd4b783761e28f6577846facea73835 /usr/lib/x86_64-linux-gnu/samba/libhx509-samba4.so.5.0.0 e444675f330c3206c871de74f8e4b460 /usr/lib/x86_64-linux-gnu/samba/libheimbase-samba4.so.1.0.0 e8bee4c93ad57d5da0e63f6e44d64111 /usr/lib/x86_64-linux-gnu/samba/libmsghdr.so.0 10b870fb287cca7cecc7fa978e76a102 /usr/lib/x86_64-linux-gnu/libresolv-2.31.so ccbce6e4129c8da217a6b306a127e9dd /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25 0499760354e500013692f9960dc5ea91 /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0 67f6926ffa700085304128acde137521 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 499d5bb4cbf21d2b4b669dd29d608efd /usr/lib/x86_64-linux-gnu/libm-2.31.so 2e871b94a10d6d2b7e6b7bf10976092e /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 2236674edbe8efc94f2f681a6e373cdb /usr/lib/x86_64-linux-gnu/libicudata.so.66.1 639d6e6f911034bc7ff2837c2a1f1d3d /usr/lib/x86_64-linux-gnu/librt-2.31.so decbad6c89dfa9df160d8f76391cfeda /usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4 aa36c7a9dba79696468af2bb94e24b28 /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2 626acd41b2a5c05f0530bf33b8de93fd /usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5 587f8a6c1627ff697415fb86a66aa2a5 /usr/lib/x86_64-linux-gnu/samba/libflag-mapping.so.0 cdd093fae48fe815e9da163914d1b71d /usr/lib/x86_64-linux-gnu/samba/libcli-ldap-common.so.0 ee941d0de6750191fecc0ffb12fe7ef3 /usr/lib/x86_64-linux-gnu/samba/libcommon-auth.so.0 ac91759ee79939a3ae6b63241110f3d5 /usr/lib/x86_64-linux-gnu/libndr-krb5pac.so.0.0.1 aa3372853fc4c2c68e594ffa28c7a8eb /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.3.0 0036c39e829b372cbd1e7da03bab588a /usr/lib/x86_64-linux-gnu/libidn2.so.0.3.6 d22b1275d14728576ecc98897105fe5b /usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0 70e766ec2534e173a403903c58fc607d /usr/lib/x86_64-linux-gnu/libtasn1.so.6.6.0 0b61baabb571b97ed82438426fa687cd /usr/lib/x86_64-linux-gnu/libnettle.so.7.0 31f755b8f7dc56b740865113ff7d9980 /usr/lib/x86_64-linux-gnu/libhogweed.so.5.0 bfeb3d86440875662b4c5cf59f3d0440 /usr/lib/x86_64-linux-gnu/libgmp.so.10.4.0 58a33ee65790c265237981f63a878478 /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0 e53dfca80046ece072cef7d742585af4 /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0 eca6c45ec7b04af26265bb13e02f4cc5 /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0 4034037df7190bb3aae9bd334d68e889 /usr/lib/x86_64-linux-gnu/libcom_err.so.2.1 9a566d9ed20ba7c24b85efaa64c8a4cd /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0 5b9d92fa04e45ba638f64c886ffe572a /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0 adbccb91c7693e189fb09736810374ed /usr/lib/x86_64-linux-gnu/libgpg-error.so.0.28.0 7f5bde8da91c2c253268cd7519c1255e /usr/lib/x86_64-linux-gnu/samba/libMESSAGING-SEND.so.0 f9609ec812e7f892dc1e4d209aaf8b6b /usr/lib/x86_64-linux-gnu/libjansson.so.4.11.1 9fa9dd63d62116e6815ac44c3a746d70 /usr/lib/x86_64-linux-gnu/libffi.so.7.1.0 2f93d291cf4994f1b4528e60931fb60e /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0 a6068644a94fd8971dbc431e6a18e12f /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0 1bf782cf3c285a694900c2ad2c24b192 /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0 e63ae74043880912668d202032da5780 /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 94b041a3fcd7862710e50ee7036dd270 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0 All involved packages should (as of today) map to these versions, similar to what John posted. root@f:~# dpkg --no-pager --list $(for lib in $(ldd /usr/bin/testparm | awk '/ => / {print $3}'); do libt="$(readlink -f $lib)"; if ! pkg=$(dpkg -S $libt 2>/dev/null); then pkg=$(dpkg -S ${libt#"/usr"} 2>/dev/null); fi; echo $pkg; done | cut -d: -f1 | sort | uniq | xargs) Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==========================-===============================-============-======================================================================== ii libasn1-8-heimdal:amd64 7.7.0+dfsg-1ubuntu1.4 amd64 Heimdal Kerberos - ASN.1 library ii libbsd0:amd64 0.10.0-1 amd64 utility functions from BSD systems - shared library ii libc6:amd64 2.31-0ubuntu9.16 amd64 GNU C Library: Shared libraries ii libcap2:amd64 1:2.32-1ubuntu0.1 amd64 POSIX 1003.1e capabilities (library) ii libcom-err2:amd64 1.45.5-2ubuntu1.2 amd64 common error description library ii libcrypt1:amd64 1:4.4.10-10ubuntu4 amd64 libcrypt shared library ii libffi7:amd64 3.3-4 amd64 Foreign Function Interface library runtime ii libgcc-s1:amd64 10.5.0-1ubuntu1~20.04 amd64 GCC support library ii libgcrypt20:amd64 1.8.5-5ubuntu1.1 amd64 LGPL Crypto library - runtime library ii libgmp10:amd64 2:6.2.0+dfsg-4ubuntu0.1 amd64 Multiprecision arithmetic library ii libgnutls30:amd64 3.6.13-2ubuntu1.11 amd64 GNU TLS library - main runtime library ii libgpg-error0:amd64 1.37-1 amd64 GnuPG development runtime library ii libgssapi3-heimdal:amd64 7.7.0+dfsg-1ubuntu1.4 amd64 Heimdal Kerberos - GSSAPI support library ii libhcrypto4-heimdal:amd64 7.7.0+dfsg-1ubuntu1.4 amd64 Heimdal Kerberos - crypto library ii libheimbase1-heimdal:amd64 7.7.0+dfsg-1ubuntu1.4 amd64 Heimdal Kerberos - Base library ii libheimntlm0-heimdal:amd64 7.7.0+dfsg-1ubuntu1.4 amd64 Heimdal Kerberos - NTLM support library ii libhogweed5:amd64 3.5.1+really3.5.1-2ubuntu0.2 amd64 low level cryptographic library (public-key cryptos) ii libhx509-5-heimdal:amd64 7.7.0+dfsg-1ubuntu1.4 amd64 Heimdal Kerberos - X509 support library ii libicu66:amd64 66.1-2ubuntu2.1 amd64 International Components for Unicode ii libidn2-0:amd64 2.2.0-2 amd64 Internationalized domain names (IDNA2008/TR46) library ii libjansson4:amd64 2.12-1build1 amd64 C library for encoding, decoding and manipulating JSON data ii libkrb5-26-heimdal:amd64 7.7.0+dfsg-1ubuntu1.4 amd64 Heimdal Kerberos - libraries ii libldap-2.4-2:amd64 2.4.49+dfsg-2ubuntu1.10 amd64 OpenLDAP libraries ii libldb2:amd64 2:2.4.4-0ubuntu0.20.04.2 amd64 LDAP-like embedded database - shared library ii liblz4-1:amd64 1.9.2-2ubuntu0.20.04.1 amd64 Fast LZ compression algorithm library - runtime ii liblzma5:amd64 5.2.4-1ubuntu1.1 amd64 XZ-format compression library ii libnettle7:amd64 3.5.1+really3.5.1-2ubuntu0.2 amd64 low level cryptographic library (symmetric and one-way cryptos) ii libp11-kit0:amd64 0.23.20-1ubuntu0.1 amd64 library for loading and coordinating access to PKCS#11 modules - runtime ii libpopt0:amd64 1.16-14 amd64 lib for parsing cmdline parameters ii libroken18-heimdal:amd64 7.7.0+dfsg-1ubuntu1.4 amd64 Heimdal Kerberos - roken support library ii libsasl2-2:amd64 2.1.27+dfsg-2ubuntu0.1 amd64 Cyrus SASL - authentication abstraction library ii libsqlite3-0:amd64 3.31.1-4ubuntu0.6 amd64 SQLite 3 shared library ii libstdc++6:amd64 10.5.0-1ubuntu1~20.04 amd64 GNU Standard C++ Library v3 ii libsystemd0:amd64 245.4-4ubuntu3.24 amd64 systemd utility library ii libtalloc2:amd64 2.3.3-0ubuntu0.20.04.1 amd64 hierarchical pool based memory allocator ii libtasn1-6:amd64 4.16.0-2 amd64 Manage ASN.1 structures (runtime) ii libtdb1:amd64 1.4.5-0ubuntu0.20.04.1 amd64 Trivial Database - shared library ii libtevent0:amd64 0.11.0-0ubuntu0.20.04.1 amd64 talloc-based event loop library - shared library ii libunistring2:amd64 0.9.10-2 amd64 Unicode string library for C ii libwbclient0:amd64 2:4.15.13+dfsg-0ubuntu0.20.04.8 amd64 Samba winbind client library ii libwind0-heimdal:amd64 7.7.0+dfsg-1ubuntu1.4 amd64 Heimdal Kerberos - stringprep implementation ii samba-libs:amd64 2:4.15.13+dfsg-0ubuntu0.20.04.8 amd64 Samba core libraries ii zlib1g:amd64 1:1.2.11.dfsg-2ubuntu1.5 amd64 compression library - runtime And finally this command should return that all of them are in the correct state (= no output): root@f:~# dpkg --verify $(for lib in $(ldd /usr/bin/testparm | awk '/ => / {print $3}'); do libt="$(readlink -f $lib)"; if ! pkg=$(dpkg -S $libt 2>/dev/null); then pkg=$(dpkg -S ${libt#"/usr"} 2>/dev/null); fi; echo $pkg; done | cut -d: -f1 | sort | uniq | xargs) [1]: https://git.launchpad.net/ubuntu/+source/samba/tree/debian/samba- common-bin.postinst?h=ubuntu/focal-devel#n17 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2091825 Title: unable to install samba: libldbsamba.so.0: undefined symbol To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2091825/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs