package python-jwt 1.3.0-1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

Bug #1716542 reported by Giang Tran
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjwt (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

This bug happened when I tried to install the upgrade package of ubuntu

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: python-jwt 1.3.0-1ubuntu0.1
ProcVersionSignature: Ubuntu 4.10.0-32.36~16.04.1-generic 4.10.17
Uname: Linux 4.10.0-32-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
Date: Tue Sep 12 08:44:57 2017
ErrorMessage: subprocess new pre-removal script returned error exit status 1
InstallationDate: Installed on 2017-07-17 (56 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.24
SourcePackage: pyjwt
Title: package python-jwt 1.3.0-1 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
Giang Tran (miketran) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Joshua Powers (powersj) wrote :

From log:

Preparing to unpack .../python-jwt_1.3.0-1ubuntu0.1_all.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

Revision history for this message
Joshua Powers (powersj) wrote :

Thank you for taking the time to file a bug report.

Per the log message above, you may have changed the default Python version
from 2 to 3. This leads to unexpected behavior like the errors you are
currently seeing.

Since it seems likely to me that this is a local configuration problem,
rather than a bug in Ubuntu, I am marking this bug as 'Incomplete'.

However, if you believe that this is really a bug in Ubuntu, then we would
be grateful if you would provide a more complete description of the problem
with steps to reproduce, explain why you believe this is a bug in Ubuntu
rather than a problem specific to your system, and then change the bug
status back to "New".

For local configuration issues, you can find assistance here:
http://www.ubuntu.com/support/community

Changed in pyjwt (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pyjwt (Ubuntu) because there has been no activity for 60 days.]

Changed in pyjwt (Ubuntu):
status: Incomplete → Expired
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.