dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb (--unpack): subprocess new pre-removal script returned error exit status 1 Traceback (most recent call last): File "/usr/bin/pycompile", line 35, in <module> from debpython.version import SUPPORTED, debsorted, vrepr, \ File "/usr/share/python/debpython/version.py", line 24, in <module> from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Preparing to unpack .../samba-libs_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb ... Unpacking samba-libs:amd64 (2:4.1.11+dfsg-1ubuntu2.2) over (2:4.1.11+dfsg-1ubuntu2.1) ... Processing triggers for man-db (2.7.0.2-2) ... Errors were encountered while processing: /var/cache/apt/archives/gir1.2-signon-1.0_1.10daily13.06.25-0ubuntu3.1_amd64.deb /var/cache/apt/archives/python-samba_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

Bug #1430257 reported by fred bitenyo on 2015-03-10
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Undecided
Unassigned

Bug Description

Preconfiguring packages ...
(Reading database ... 310091 files and directories currently installed.)
Preparing to unpack .../gir1.2-signon-1.0_1.10daily13.06.25-0ubuntu3.1_amd64.deb ...
  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/apt/archives/gir1.2-signon-1.0_1.10daily13.06.25-0ubuntu3.1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../libsmbclient_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb ...
Unpacking libsmbclient:amd64 (2:4.1.11+dfsg-1ubuntu2.2) over (2:4.1.11+dfsg-1ubuntu2.1) ...
Preparing to unpack .../smbclient_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb ...
Unpacking smbclient (2:4.1.11+dfsg-1ubuntu2.2) over (2:4.1.11+dfsg-1ubuntu2.1) ...
Preparing to unpack .../samba-common-bin_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb ...
Unpacking samba-common-bin (2:4.1.11+dfsg-1ubuntu2.2) over (2:4.1.11+dfsg-1ubuntu2.1) ...
Preparing to unpack .../samba-common_2%3a4.1.11+dfsg-1ubuntu2.2_all.deb ...
Unpacking samba-common (2:4.1.11+dfsg-1ubuntu2.2) over (2:4.1.11+dfsg-1ubuntu2.1) ...
Preparing to unpack .../python-samba_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb ...
  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/apt/archives/python-samba_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../samba-libs_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.1.11+dfsg-1ubuntu2.2) over (2:4.1.11+dfsg-1ubuntu2.1) ...
Processing triggers for man-db (2.7.0.2-2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/gir1.2-signon-1.0_1.10daily13.06.25-0ubuntu3.1_amd64.deb
 /var/cache/apt/archives/python-samba_2%3a4.1.11+dfsg-1ubuntu2.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: python-samba 2:4.1.11+dfsg-1ubuntu2
ProcVersionSignature: Ubuntu 3.16.0-29.39-generic 3.16.7-ckt2
Uname: Linux 3.16.0-29-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
Date: Tue Mar 10 12:55:48 2015
DpkgHistoryLog:
 Start-Date: 2015-03-10 12:55:46
 Commandline: apt-get install -f
 Upgrade: python-samba:amd64 (4.1.11+dfsg-1ubuntu2, 4.1.11+dfsg-1ubuntu2.2), samba-common-bin:amd64 (4.1.11+dfsg-1ubuntu2.1, 4.1.11+dfsg-1ubuntu2.2), samba-libs:amd64 (4.1.11+dfsg-1ubuntu2.1, 4.1.11+dfsg-1ubuntu2.2), smbclient:amd64 (4.1.11+dfsg-1ubuntu2.1, 4.1.11+dfsg-1ubuntu2.2), samba-common:amd64 (4.1.11+dfsg-1ubuntu2.1, 4.1.11+dfsg-1ubuntu2.2), gir1.2-signon-1.0:amd64 (1.10daily13.06.25-0ubuntu2, 1.10daily13.06.25-0ubuntu3.1), libsmbclient:amd64 (4.1.11+dfsg-1ubuntu2.1, 4.1.11+dfsg-1ubuntu2.2)
DuplicateSignature: package:python-samba:2:4.1.11+dfsg-1ubuntu2:subprocess new pre-removal script returned error exit status 1
ErrorMessage: subprocess new pre-removal script returned error exit status 1
InstallationDate: Installed on 2014-04-03 (340 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
NmbdLog:

SambaServerRegression: Yes
SmbConfIncluded: Yes
SmbLog:

SourcePackage: samba
Title: package python-samba 2:4.1.11+dfsg-1ubuntu2 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
UpgradeStatus: Upgraded to utopic on 2014-11-12 (118 days ago)
WindowsFailedConnect: Yes

fred bitenyo (fredbitenyo) wrote :
tags: removed: need-duplicate-check
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers