linux – 卸载后无法安装Samba?

前端之家收集整理的这篇文章主要介绍了linux – 卸载后无法安装Samba?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经删除了samba:
apt-get --purge remove samba

然后在转到Samba目录后使用rm *.*手动删除smb.conf.

现在,当我尝试再次安装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!

我无法理解为什么会这样.请帮忙

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

root     25793  0.0  0.0   3088   716 pts/0    R+   09:17   0:00 grep samba

不知道该怎么办?

编辑@马修

现在有以下错误
处理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)

我已经删除了smb.cnf文件

解决方法

我想这是因为你只卸载了samba并清除了配置文件,所以有些东西保持安装且没有配置.

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

sudo dpkg -P samba samba-common smbclient
sudo rm -f /etc/rc*.d/*samba /etc/init.d/samba

之前用sudo apt-get install samba重新安装

猜你在找的Linux相关文章