尽管我知道一切都是最新的,但我的 samba 库似乎丢失了。我正在运行 Kubuntu 20.10。
以下是终端输出:
priz@prizmatic:~$ sudo apt install samba-libs -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
samba-libs is already the newest version (2:4.12.5+dfsg-3ubuntu4.1).
samba-libs set to manually installed.
The following packages were automatically installed and are no longer required:
libipa-hbac0 libkf5konq-data libkf5konq6
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba-common-bin (2:4.12.5+dfsg-3ubuntu4.1) ...
Checking smb.conf with testparm
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by testparm)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /lib/x86_64-linux-gnu/libsmbconf.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libpopt-samba3.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libsamba-sockets.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libserver-id-db.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libutil-reg.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libCHARSET3.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libmessages-util.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libdbwrap.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /lib/x86_64-linux-gnu/libndr.so.1)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libsamba-security.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /usr/lib/x86_64-linux-gnu/samba/libmessages-dgm.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /lib/x86_64-linux-gnu/libsamba-hostconfig.so.0)
testparm: /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0: version `SAMBA_UTIL_0.0.1' not found (required by /lib/x86_64-linux-gnu/libndr-nbt.so.0)
dpkg: error processing package samba-common-bin (--configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common-bin (= 2:4.12.5+dfsg-3ubuntu4.1); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of winbind:
winbind depends on samba-common-bin (= 2:4.12.5+dfsg-3ubuntu4.1); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package winbind (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
samba-common-bin
samba
winbind
E: Sub-process /usr/bin/dpkg returned an error code (1)
有人能告诉我要安装什么才能让 Samba 正常工作吗?我认为安装程序正在检查某些文件是否存在,如果存在,则不会尝试复制其余文件。但是,这会遗漏一些软件包或文件,这表明 SAMBA_UTIL_0.0.1 存在,或者可能是较新的软件包不再包含某些文件
答案1
是的,我的怀疑是正确的,Groovy 档案包含一个新版本,其中没有一些文件,但这些文件是必需的。从 Focal 档案安装最新版本,然后更新即可解决此问题。
这是我运行的命令
sudo apt install libsmbclient=2:4.11.6+dfsg-0ubuntu1.6 libsmbios-c2=2.4.3-1 python3-samba=2:4.11.6+dfsg-0ubuntu1.6 samba-common-bin=2:4.11.6+dfsg-0ubuntu1.6 samba-common=2:4.11.6+dfsg-0ubuntu1.6 samba-dsdb-modules=2:4.11.6+dfsg-0ubuntu1.6 samba-libs=2:4.11.6+dfsg-0ubuntu1.6 samba-vfs-modules=2:4.11.6+dfsg-0ubuntu1.6 samba=2:4.11.6+dfsg-0ubuntu1.6 smbclient=2:4.11.6+dfsg-0ubuntu1.6 libwbclient0=2:4.11.6+dfsg-0ubuntu1.6 libldb2=2:2.0.10-0ubuntu0.20.04.2 python3-ldb=2:2.0.10-0ubuntu0.20.04.2
然后运行sudo apt upgrade -y
以升级一切。