Good day!
I was experimenting connecting my Ubuntu 6.10 PC to my WinXP PC, and somehow removed Samba in the process. When I tried to install it again, I get this error.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Recommended packages:
smbldap-tools
The following NEW packages will be installed:
samba
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/3028kB of archives.
After unpacking 7569kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package samba.
(Reading database ... files and directories currently installed.)
Unpacking samba (from .../samba_3.0.22-1ubuntu4.1_i386.deb) ...
Setting up samba (3.0.22-1ubuntu4.1) ...
Generating /etc/default/samba...
* Starting Samba daemons... [fail]
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)
I googled and saw a potential answer to my problem in
https://answers.launchpad.net/ubuntu/+ticket/3583. The relevant paragraph in the link says:
"The "prerm" script for samba is located at /var/lib/dpkg/info/samba.prerm.For some reason, the package is failed to correctly stop the samba service. To try to solve this, I would do the following:
sudo dpkg -P samba samba-common smbclient
sudo rm -f /etc/rc*.d/*samba /etc/init.d/samba
Then see if re-installing samba will work correctly:"
However, the solution did not work for me. I still get the same error.
Somebody, pls. help!
TIA,
Jules
