卸载后无法安装 Samba?

Sim*_*ons 5 linux debian samba reinstall

我已经使用以下方法删除了 samba:

apt-get --purge remove samba 
Run Code Online (Sandbox Code Playgroud)

然后rm *.*在进入Samba目录后手动删除smb.conf using 。

现在,当我再次尝试安装 Samba 时,出现以下错误:

Starting Samba daemons: nmbd/usr/sbin/nmbd: /usr/local/lib/libldap_r-2.4.so.2: no version information available (required by /usr/sbin/nmbd)
/usr/sbin/nmbd: /usr/local/lib/liblber-2.4.so.2: no version information available (required by /usr/sbin/nmbd)
 failed!
Run Code Online (Sandbox Code Playgroud)

我无法理解为什么会发生这种情况。请帮忙

编辑:
尝试ps aux | grep samba获得以下响应后:

root     25793  0.0  0.0   3088   716 pts/0    R+   09:17   0:00 grep samba
Run Code Online (Sandbox Code Playgroud)

不知道该怎么办?

编辑@马修

现在有以下错误:处理 man-db 的触发器...

Setting up samba-common (2:3.2.5-4lenny11) ...
Not replacing deleted config file /etc/samba/smb.conf
chmod: cannot access `/etc/samba/smb.conf': No such file or directory
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
 samba depends on samba-common (= 2:3.2.5-4lenny11); however:
  Package samba-common is not configured yet.
dpkg: error processing samba (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 samba-common
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

我已经删除了 smb.cnf 文件

lau*_*ent 2

我猜这是因为你只卸载了 samba 并清除了配置文件,所以有些东西仍然安装但没有配置。

我认为有办法修复,但我会尝试在“干净”的基础上重新安装:

sudo dpkg -P samba samba-common smbclient
sudo rm -f /etc/rc*.d/*samba /etc/init.d/samba
Run Code Online (Sandbox Code Playgroud)

在任何事情之前并重新安装sudo apt-get install samba