package libpam-smbpass 2:3.6.3-2ubuntu2.2 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
Update manager keeps pointing out that samba has unmet dependencies, so I decided to remove it. Here is what happens:
$ sudo apt-get remove libpam-smbpass samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libpam-smbpass samba
0 upgraded, 0 newly installed, 2 to remove and 19 not upgraded.
13 not fully installed or removed.
After this operation, 25.6 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 345055 files and directories currently installed.)
Removing libpam-smbpass ...
Can't locate object method "new" via package "Debconf:
Use of uninitialized value $ret in scalar chomp at /usr/share/
Use of uninitialized value $ret in split at /usr/share/
Use of uninitialized value $ret[0] in string eq at /usr/share/
dpkg: error processing libpam-smbpass (--remove):
subprocess installed pre-removal script returned error exit status 2
Can't locate object method "new" via package "Debconf:
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Removing samba ...
nmbd stop/waiting
smbd stop/waiting
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Errors were encountered while processing:
libpam-smbpass
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: libpam-smbpass 2:3.6.3-2ubuntu2.2
ProcVersionSign
Uname: Linux 3.2.0-25-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Sun Jun 24 14:33:34 2012
ErrorMessage: subprocess installed pre-removal script returned error exit status 2
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
RelatedPackageV
nautilus 1:3.4.2-0ubuntu2
gvfs 1.12.1-0ubuntu1
SambaClientRegr
SourcePackage: samba
Title: package libpam-smbpass 2:3.6.3-2ubuntu2.2 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 2
UpgradeStatus: Upgraded to precise on 2012-04-27 (58 days ago)
Thanks for reporting this bug.
Could you try opening a terminal and doing
sudo apt-get install -f
to attempt to fix the unmet dependencies?