[Bug 526418] Re: Samba-common-bin installed post-installation script fails with error 2

Mike Molnar launchpad at itgeekery.com
Fri Feb 26 01:56:07 GMT 2010


On Thu, 2010-02-25 at 09:02 +0000, Thierry Carrez wrote:
> 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
> 
> Looks like something/someone broke the nmblookup alternatives setting.
> I'd recommend purging the samba (including samba-common) packages,
> clearing /var/lib/dpkg/alternatives/nmblookup and try to reinstall
> samba.
> 
> ** Changed in: samba (Ubuntu)
>    Importance: Undecided => Low
> 
> ** Changed in: samba (Ubuntu)
>        Status: New => Incomplete
> 

Thanks for the quick response.

Following your recommendations, I purged the packages using apt-get
purge, then renamed /var/lib/dpkg/alternatives/nmblookup.

Execution of: [sudo dpkg --configure -a] resulted in:

Setting up samba-common-bin (2:3.4.0-3ubuntu5.5) ...
update-alternatives: error: /var/lib/dpkg/alternatives/net corrupt:
invalid status
dpkg: error processing samba-common-bin (--configure):
 subprocess installed post-installation script returned error exit
status 2
Errors were encountered while processing:
 samba-common-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

I renamed /var/lib/dpkg/alternatives/net.

Execution of: [sudo dpkg --configure -a] resulted in:

Setting up samba-common-bin (2:3.4.0-3ubuntu5.5) ...
Use of uninitialized value in string ne at /usr/sbin/update-alternatives
line 260.
update-alternatives: warning: /etc/alternatives/net has been changed
(manually or by a script). Switching to manual updates only.
update-alternatives: error: /var/lib/dpkg/alternatives/testparm corrupt:
invalid status
dpkg: error processing samba-common-bin (--configure):
 subprocess installed post-installation script returned error exit
status 2
Errors were encountered while processing:
 samba-common-bin

I renamed /var/lib/dpkg/alternatives/testparm.

Execution of: [sudo dpkg --configure -a] resulted in:

Setting up samba-common-bin (2:3.4.0-3ubuntu5.5) ...
Use of uninitialized value in string ne at /usr/sbin/update-alternatives
line 260.
update-alternatives: warning: /etc/alternatives/testparm has been
changed (manually or by a script). Switching to manual updates only.

However, at that point, it appeared as though samba-common-bin was able
to configure correctly.  I will monitor for functionality and report any
additional errors.

-- 
Samba-common-bin installed post-installation script fails with error 2
https://bugs.launchpad.net/bugs/526418
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.



More information about the Ubuntu-server-bugs mailing list