package samba 2:3.6.3-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Bug #950485 reported by Tyler Wagler
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Expired
Medium
Unassigned

Bug Description

After a purge, tried to re-install samba.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: samba 2:3.6.3-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-18.28-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
NonfreeKernelModules: wl fglrx
ApportVersion: 1.94.1-0ubuntu1
AptOrdering:
 samba: Install
 tdb-tools: Install
 samba: Configure
 tdb-tools: Configure
Architecture: amd64
Date: Thu Mar 8 20:29:19 2012
DuplicateSignature:
 Setting up samba (2:3.6.3-1ubuntu1) ...
 /var/lib/dpkg/info/samba.postinst: 61: /var/lib/dpkg/info/samba.postinst: cannot create /etc/samba/smbpasswd: Directory nonexistent
 dpkg: error processing samba (--configure):
  subprocess installed post-installation script returned error exit status 2
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
SourcePackage: samba
Title: package samba 2:3.6.3-1ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Tyler Wagler (tyler-wagler) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Tyler, thanks for beta testing precise, and thanks for the bug report!

Did you also purge 'samba-common' ? If you removed /etc/samba manually without purging samba-common (the package that owns and guarantees the existence of /etc/samba) then dpkg might consider that a conffile removal, and preserve it.

Try purging samba-common and then reinstalling it as well.

If you already did that, then please run

ls -ld /etc /etc/samba
dpkg -S /etc/samba
dpkg -L samba-common

And report back here the results of those.

Marking Invalid pending a response.

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Oops, I meant Incomplete, not Invalid.

Changed in samba (Ubuntu):
importance: Undecided → Medium
Revision history for this message
LeDucDuBleuet (eleduc) wrote :

I had the same problem today while updating 12.04.

I had to purge the packages samba + samba-common and re-install them in order to have the Samba server working again.

This is not optimal since you have to reconfigure all your your samba shares after doing so...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
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.