package apport 2.14.1-0ubuntu3.19 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

Bug #1587974 reported by Taras
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I can't install/update any packages using apt-get or dpkg.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 276332 files and directories currently installed.)
Preparing to unpack .../python3-apport_2.14.1-0ubuntu3.21_all.deb ...
Unpacking python3-apport (2.14.1-0ubuntu3.21) over (2.14.1-0ubuntu3.20) ...
Selecting previously unselected package apport.
Preparing to unpack .../apport_2.14.1-0ubuntu3.21_all.deb ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 25, in <module>
    import optparse
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 19, in <module>
    import functools
  File "build/bdist.linux-x86_64/egg/functools.py", line 72, in <module>
    root = max(roots) # prefer __lt__ to __le__ to __gt__ to __ge__
AttributeError: 'module' object has no attribute 'compose'
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 25, in <module>
    import optparse
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 19, in <module>
    import functools
  File "build/bdist.linux-x86_64/egg/functools.py", line 72, in <module>
    root = max(roots) # prefer __lt__ to __le__ to __gt__ to __ge__
AttributeError: 'module' object has no attribute 'compose'
dpkg: error processing archive /var/cache/apt/archives/apport_2.14.1-0ubuntu3.21_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 27, in <module>
    import optparse
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 19, in <module>
    import functools
  File "build/bdist.linux-x86_64/egg/functools.py", line 72, in <module>
    root = max(roots) # prefer __lt__ to __le__ to __gt__ to __ge__
AttributeError: 'module' object has no attribute 'compose'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../libsmbclient_2%3a4.3.9+dfsg-0ubuntu0.14.04.3_amd64.deb ...
Unpacking libsmbclient:amd64 (2:4.3.9+dfsg-0ubuntu0.14.04.3) over (2:4.3.9+dfsg-0ubuntu0.14.04.1) ...
Preparing to unpack .../smbclient_2%3a4.3.9+dfsg-0ubuntu0.14.04.3_amd64.deb ...
Unpacking smbclient (2:4.3.9+dfsg-0ubuntu0.14.04.3) over (2:4.3.9+dfsg-0ubuntu0.14.04.1) ...
Preparing to unpack .../samba-common-bin_2%3a4.3.9+dfsg-0ubuntu0.14.04.3_amd64.deb ...
Unpacking samba-common-bin (2:4.3.9+dfsg-0ubuntu0.14.04.3) over (2:4.3.9+dfsg-0ubuntu0.14.04.1) ...
Preparing to unpack .../samba-common_2%3a4.3.9+dfsg-0ubuntu0.14.04.3_all.deb ...
Unpacking samba-common (2:4.3.9+dfsg-0ubuntu0.14.04.3) over (2:4.3.9+dfsg-0ubuntu0.14.04.1) ...
Selecting previously unselected package python-samba.
Preparing to unpack .../python-samba_2%3a4.3.9+dfsg-0ubuntu0.14.04.3_amd64.deb ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 25, in <module>
    import optparse
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 19, in <module>
    import functools
  File "build/bdist.linux-x86_64/egg/functools.py", line 72, in <module>
    root = max(roots) # prefer __lt__ to __le__ to __gt__ to __ge__
AttributeError: 'module' object has no attribute 'compose'
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 25, in <module>
    import optparse
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 19, in <module>
    import functools
  File "build/bdist.linux-x86_64/egg/functools.py", line 72, in <module>
    root = max(roots) # prefer __lt__ to __le__ to __gt__ to __ge__
AttributeError: 'module' object has no attribute 'compose'
dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.3.9+dfsg-0ubuntu0.14.04.3_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 27, in <module>
    import optparse
  File "/usr/lib/python2.7/optparse.py", line 90, in <module>
    from gettext import gettext
  File "/usr/lib/python2.7/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib/python2.7/locale.py", line 19, in <module>
    import functools
  File "build/bdist.linux-x86_64/egg/functools.py", line 72, in <module>
    root = max(roots) # prefer __lt__ to __le__ to __gt__ to __ge__
AttributeError: 'module' object has no attribute 'compose'
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../samba-libs_2%3a4.3.9+dfsg-0ubuntu0.14.04.3_amd64.deb ...
Unpacking samba-libs:amd64 (2:4.3.9+dfsg-0ubuntu0.14.04.3) over (2:4.3.9+dfsg-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/apport_2.14.1-0ubuntu3.21_all.deb
 /var/cache/apt/archives/python-samba_2%3a4.3.9+dfsg-0ubuntu0.14.04.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: apport 2.14.1-0ubuntu3.19
ProcVersionSignature: Ubuntu 3.13.0-85.129-generic 3.13.11-ckt36
Uname: Linux 3.13.0-85-generic x86_64
ApportLog:
 ERROR: apport (pid 12967) Wed Jun 1 11:26:06 2016: called for pid 1816, signal 11, core limit 0
 ERROR: apport (pid 12967) Wed Jun 1 11:26:06 2016: executable: /usr/lib/upower/upowerd (command line "/usr/lib/upower/upowerd")
 ERROR: apport (pid 12967) Wed Jun 1 11:26:06 2016: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
 ERROR: apport (pid 12967) Wed Jun 1 11:26:07 2016: wrote report /var/crash/_usr_lib_upower_upowerd.0.crash
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
Date: Wed Jun 1 18:58:18 2016
DuplicateSignature: package:apport:2.14.1-0ubuntu3.19:subprocess new pre-removal script returned error exit status 1
ErrorMessage: subprocess new pre-removal script returned error exit status 1
InstallationDate: Installed on 2016-02-22 (100 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.17.5ubuntu5.6
 apt 1.0.1ubuntu2.13
SourcePackage: apport
Title: package apport 2.14.1-0ubuntu3.19 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Taras (podlom) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apport (Ubuntu):
status: New → Confirmed
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.