package python-minimal 2.7.15~rc1-1 failed to install/upgrade: installed python-minimal package post-installation script subprocess returned error exit status 1

Bug #1777366 reported by bouraoui
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
New
Undecided
Unassigned

Bug Description

Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Paquets suggérés :
  python-doc python-tk
Les NOUVEAUX paquets suivants seront installés :
  python
0 mis à jour, 1 nouvellement installés, 0 à enlever et 1935 non mis à jour.
8 partiellement installés ou enlevés.
Il est nécessaire de prendre 0 o/140 ko dans les archives.
Après cette opération, 639 ko d'espace disque supplémentaires seront utilisés.
Paramétrage de python-minimal (2.7.15~rc1-1) ...
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/compileall.py", line 16, in <module>
    import struct
  File "/usr/local/lib/python2.7/struct.py", line 1, in <module>
    from _struct import *
ImportError: No module named _struct
dpkg: erreur de traitement du paquet python-minimal (--configure) :
 installed python-minimal package post-installation script subprocess returned error exit status 1
Des erreurs ont été rencontrées pendant l'exécution :
 python-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: python-minimal 2.7.15~rc1-1
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.20.8-0ubuntu6
Architecture: i386
Date: Sun Jun 17 22:44:04 2018
ErrorMessage: installed python-minimal package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2012-07-04 (2174 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
Python3Details: /usr/local/bin/python3.5, Python 3.5.2, unpackaged
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu1
 apt 1.6~alpha7ubuntu1
SourcePackage: python-defaults
Title: package python-minimal 2.7.15~rc1-1 failed to install/upgrade: installed python-minimal package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to bionic on 2018-01-28 (140 days ago)

Revision history for this message
bouraoui (seyfallah) wrote :
Revision history for this message
Jose Flores (jose.jflores) wrote :

Hello there,
Although I am not a french speaking, I think i understood your issue.
This might be related to another python binary you have on your path.

Please check you have /usr/bin first in your path by the time of the upgrade

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.