package samba-common-bin 2:3.4.0-3ubuntu5.6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Bug #550022 reported by Doug Morse
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: samba

Hi,

I haven't investigated fully yet, but this bug report is fairly similar to Bug #546896. However, first, the final error message is different and, second, the platform is 32-bit not 64-bit.

Doug

ProblemType: Package
Architecture: i386
Date: Sat Mar 27 21:28:23 2010
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: samba-common-bin 2:3.4.0-3ubuntu5.6
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: samba
Title: package samba-common-bin 2:3.4.0-3ubuntu5.6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
Uname: Linux 2.6.31-20-generic i686

Revision history for this message
Doug Morse (dm-dougmorse) wrote :
Revision history for this message
Doug Morse (dm-dougmorse) wrote :

Hi,

I'm still not completely clear on what the problem is, but (surprisingly) the following fixed the problem for me.

sudo apt-get purge samba-common-bin
sudo aptitude download samba-common-bin
sudo dpkg -i samba-common-bin_2%3a3.4.0-3ubuntu5.6_i386.deb
sudo rm -f samba-common-bin_2%3a3.4.0-3ubuntu5.6_i386.deb

In other words, installing the samba-common-bin package manually with dpkg worked just fine, whereas installing via apt-get did not. Before finding this work around, I did try the same and similiar approaches with aptitude / apt- get (i.e., for me at least, it definitely is the case that, no matter what I did, installing with apt-get or aptitude failed with the same error, regardless if I was reinstalling or installing after a remove or after a purge).

HTH,
Doug

Revision history for this message
Doug Morse (dm-dougmorse) wrote :

Hi,

For the developers / technically-minded, I should definitely note:

The problem was pretty clearly related to the file /usr/bin/nmblookup.samba3 not being present. Indeed, after installing samba-common-bin with aptitude / apt-get (which always failed, as aforementioned), running "dpkg -L samba-common-bin" only showed 4 lines:

/.
/usr
/usr/bin
/usr/bin/net.samba3

Having installed samba-common-bin using dpkg (as aforementioned), "dpkg -L samba-common-bin" now shows 27 lines:

/.
/usr
/usr/bin
/usr/bin/net.samba3
/usr/bin/nmblookup.samba3
/usr/bin/smbpasswd
/usr/bin/testparm.samba3
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/testparm.samba3.1.gz
/usr/share/man/man1/nmblookup.samba3.1.gz
/usr/share/man/man5
/usr/share/man/man5/smbpasswd.5.gz
/usr/share/man/man5/lmhosts.5.gz
/usr/share/man/man5/smb.conf.5.gz
/usr/share/man/man7
/usr/share/man/man7/samba.7.gz
/usr/share/man/man8
/usr/share/man/man8/net.samba3.8.gz
/usr/share/man/man8/smbpasswd.8.gz
/usr/share/doc
/usr/share/doc/samba-common-bin
/usr/share/doc/samba-common-bin/copyright
/usr/share/doc/samba-common-bin/NEWS.Debian.gz
/usr/share/doc/samba-common-bin/README.build.gz
/usr/share/doc/samba-common-bin/changelog.Debian.gz

I can say for certain that, with a failed apt-get / aptitude install attempt, the file /usr/bin/net.samba3 *was* present and /usr/bin/nmblookup.samba3 was *not* present. I cannot speak definitively about any other files, but my sense was that *only* net.samba3 was installed, somehow nmblookup.samba3 failed to install (w/o error, however), and then the next step in the install process was to update alternatives for nmblookup, which naturally failed because nmblookup.samba3 was indeed not present, at which point the entire install stopped and nothing else was installed.

HTH,
Doug

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 511505, 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. Please continue to report any other bugs you may find.

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