I have removed samba using :
apt-get --purge remove samba
and then Manually removed the smb.conf using rm *.*
after going to the Samba directory.
Now While I trying to install Samba again I am getting the following error:
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!
I am unable understand why this is happening. Please help
Edit:
After trying ps aux | grep samba
getting the follwing response:
root 25793 0.0 0.0 3088 716 pts/0 R+ 09:17 0:00 grep samba
Have no idea what to do with this?
Edit@Matthew
Now Have the follwoing error:
Processing triggers for 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)
I have already removed smb.cnf file
I guess it’s because you uninstalled samba only and wiped out the config file so something stayed installed and without configuration.
I think there are ways to repair, but I would try to reinstall on a “clean” base doing:
sudo dpkg -P samba samba-common smbclient
sudo rm -f /etc/rc*.d/*samba /etc/init.d/samba
before anything and reinstall with sudo apt-get install samba
Check more discussion of this question.