Re: Cant Re-install Samba
Hello,
I experiencing a problem where the system doesn't allow me to re-install samba on my Debian machine running etch.
Below is how it started;-
I was learning how to configure samba and found out that i had done everything wrongly therefor I purged samba - apt-get install --purge samba, after I made sure i removed everything with samba with -
YM#find / -name samba
YM# find / -name samba
/usr/share/samba
/etc/dhcp3/dhclient-enter-hooks.d/samba
/etc/pam.d/samba
/var/cache/samba
/var/log/samba
/var/run/samba
then i went on to remove ever thing that i got by-:
YM:/# rmdir /usr/share/samba
rmdir: /usr/share/samba: Directory not empty
YM:/# rm -rf /usr/share/samba
YM:/# rm -rf /etc/pam.d/samba
YM:/# rm -rf /var/log/samba
YM:/# rm -rf /var/run/samba
YM:/# rm -rf /var/cache/samba
after that i trid to install samba and at end it gave me
YM:/# apt-get install samba
Reading package lists... Done
Building dependency tree... Done
Recommended packages:
smbldap-tools
The following NEW packages will be installed:
samba
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B/3262kB of archives.
After unpacking 7836kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package samba.
(Reading database ... 49455 files and directories currently installed.)
Unpacking samba (from .../samba_3.0.24-6etch9_i386.deb) ...
Setting up samba (3.0.24-6etch9) ...
Generating /etc/default/samba...
Starting Samba daemons: nmbd failed!
invoke-rc.d: initscript samba, action "start" failed.
dpkg: error processing samba (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
YM:/# dpkg-reconfigure samba
/usr/sbin/dpkg-reconfigure: samba is broken or not fully installed
YM:/#
I have tried again to:-
#apt-get clean
#apt-get remove --purge Samba
#apt-get install samba
But i get same error after downloading
dpkg: error processing samba (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
YM:/# dpkg-reconfigure samba
/usr/sbin/dpkg-reconfigure: samba is broken or not fully installed
YM:/#
I am kindly requesting for assistance, I want to learn how to configure samba as a File share server for our small office LAN.
I will be grateful
Yusuf
|