package python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
while starting my laptop it could not find the cifs shares
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: python-samba 2:4.3.11+
ProcVersionSign
Uname: Linux 4.4.0-53-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.4
Architecture: amd64
Date: Wed Dec 21 08:34:15 2016
ErrorMessage: subprocess new pre-removal script returned error exit status 1
InstallationDate: Installed on 2016-06-28 (175 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
RelatedPackageV
dpkg 1.18.4ubuntu1.1
apt 1.2.15ubuntu0.2
SambaClientRegr
SourcePackage: samba
Title: package python-samba 2:4.3.11+
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
From log:
Preparing to unpack .../python- samba_2% 3a4.3.11+ dfsg-0ubuntu0. 16.04.3_ amd64.deb ...
^
^ apt/archives/ python- samba_2% 3a4.3.11+ dfsg-0ubuntu0. 16.04.3_ amd64.deb (--unpack):
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/
subprocess new pre-removal script returned error exit status 1
Have you messed with your /usr/bin/python symlink? What does "stat /usr/bin/python" show?