我最近开了一个话题这里标题相同,根据此论坛中发布的一个旧问题,它建议我清除 Samba 并重新安装。
gnome-control-center
当我清除 samba 时,我以为一切都已修复,因为我不再有 apt-get 错误,然而,当我意识到我正在使用损坏的 SAMBA 库时,我意识到问题仍然存在。
~ ❯❯❯ gnome-control-center
gnome-control-center: error while loading shared libraries: libaesni-intel.so.0: cannot open shared object file: No such file or directory
~ ❯❯❯ ldd /usr/bin/gnome-control-center
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba3-util.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libmsrpc3.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libutil-cmdline.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libgse.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libdcerpc-samba.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsecrets3.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/liblibcli-lsa3.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libcli-smb-common.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/liblibsmb.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libndr.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libgenrand.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libndr.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libndr.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libtime-basic.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libtalloc-report.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libgenrand.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libCHARSET3.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsocket-blocking.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libutil-setid.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libserver-role.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libtdb-wrap.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsys-rw.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libmessages-util.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libinterfaces.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libiov-buf.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsmb-transport.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libserver-id-db.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libmessages-dgm.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libutil-reg.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libdbwrap.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libutil-tdb.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba3-util.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libcli-smb-common.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libtime-basic.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-util.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-util.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsys-rw.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-util.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libgenrand.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-util.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsocket-blocking.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-util.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-util.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libtime-basic.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libtevent-util.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libndr-standard.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libndr-standard.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libgenrand.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamdb-common.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libdbwrap.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libldbsamba.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libcliauth.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libutil-tdb.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libauthkrb5.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libkrb5samba.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-credentials.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-hostconfig.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libserver-role.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-hostconfig.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamba-hostconfig.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libdcerpc-binding.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libgensec.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libdcerpc-binding.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libdcerpc-binding.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libdcerpc-binding.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libndr-nbt.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libndr-nbt.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libwbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libwinbind-client.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libwbclient.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libauthkrb5.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libgenrand.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-debug.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libcliauth.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libreplace.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamdb-common.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libldbsamba.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libcli-ldap-common.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libkrb5samba.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libsamdb.so.0)
/usr/bin/gnome-control-center: /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0: version `SAMBA_4.11.6_UBUNTU' not found (required by /lib/x86_64-linux-gnu/libndr-krb5pac.so.0)
...
libaesni-intel.so.0 => not found
...
深入研究该问题后,我发现即使清除了 samba,这些库仍然保留/usr/lib/x86_64-linux-gnu/samba
并被其他程序使用。
我已经重新安装了 samba、samba-common-bin 和 samba-libs,但没有解决任何问题。
现在我的问题是,如何在不造成更多破坏的情况下解决这个问题?
为什么 libaesni-intel.so.0 未被检测到?
~ ❯❯❯ uname -a
Linux user 5.11.0-38-generic #42~20.04.1-Ubuntu SMP Tue Sep 28 20:41:07 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
答案1
您必须重新安装提供错过的包裹库文件-intel.so.0 图书馆
sudo apt-get install --reinstall libwbclient0
然后重试启动gnome-control-center
。