package samba 2:3.5.8~dfsg-1ubuntu2.3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #821963 reported by Terry J. Opie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
New
Medium
Unassigned

Bug Description

[opiet@stewie ~] --> lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04

[opiet@stewie ~] --> apt-cache policy samba
samba:
  Installed: 2:3.5.8~dfsg-1ubuntu2.3
  Candidate: 2:3.5.8~dfsg-1ubuntu2.3
  Version table:
 *** 2:3.5.8~dfsg-1ubuntu2.3 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu/ natty-security/main i386 Packages
        100 /var/lib/dpkg/status
     2:3.5.8~dfsg-1ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
[opiet@stewie ~] -->

I expected samba to install... and then be able to connect to windows shares. It didn't install, and when it was installed previously this morning would connect to any windows shares.

From what I've been reading, this is a very pervasive problem...

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: samba 2:3.5.8~dfsg-1ubuntu2.3
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic-pae 2.6.38.7
Uname: Linux 2.6.38-10-generic-pae i686
Architecture: i386
Date: Sat Aug 6 09:45:00 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
RelatedPackageVersions:
 nautilus 1:2.32.2.1-0ubuntu13
 gvfs 1.8.0-0ubuntu2
SambaClientRegression: Yes
SourcePackage: samba
Title: package samba 2:3.5.8~dfsg-1ubuntu2.3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to natty on 2011-04-30 (98 days ago)

Revision history for this message
Terry J. Opie (opie) wrote :
Revision history for this message
Ursula Junque (ursinha) wrote :

From log:
Setting up samba (2:3.5.8~dfsg-1ubuntu2.3) ...
Generating /etc/default/samba...
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
smbd start/running, process 3231
start: Job failed to start
invoke-rc.d: initscript nmbd, action "start" failed.
dpkg: error processing samba (--configure):
 subprocess installed post-installation script returned error exit status 1

Revision history for this message
Ursula Junque (ursinha) wrote :

Hello!

Thanks for your time reporting this bug. I'd like to ask a few things in order to understand your issue:

1) Can you provide the file /etc/init/nmbd.conf ?
2) Run the following commands and paste the output here:
 $ testparm -s --parameter-name='disable netbios'
 $ echo $?
and
 $ install -o root -g root -m 755 -d /var/run/samba
 $ echo $?

After providing the information, please set the bug status to 'New' so it won't expire.

Thanks!

Changed in samba (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Terry J. Opie (opie) wrote :

nmbd.conf file is attached.

Requested commands ran:
-------------------------------------------------------
[opiet@stewie ~] --> testparm -s --parameter-name='disable netbios'
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Development]"
Loaded services file OK.
No
[opiet@stewie ~] --> echo $?
0
[opiet@stewie ~] --> install -o root -g root -m 755 -d /var/run/samba
[opiet@stewie ~] --> echo $?
0
[opiet@stewie ~] -->

Changed in samba (Ubuntu):
status: Incomplete → New
Revision history for this message
James Page (james-page) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Please can you check the permissions on /var/lib/samba and /var/cache/samba; if they have both directories
have drwxrwxrwx permissions please try the following:

  sudo chmod 0755 /var/lib/samba /var/cache/samba
  sudo apt-get -f install

I think that this bug has already been reported and is a duplicate of bug 791944, so it is being marked as such.

Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug.

Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.