package samba-common-bin 2:3.4.7~dfsg-1ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Bug #574867 reported by GPAULIEG
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: samba

paul@paul-desktop:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  libnautilus-extension1 samba-common
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 0B/458kB of archives.
After this operation, 8,192B disk space will be freed.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
(Reading database ... 179598 files and directories currently installed.)
Preparing to replace samba-common 2:3.4.0-3ubuntu5.6 (using .../samba-common_2%3a3.4.7~dfsg-1ubuntu3_all.deb) ...
update-alternatives: error: /var/lib/dpkg/alternatives/nmblookup corrupt: invalid status
dpkg: warning: old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/samba-common_2%3a3.4.7~dfsg-1ubuntu3_all.deb (--unpack):
 there is no script in the new version of the package - giving up
Preparing to replace libnautilus-extension1 1:2.28.1-0ubuntu3 (using .../libnautilus-extension1_1%3a2.30.0-0ubuntu4_i386.deb) ...
Unpacking replacement libnautilus-extension1 ...
dpkg-deb (subprocess): error in buffer_read(stream): failed to write to pipe in copy: Input/output error
dpkg-deb: subprocess paste returned error exit status 2
dpkg: error processing /var/cache/apt/archives/libnautilus-extension1_1%3a2.30.0-0ubuntu4_i386.deb (--unpack):
 short read in buffer_copy (backend dpkg-deb during `./usr/share/doc/libnautilus-extension1/changelog.Debian.gz')
No apport report written because the error message indicates a dpkg I/O error
                                                                             Errors were encountered while processing:
 /var/cache/apt/archives/samba-common_2%3a3.4.7~dfsg-1ubuntu3_all.deb
 /var/cache/apt/archives/libnautilus-extension1_1%3a2.30.0-0ubuntu4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
paul@paul-desktop:~$

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: samba-common-bin 2:3.4.7~dfsg-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
BothFailedConnect: Yes
Date: Mon May 3 20:34:41 2010
DpkgTerminalLog:

ErrorMessage: subprocess installed post-installation script returned error exit status 2
SambaServerRegression: Yes
SourcePackage: samba
Title: package samba-common-bin 2:3.4.7~dfsg-1ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Revision history for this message
GPAULIEG (pgriffiths-neo) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Can you attach the var/lib/dpkg/alternatives/nmblookup file?

Thanks
chuck

Changed in samba (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Mark Campbell (mark.campbell) wrote :

Hi, I had the same problem as you. What was suggested to me was to move the files to make them unreachable, e.g., nmblookup to nmblookup.bak, so I did that and it gave me a new error with a new file, so I moved that one as well. I repeated this process until apt-get -f install proceeded (I used -fy).

The three files in question were:

'testparm'
'net'
'nmblookup'

I moved these files to their name plus .bak and the apt-get -f install proceeded. Find attached a log of my activity in this endeavor. Everything is included from beginning to finish for this bug.

tags: added: iso-testing
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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