Public bug reported:

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:
and...@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

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-package i386 lucid

-- 
package samba-common 2:3.4.7~dfsg-1ubuntu3.1 failed to remove: subprocess 
installed post-removal script returned error exit status 1
https://bugs.launchpad.net/bugs/618633
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to