package samba-common failed to install/upgrade : subprocess post-installation script returned error exit status 143

Bug #293040 reported by LukeKendall
6
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: update-manager

I was using the system update manager to upgrade from 7.10 to 8.04. At the end, it said update manager had failed to install or upgrade and would I like to report it. I said okay.

1) I can't tell you much more than that, as since the system is mostly updated now, lsb_release -rd says:

Description: Ubuntu 8.04.1
Release: 8.04

but since I'm running 7.10 and have never booted the 8.04 system with the upgrades in place, I don't think that's correct information.

I can't scroll back and report errors from the update manager window which had the Terminal area open, since it seems to have locked up, and the error windows that popped up over the top of it wiped out the text that was there. All I can say is that there was a string of GTK_CRITICAL **: gtk_widget_destroy: assertion but the rest of the pixels in the pane have been wiped out by panels that popped up.

2) Taking a guess that the package name matches the bug error report subject line I can tell you:

update-manager:
  Installed: 1:0.87.30
  Candidate: 1:0.87.30
  Version table:
 *** 1:0.87.30 0
        500 http://au.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1:0.87.24 0
        500 http://au.archive.ubuntu.com hardy/main Packages

But since that's the package it said it couldn't install, again I don't know if you can trust that information.

3) What I expected to happen was that the update manager window would close and ask me to allow it to reboot.

4) Instead it reported the above error and asked me to report it.

ProblemType: Package
Architecture: i386
Date: Mon Nov 3 22:17:46 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)

NonfreeKernelModules: nvidia
Package: update-manager 1:0.87.30
PackageArchitecture: all
SourcePackage: update-manager
Title: package update-manager 1:0.87.30 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)
Uname: Linux 2.6.22-15-generic i686

Revision history for this message
LukeKendall (luke-zeta) wrote :
Revision history for this message
LukeKendall (luke-zeta) wrote :

Note also that I reported one other problem - that when samba asked me to confirm whether to keep my own smb.conf file, I chose the option to run a shell, and the update manager seemed to block, and no shell window that I could see was available to do my own diffs (note that a request for a side-by-side diff just resulted in a plain diff), and with the update-manager blocked, I had to find the bash that seemed relevant and kill it. When I did, update-manager came back to life and reported that the samba post install shell script had exited unexpectedly, but strangely, it also reported about 8 other packages failed, from winbind to wine to ubuntu-desktop (see the attached VarLogDistupgradeMainlog).

Oh, and while worried that the above failure meant that the upgrade was broken, I tried running a second one, but it couldn't acquire the lock. I plan to run it again when the dead-looking "Distribution Upgrade" window terminates.
Wish me luck.

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

Thanks for your report.

The error is :
=====
Setting up samba-common (3.0.28a-1ubuntu4.5) ...
root@potter:/#
root@potter:/# Terminated
root@potter:/#
root@potter:/# \
root@potter:/# \\
root@potter:/# \
root@potter:/#
root@potter:/#
root@potter:/# exit
dpkg: error processing samba-common (--configure):
 subprocess post-installation script returned error exit status 143
=====

affecting to samba

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it without more information.

Please include the information requested at https://wiki.ubuntu.com/DebuggingSamba#samba-pkg-fail.

Changed in samba:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
bob (bob-harris-tulchan) wrote :

I just ran the 9.0.4 distribution upgrade and got a
'Could not install Samba-common package may not be working'
then got a
'subprocess post-installation script returned an error exit status 3'
The bug reporting program failed with

'Could not upload report to Crashdatabase
<urlopen [Errno -2] name or service not known>'

There was little I could do as my mouse had become inoperable and my screen resolution had dropped back to 640*480.

Install now complete and Samba is not working
ran

dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}\n' | grep samba

Output is

libpam-smbpass 2:3.3.2-1ubuntu3 samba install ok installed
libsmbclient 2:3.3.2-1ubuntu3 samba install ok installed
libwbclient0 2:3.3.2-1ubuntu3 samba install ok installed
samba 2:3.3.2-1ubuntu3 install ok installed
samba-common 2:3.3.2-1ubuntu3 samba install ok installed
samba-dbg 2:3.3.2-1ubuntu3 samba install ok installed
samba-tools 2:3.3.2-1ubuntu3 samba install ok installed
smbclient 2:3.3.2-1ubuntu3 samba install ok installed
swat 2:3.2.3-1ubuntu3.4 samba deinstall ok config-files

Can you help as this machine is used as a Samba file share for several networked WINXP machines and all centrally stored data is unavailable while Samba is down.

Revision history for this message
bob (bob-harris-tulchan) wrote :

I reinstated my original /etc/samba/smb.conf file (upgrade had moved it into /etc/samba/smb.conf~), restarted samba and the file shares are now working
I'll try the shared printers next (printers attached to Ubuntu and accessed by Win XP users)

Revision history for this message
bob (bob-harris-tulchan) wrote :

shared printers seem to be working too from both Ubuntu and XP

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

bob: Note that your symptoms were different from the original poster (return code 143 for him, return code 3 for you). In doubt, please open a separate bug.

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

The subprocess post-installation script returned error exit status 143 because of the kill issued by the user, so marking this bug as Invalid.

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