package python-gtk2-dev 2.24.0-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1076117 reported by Matthew Cowan
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
pygtk (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Release 12.04 (precise) 64-bit
Currently installed python-gtk2-dev 2.24.0- 3

Trying to install dependencies for matplotlib using sudo apt-get build-dep python-matplotlib.

I expected a clean install, no errors. Instead this came up as an error.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: python-gtk2-dev 2.24.0-3
ProcVersionSignature: Ubuntu 3.2.0-32.51-generic 3.2.30
Uname: Linux 3.2.0-32-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu14
Architecture: amd64
Date: Wed Nov 7 10:54:12 2012
DuplicateSignature:
 Setting up python-gtk2-dev (2.24.0-3) ...
 dpkg: error processing python-gtk2-dev (--configure):
  subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
PackageArchitecture: all
SourcePackage: pygtk
Title: package python-gtk2-dev 2.24.0-3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Matthew Cowan (matthew-lj-cowan) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Ákos Sülyi (sulyi-gbox) wrote :

I had the same problem.

The problem was that I've added alternative for python and pyversions does not followed both symbolic link.

To check this please run:

pyversions --default

python -V

file /usr/bin/python

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

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

Changed in pygtk (Ubuntu):
status: New → Confirmed
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.