LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-14-2007, 06:22 PM   #1
juleshernandez
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Rep: Reputation: 0
Unhappy Samba installation problem


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
 
Old 03-17-2007, 11:16 AM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Try manually stopping the Samba services first, then running the commands that you quoted. Remember that you may have a nmbd service as well as the main smbd service. Please do update that bug if you get further - it may help someone else in the same position .
 
Old 03-18-2007, 08:48 PM   #3
juleshernandez
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy

Hi hob!

I manually stop Samba by running sudo /etc/init.d/samba stop, then performed the operations again. When I tried reinstalling Samba, I got the same error.

What is nmdb? I don't seem to have that on my machine. Do i have to stop that service, too? Or is that an alternative to Samba? Pls. forgive the ignorance

Thanks.

Jules

Quote:
Originally Posted by hob
Try manually stopping the Samba services first, then running the commands that you quoted. Remember that you may have a nmbd service as well as the main smbd service. Please do update that bug if you get further - it may help someone else in the same position .
 
Old 03-19-2007, 03:32 PM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
nmbd is an optional service provided by Samba - it enables the "WINS" features.

I suspect that the uninstall routine is leaving something behind, which is fixable with a bit of courage . Try running the "dpkg -P" command, and then manually deleting the "samba" directories left behind - you will find one in /etc (for configuration files), and some in subdirectories of /var/.

Edit: To get a complete list of the files and directories that a package provides, use "dpkg -c". You will find copies of all downloaded packages in /var/cache/apt/archives/, so:

dpkg -c /var/cache/apt/archives/samba-common_3.0.22-1ubuntu4.1_i386.deb | less

Will list all of the file and directories provided by samba-common_3.0.22-1ubuntu4.1_i386.deb, one page at a time.

Last edited by hob; 03-19-2007 at 03:40 PM.
 
Old 03-26-2007, 04:41 PM   #5
juleshernandez
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy

Hi!

Still no go . I did as you suggested, purge samba, remove all files and directories created during the install process, tried reinstalling but still got the same error during installation.

I don't know if the problem has got to do with the package available in the Ubuntu repositories. I'll try to download the samba sources from Samba.org, compile it and see if it will install.

Thanks and regards.
 
  


Reply

Tags
samba, ubuntu610


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Installation Problem on Suse 10 using VMware 5.0 martinishakenOO7 Linux - Newbie 2 12-14-2006 03:46 AM
Samba installation problem duffmckagan Mandriva 10 06-04-2005 02:10 AM
samba installation problem ddaas Linux - Software 2 10-22-2004 08:47 AM
samba installation problem ddaas Linux - Software 2 10-16-2004 11:27 PM
samba installation problem ddaas Slackware 2 10-11-2004 02:32 AM


All times are GMT -5. The time now is 03:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration