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
You have a incompatible shared library in /usr/local. That was installed separately, not as part of a Debian package (Debian packages are not allowed to install to /usr/local). You should remove it, and any other related shared libraries in /usr/local, uninstall all SAMBA packages, then reinstall
Note that the grep result means no process containing "samba" is executing. Only the grep is running; I know this looks a little confusing.
EDIT:
Okay, try:
This removes a shared library that was separately installed to /usr/local. You may have others there, but you removing the wrong ones could break your system.
This removes all samba-related packages.
Now, reinstall what you need. E.g.:
EDIT 2:
Nikolaidis is right. Manually removing all the SAMBA config files was a mistake. Do:
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:
before anything and reinstall with
sudo apt-get install samba
try
ps aux | grep samba
. Did you stop the previous running instance of samba ?Try
ps aux | grep smbd
The process names you should expect to find when running Samba are
smbd
andnmbd
, notsamba
.You did run
apt-get --purge remove samba
to get rid of your previous Samba installation. But you did not tell which command you used to re-install Samba. So I can only guess where your real problem comes from, and what the possible solution is.Should you want to install it from your official Debian software repositories, then use the following sequence:
apt-get update
(This brings your system's local knowledge about all currently available software packages up to date. This is important!)apt-get install samba smbclient
(This does not only install Samba and the Samba client utils, but it also brings all 'dependencies' up to date.)If this does not help, then run
dpkg --configure -a
(This will try to repair a damaged SW package database.)and repeat the
apt-get install ...
command. If this did not help, then rundpkg --force-confmiss --configure samba
(This will install missing config files)and repeat the
apt-get install ...
command.I fixed my issue by running the following commands: