samba-common-bin postinst returned error exit status 2 (update-alternatives nmblookup corrupt)

Bug #514963 reported by Rick Horowitz
140
This bug affects 24 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: samba

This bug was very similar to many others that showed up on the automated search, but mine says that error status 2 was returned, rather than 1 or 3 which the others returned.

Ubuntu 9.10
samba-common-bin 2:3.4.0-3ubuntu5.4
I expected it to install, but got this error instead.

ProblemType: Package
Architecture: amd64
Date: Sat Jan 30 12:33:47 2010
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 2
NonfreeKernelModules: nvidia
Package: samba-common-bin 2:3.4.0-3ubuntu5.4
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: samba
Title: package samba-common-bin 2:3.4.0-3ubuntu5.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
Uname: Linux 2.6.31-17-generic x86_64

Revision history for this message
Rick Horowitz (rickhoro-gmail) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

I was wondering if you were still having this problem?

=====

Relevant error:

Setting up smbclient (2:3.4.0-3ubuntu5.4) ...
Setting up samba-common-bin (2:3.4.0-3ubuntu5.4) ...
update-alternatives: error: /var/lib/dpkg/alternatives/nmblookup corrupt: invalid status
dpkg: error processing samba-common-bin (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for libc-bin ...

Changed in samba (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Rick Horowitz (rickhoro-gmail) wrote : Re: [Bug 514963] Re: package samba-common-bin 2:3.4.0-3ubuntu5.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

I'm not sure, but I don't think so. I just checked the installed version in
Synaptic and it shows the latest version as 2:3.4.0-3ubuntu5.4. The reason
I'm not sure about whether there's still a problem is that I am not
currently using Samba and don't know how to test whether it is actually
installed correctly. If you can give me some simple instructions, I'll be
happy to check.

Thanks,

Rick

On Mon, Feb 1, 2010 at 1:31 PM, Chuck Short <email address hidden>wrote:

> I was wondering if you were still having this problem?
>
> =====
>
> Relevant error:
>
> Setting up smbclient (2:3.4.0-3ubuntu5.4) ...
> Setting up samba-common-bin (2:3.4.0-3ubuntu5.4) ...
> update-alternatives: error: /var/lib/dpkg/alternatives/nmblookup corrupt:
> invalid status
> dpkg: error processing samba-common-bin (--configure):
> subprocess installed post-installation script returned error exit status 2
> Processing triggers for libc-bin ...
>
> --
> package samba-common-bin 2:3.4.0-3ubuntu5.4 failed to install/upgrade:
> subprocess installed post-installation script returned error exit status 2
> https://bugs.launchpad.net/bugs/514963
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “samba” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: samba
>
> This bug was very similar to many others that showed up on the automated
> search, but mine says that error status 2 was returned, rather than 1 or 3
> which the others returned.
>
> Ubuntu 9.10
> samba-common-bin 2:3.4.0-3ubuntu5.4
> I expected it to install, but got this error instead.
>
> ProblemType: Package
> Architecture: amd64
> Date: Sat Jan 30 12:33:47 2010
> DistroRelease: Ubuntu 9.10
> ErrorMessage: subprocess installed post-installation script returned error
> exit status 2
> NonfreeKernelModules: nvidia
> Package: samba-common-bin 2:3.4.0-3ubuntu5.4
> ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
> SourcePackage: samba
> Title: package samba-common-bin 2:3.4.0-3ubuntu5.4 failed to
> install/upgrade: subprocess installed post-installation script returned
> error exit status 2
> Uname: Linux 2.6.31-17-generic x86_64
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/samba/+bug/514963/+subscribe
>

Revision history for this message
Rick Horowitz (rickhoro-gmail) wrote : Re: package samba-common-bin 2:3.4.0-3ubuntu5.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

I am still having this problem. In my latest system updates, I got the same failure. I then tried to complete uninstall samba-common and samba-common-bin. The uninstall failed with the same error, as listed above.

update-alternatives: error: /var/lib/dpkg/alternatives/nmblookup corrupt: invalid status

Any ideas on how to fix this problem?

Revision history for this message
Philip Muškovac (yofel) wrote :

Hi, can you please attach your /var/lib/dpkg/alternatives/nmblookup file?

And can you try to run the following commands after that?

sudo update-alternatives --remove nmblookup /usr/bin/nmblookup.samba3

sudo update-alternatives --install /usr/bin/nmblookup nmblookup /usr/bin/nmblookup.samba3 0 --slave /usr/share/man/man1/nmblookup.1.gz nmblookup.1.gz /usr/share/man/man1/nmblookup.samba3.1.gz

and see if this fixes your issue?

Thierry Carrez (ttx)
summary: - package samba-common-bin 2:3.4.0-3ubuntu5.4 failed to install/upgrade:
- subprocess installed post-installation script returned error exit status
- 2
+ samba-common-bin postinst returned error exit status 2 (update-
+ alternatives nmblookup corrupt)
Revision history for this message
Rick Horowitz (rickhoro-gmail) wrote : Re: [Bug 514963] Re: package samba-common-bin 2:3.4.0-3ubuntu5.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Thanks for your suggestion. Here's what I found:

1. The contents of my nmblookup is:

rship of the /var/lib/mysql directory:\n\n /var/lib/mysql: drwxr-xr-x
mysql mysql
Type: note
Owners: mysql-server-5.1/nis_warning

Name: mysq

2. I tried running the 2 commands you suggest, and get the following error
with both:

update-alternatives: error: /var/lib/dpkg/alternatives/nmblookup corrupt:
invalid status

If you have any more suggestions, I will be happy to try them, however, I
may be out of town for several days due to a family issue.

Thanks,

Rick

2010/3/9 Philip Muškovac <email address hidden>

> Hi, can you please attach your /var/lib/dpkg/alternatives/nmblookup
> file?
>
> And can you try to run the following commands after that?
>
> sudo update-alternatives --remove nmblookup /usr/bin/nmblookup.samba3
>
> sudo update-alternatives --install /usr/bin/nmblookup nmblookup
> /usr/bin/nmblookup.samba3 0 --slave /usr/share/man/man1/nmblookup.1.gz
> nmblookup.1.gz /usr/share/man/man1/nmblookup.samba3.1.gz
>
> and see if this fixes your issue?
>
> --
> package samba-common-bin 2:3.4.0-3ubuntu5.4 failed to install/upgrade:
> subprocess installed post-installation script returned error exit status 2
> https://bugs.launchpad.net/bugs/514963
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “samba” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: samba
>
> This bug was very similar to many others that showed up on the automated
> search, but mine says that error status 2 was returned, rather than 1 or 3
> which the others returned.
>
> Ubuntu 9.10
> samba-common-bin 2:3.4.0-3ubuntu5.4
> I expected it to install, but got this error instead.
>
> ProblemType: Package
> Architecture: amd64
> Date: Sat Jan 30 12:33:47 2010
> DistroRelease: Ubuntu 9.10
> ErrorMessage: subprocess installed post-installation script returned error
> exit status 2
> NonfreeKernelModules: nvidia
> Package: samba-common-bin 2:3.4.0-3ubuntu5.4
> ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
> SourcePackage: samba
> Title: package samba-common-bin 2:3.4.0-3ubuntu5.4 failed to
> install/upgrade: subprocess installed post-installation script returned
> error exit status 2
> Uname: Linux 2.6.31-17-generic x86_64
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/samba/+bug/514963/+subscribe
>

Revision history for this message
Screaming Sloth (screamingsloth) wrote :
  • nmblookup Edit (146 bytes, application/octet-stream; name=nmblookup)
Download full text (4.5 KiB)

Attached is file. Here is results when running commands:
1st: update-alternatives: error: /var/lib/dpkg/alternatives/nmblookup
corrupt: invalid status

2nd: querying 0 on 192.168.2.255
name_query failed to find name 0
querying /usr/share/man/man1/nmblookup.1.gz on 192.168.2.255
name_query failed to find name /usr/share/man/man1/nmblookup.1.gz
tux@tux-desktop:~$ nmblookup.1.gz /usr/share/man/man1/nmblookup.samba3.1.gz
nmblookup.1.gz: command not found
tux@tux-desktop:~$ sudo update-alternatives --install /usr/bin/nmblookup
nmblookup
update-alternatives: --install needs <link> <name> <path> <priority>

Usage: update-alternatives [<option> ...] <command>

Commands:
  --install <link> <name> <path> <priority>
    [--slave <link> <name> <path>] ...
                           add a group of alternatives to the system.
  --remove <name> <path> remove <path> from the <name> group alternative.
  --remove-all <name> remove <name> group from the alternatives system.
  --auto <name> switch the master link <name> to automatic mode.
  --display <name> display information about the <name> group.
  --query <name> machine parseable version of --display <name>.
  --list <name> display all targets of the <name> group.
  --config <name> show alternatives for the <name> group and ask
the
                           user to select which one to use.
  --set <name> <path> set <path> as alternative for <name>.
  --all call --config on all alternatives.

<link> is the symlink pointing to /etc/alternatives/<name>.
  (e.g. /usr/bin/pager)
<name> is the master name for this link group.
  (e.g. pager)
<path> is the location of one of the alternative target files.
  (e.g. /usr/bin/less)
<priority> is an integer; options with higher numbers have higher priority
in
  automatic mode.

Options:
  --altdir <directory> change the alternatives directory.
  --admindir <directory> change the administrative directory.
  --skip-auto skip prompt for alternatives correctly configured
                           in automatic mode (relevant for --config only)
  --verbose verbose operation, more output.
  --quiet quiet operation, minimal output.
  --help show this help message.
  --version show the version.
tux@tux-desktop:~$ /usr/bin/nmblookup.samba3 0 --slave
/usr/share/man/man1/nmblookup.1.gz
querying 0 on 192.168.2.255
name_query failed to find name 0
querying /usr/share/man/man1/nmblookup.1.gz on 192.168.2.255
name_query failed to find name /usr/share/man/man1/nmblookup.1.gz

Ran update. Returned same error message.
Would removing nmblookup file force os to create a new one?
Ken Penney

2010/3/9 Philip Muškovac <email address hidden>

> Hi, can you please attach your /var/lib/dpkg/alternatives/nmblookup
> file?
>
> And can you try to run the following commands after that?
>
> sudo update-alternatives --remove nmblookup /usr/bin/nmblookup.samba3
>
> sudo update-alternatives --install /usr/bin/nmblookup nmblookup
> /usr/bin/nmblookup.samba3 0 --slave /usr/share/man/man1/nmblookup.1.gz
> nmblookup.1.gz /usr/share/man/man1/nmblookup.sa...

Read more...

Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like your nmblookup alternatives definition file got corrupted (?)

You could try force-installing it again:
sudo update-alternatives --force --install /usr/bin/nmblookup nmblookup /usr/bin/nmblookup.samba3 0 --slave /usr/share/man/man1/nmblookup.1.gz nmblookup.1.gz /usr/share/man/man1/nmblookup.samba3.1.gz

Also update-alternatives has been revamped in lucid, so this might be already fixed.

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.