package dput 0.9.6.4ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dput (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
dput looks like it's depending on python2 (without using `from __future__ import print_function`)
Details:
----
Setting up dput (0.9.6.4ubuntu3) ...
*** Error compiling '/usr/share/
File "/usr/share/
print "D: FTP-Connection to host: %s" % fqdn
SyntaxError: Missing parentheses in call to 'print'
*** Error compiling '/usr/share/
File "/usr/share/
print "Error: Failed to execute '"+file+"'."
SyntaxError: Missing parentheses in call to 'print'
*** Error compiling '/usr/share/
File "/usr/share/
except ValueError, e:
SyntaxError: invalid syntax
*** Error compiling '/usr/share/
File "/usr/share/
exec open("/
^
SyntaxError: invalid syntax
*** Error compiling '/usr/share/
File "/usr/share/
print "D: Uploading with cp to %s" % (incoming)
SyntaxError: invalid syntax
*** Error compiling '/usr/share/
File "/usr/share/
print "D: Uploading with rsync to %s%s:%s" % \
SyntaxError: Missing parentheses in call to 'print'
*** Error compiling '/usr/share/
File "/usr/share/
if not stat.S_
SyntaxError: invalid token
*** Error compiling '/usr/share/
File "/usr/share/
except Exception, e:
SyntaxError: invalid syntax
dpkg: error processing package dput (--configure):
subprocess installed post-installation script returned error exit status 1
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: dput 0.9.6.4ubuntu3
ProcVersionSign
Uname: Linux 4.4.0-79-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
Date: Thu Jun 8 05:36:28 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-12-11 (179 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
PackageArchitec
RelatedPackageV
dpkg 1.18.4ubuntu1.2
apt 1.2.20
SourcePackage: dput
Title: package dput 0.9.6.4ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
Oh! This is my environment:
I have (in /usr/local/bin - ahead of /usr/bin, in my path) `python` refering to python3.6;
Temporarily changing my /usr/local/ bin/python to point to /usr/bin/python2.7 (as /usr/bin/python links to), and dput installed.
Perhaps something as simple as being explicit in the dput install to use / call python2 would help.