sub-process /usr/bin/dpkg returned an error code (1)

Bug #1729682 reported by Juan Pablo Moreno Muñoz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-pip (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I tried to install python-pip package and got the following log error:

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 al procesar el paquete python-pip (--configure):
 el subproceso instalado el script post-installation devolvió el código de salida de error 1
Configurando python-setuptools (20.7.0-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 al procesar el paquete python-setuptools (--configure):
 el subproceso instalado el script post-installation devolvió el código de salida de error 1
Configurando python-wheel (0.29.0-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 al procesar el paquete python-wheel (--configure):
 el subproceso instalado el script post-installation devolvió el código de salida de error 1
Procesando disparadores para libc-bin (2.23-0ubuntu5) ...
Se encontraron errores al procesar:
 python-pip
 python-setuptools
 python-wheel
E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm working on Ubuntu 16.04

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: python-pip 8.1.1-2ubuntu0.4
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
Uname: Linux 4.8.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Thu Nov 2 14:30:07 2017
ErrorMessage: el subproceso instalado el script post-installation devolvió el código de salida de error 1
InstallationDate: Installed on 2017-09-20 (43 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.19
SourcePackage: python-pip
Title: package python-pip 8.1.1-2ubuntu0.4 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Juan Pablo Moreno Muñoz (juanpamm) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

that very much smells like you changed your python symlink pointing to python3. don't do that.

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