package samba-common 2:3.4.7~dfsg-1ubuntu3.1 failed to remove: subprocess installed post-removal script returned error exit status 1

Bug #618633 reported by Andrew Gilbertson
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Binary package hint: samba

"sudo apt-get remove samba" resulted in post-removal script returning error exit status 1. Terminal log included below.

I think that installing samba never completed successfully - "service samba stop" returned "stop: Unknown instance" despite "service --status-all" showing that smbd was running. This occurred after installing samba from terminal using "sudo apt-get install samba", upgrading via Update Manager, then uninstalling from terminal using "sudo apt-get remove samba", which resulted in the post-removal script returning error exit status 1 rather than uninstalling cleanly. (Between installing and uninstalling I had added gadmin-samba, which was automatically removed during the remove of samba.)

Version of OS is Ubuntu 10.04.1 LTS

$ apt-cache policy samba
samba:
  Installed: (none)
  Candidate: 2:3.4.7~dfsg-1ubuntu3.1
  Version table:
     2:3.4.7~dfsg-1ubuntu3.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     2:3.4.7~dfsg-1ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages

Complete terminal log:
andrew@fatlaptop:/$ sudo apt-get remove samba [29/970]
[sudo] password for andrew:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required
:
  python-libuser libuser1
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  gadmin-samba samba system-config-samba
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 23.6MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 234348 files and directories currently installed.)
Removing system-config-samba ...
Removing gadmin-samba ...
Removing samba ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Processing triggers for python-support ...
Setting up samba-common (2:3.4.7~dfsg-1ubuntu3.1) ...
Not replacing deleted config file /etc/samba/smb.conf
Install/upgrade will fail. To recover, please try:
  sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
  sudo dpkg --configure -a
dpkg: error processing samba-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of samba-common-bin:
 samba-common-bin depends on samba-common (>= 2:3.4.0~pre1-2); however:
  Package samba-common is not configured yet.
dpkg: error processing samba-common-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of smbclient:
 smbclient depends on samba-common (= 2:3.4.7~dfsg-1ubuntu3.1); however:
  Package samba-common is not configured yet.
dpkg: error processing smbclient (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of smbfs:
 smbfs depends on samba-common (= 2:3.4.7~dfsg-1ubuntu3.1); however:
  Package samba-common is not configured yet.
dpkg: error processing smbfs (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                            No apport report written because the error message indicates its a followup error from a previous failure.
                                                        No apport report writt
en because MaxReports is reached already
                                        No apport report written because MaxRe
ports is reached already

                         winbind depends on samba-common (= 2:3.4.7~dfsg-1ubun
tu3.1); however:
  Package samba-common is not configured yet.
dpkg: error processing winbind (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 samba-common
 samba-common-bin
 smbclient
 smbfs
 winbind
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: samba-common 2:3.4.7~dfsg-1ubuntu3.1
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic i686
NonfreeKernelModules: wl
Architecture: i386
Date: Mon Aug 16 07:29:05 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitecture: all
SambaServerRegression: No
SourcePackage: samba
Title: package samba-common 2:3.4.7~dfsg-1ubuntu3.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Revision history for this message
Andrew Gilbertson (agilbertson) wrote :
Revision history for this message
Chuck Short (zulcss) wrote :

Try apt-get remove --purge samba-common and then try again.

chuck

Changed in samba (Ubuntu):
status: New → Invalid
leoave (leoave-gmail)
Changed in samba (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Ursula Junque (ursinha) wrote :

From log:
Setting up samba-common (2:3.4.7~dfsg-1ubuntu3.1) ...
Not replacing deleted config file /etc/samba/smb.conf
Install/upgrade will fail. To recover, please try:
  sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
  sudo dpkg --configure -a
dpkg: error processing samba-common (--configure):
 subprocess installed post-installation script returned error exit status 1

Revision history for this message
Ursula Junque (ursinha) wrote :

Hi!

Have you tried what the error message suggests? That would be:
 $ sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
 $ sudo dpkg --configure -a

It seems the error is because the file is missing. Can you confirm that please by running the above commands?

Thanks!

Changed in samba (Ubuntu):
status: Confirmed → Incomplete
importance: Undecided → Medium
Revision history for this message
Almufadado (almufadado) wrote :

Apparently, exactly the same here .

The result in my portuguese version :

A instalar samba (2:3.5.8~dfsg-1ubuntu2.3) ... (trans : installing samba)
start: Job failed to start
invoke-rc.d: initscript nmbd, action "start" failed.
dpkg: erro ao processar samba (--configure): (trans error processing ...)
 subprocesso script post-installation instalado retornou erro do status de saída 1
Foram encontrados erros enquanto processava: (trans: Errors were encountered while processing:)
 samba

Maybe a internationalization problem ?

I've tried to remove completly and re-installing the samba package ... but the "samba" goes on :)

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.