package python-pip 8.1.1-2ubuntu0.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 127

Bug #1846168 reported by Ritesh Tomar
212
This bug affects 35 people
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
Confirmed
Undecided
Unassigned
python-pip (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

/var/lib/dpkg/info/python-pip.postinst: 6: /var/lib/dpkg/info/python-pip.postinst: pycompile: not found
dpkg: error processing package python-pip (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up python-pkg-resources (20.7.0-1) ...
/var/lib/dpkg/info/python-pkg-resources.postinst: 6: /var/lib/dpkg/info/python-pkg-resources.postinst: pycompile: not found
dpkg: error processing package python-pkg-resources (--configure):
 subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of python-setuptools:
 python-setuptools depends on python-pkg-resources (= 20.7.0-1); however:
  Package python-pkg-resources is not configured yet

No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 python-pip
 python-pkg-resources
 python-setuptools
 python-wheel
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: python-pip 8.1.1-2ubuntu0.4
ProcVersionSignature: Ubuntu 4.15.0-60.67~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-60-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.19
Architecture: amd64
Date: Tue Oct 1 13:38:38 2019
DuplicateSignature:
 package:python-pip:8.1.1-2ubuntu0.4
 Setting up python-pip (8.1.1-2ubuntu0.4) ...
 /var/lib/dpkg/info/python-pip.postinst: 6: /var/lib/dpkg/info/python-pip.postinst: pycompile: not found
 dpkg: error processing package python-pip (--configure):
  subprocess installed post-installation script returned error exit status 127
ErrorMessage: subprocess installed post-installation script returned error exit status 127
InstallationDate: Installed on 2019-05-22 (131 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.5
 apt 1.2.31
SourcePackage: python-pip
Title: package python-pip 8.1.1-2ubuntu0.4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 127
UpgradeStatus: Upgraded to xenial on 2019-06-03 (120 days ago)

Revision history for this message
Ritesh Tomar (ritzcool) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Chris Guiver (guiverc) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better

Do you have `python-minimal` installed?

It's a package installed by default, which provides `pycompile` so your problem is likely it's been removed at some point.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in python-pip (Ubuntu):
status: New → Confirmed
Changed in python2.7 (Ubuntu):
status: New → Confirmed
Changed in python-pip (Ubuntu):
status: Confirmed → Invalid
affects: python2.7 (Ubuntu) → python-defaults (Ubuntu)
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.