package python2.5-minimal 2.5.4-1ubuntu4 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #367162 reported by Win Zin on 2009-04-26
60
This bug affects 9 people
Affects Status Importance Assigned to Milestone
python2.5 (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: python2.5

during Virtual Box 2.2.0 deb package installation

ProblemType: Package
Architecture: i386
Dependencies:
 libgcc1 1:4.3.3-5ubuntu4
 zlib1g 1:1.2.3.3.dfsg-12ubuntu2
 gcc-4.3-base 4.3.3-5ubuntu4
 findutils 4.4.0-2ubuntu4
 libc6 2.9-4ubuntu6
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: python2.5-minimal 2.5.4-1ubuntu4
SourcePackage: python2.5
Title: package python2.5-minimal 2.5.4-1ubuntu4 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.28-11-generic i686

Win Zin (winzin) wrote :
Download full text (4.2 KiB)

Please help me fix this. This python 2.5 problem has plagued me for so long........

Following some advice elsewhere I tried running:

sudo dpkg -r --force-depends python2.5-minimal

followed by

sudo apt-get -f install

The output is:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libqt4-opengl librpmbuild0 stardict-common debhelper intltool-debian postfix
  lsb-graphics lsb-desktop m4 librpmio0 librpm0 libpcmanx-core0 po-debconf
  ncurses-term stardict stardict-plugin-festival libmail-sendmail-perl
  stardict-plugin-espeak gettext libqt4-gui cvs pcmanx-gtk2
  ttf-arphic-bsmi00lp lsb pax ttf-arphic-gbsn00lp stardict-gtk rpm
  imagemagick-doc bsd-mailx html2text libqt3-mt mailx lsb-core alien
  libestools1.2 libsys-hostname-long-perl stardict-plugin gnuit lsb-cxx
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  python2.5-minimal
The following NEW packages will be installed:
  python2.5-minimal
0 upgraded, 1 newly installed, 0 to remove and 64 not upgraded.
4 not fully installed or removed.
Need to get 1,234kB of archives.
After this operation, 4,575kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://debian.nctu.edu.tw karmic/main python2.5-minimal 2.5.4-1ubuntu6 [1,234kB]
Fetched 1,234kB in 1s (685kB/s)
Selecting previously deselected package python2.5-minimal.
(Reading database ... 278035 files and directories currently installed.)
Unpacking python2.5-minimal (from .../python2.5-minimal_2.5.4-1ubuntu6_i386.deb) ...
Processing triggers for man-db ...
Setting up medibuntu-keyring (2008.04.20) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing medibuntu-keyring (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up python2.5-minimal (2.5.4-1ubuntu6) ...
Linking and byte-compiling packages for runtime python2.5...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2196, in <module>
    main()
  File "/usr/bin/pycentral", line 2190, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1746, in run
    pkg = DebPackage('package', pkgname, oldstyle=False)
  File "/usr/bin/pycentral", line 381, in __init__
    self.read_pyfiles()
  File "/usr/bin/pycentral", line 414, in read_pyfiles
    self.pkgconfig.set('pycentral', 'include-links', '0')
  File "/usr/lib/python2.6/ConfigParser.py", line 669, in set
    ConfigParser.set(self, section, option, value)
  File "/usr/lib/python2.6/ConfigParser.py", line 377, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'pycentral'
dpkg: error processing python2.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.5:
 python2.5 depends on python2.5-minimal (= 2.5.4-1ubuntu6); however:
  Package python2.5-minimal is not configured yet.
dpkg: error processing python2.5 (--con...

Read more...

Adam Collard (adam-collard) wrote :

Is this still an issue? If so can you please add the contents on /etc/python/debian_config?

Thanks

Changed in python2.5 (Ubuntu):
status: New → Incomplete

Adam, thanks for your reply. This is still an issue. I get the same error every time I update.

The contents of /etc/python/debian_config are as follows:

[DEFAULT]
# how to byte-compile (comma separated: standard, optimize)
byte-compile = standard

Adam Collard (adam-collard) wrote :

Thanks for that, looks like that was a red herring. Could you also try the following:

$ export PYCENTRAL=debug
$ sudo apt-get install

Then attach the contents of /var/log/pycentral.log ?

Thanks

Download full text (3.3 KiB)

I ran both commands as instructed.

However, the resulting var/log/pycentral.log is empty!

The output of sudo apt-get install was:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  stardict-common libdns50 libpcmanx-core0 stardict stardict-plugin-festival
  stardict-plugin-espeak pcmanx-gtk2 ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp
  stardict-gtk imagemagick-doc libestools1.2 stardict-plugin gnuit
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up medibuntu-keyring (2008.04.20) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing medibuntu-keyring (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up python2.5-minimal (2.5.4-1ubuntu6.1) ...
Linking and byte-compiling packages for runtime python2.5...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2196, in <module>
    main()
  File "/usr/bin/pycentral", line 2190, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1746, in run
    pkg = DebPackage('package', pkgname, oldstyle=False)
  File "/usr/bin/pycentral", line 381, in __init__
    self.read_pyfiles()
  File "/usr/bin/pycentral", line 414, in read_pyfiles
    self.pkgconfig.set('pycentral', 'include-links', '0')
  File "/usr/lib/python2.6/ConfigParser.py", line 669, in set
    ConfigParser.set(self, section, option, value)
  File "/usr/lib/python2.6/ConfigParser.py", line 377, in set
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'pycentral'
dpkg: error processing python2.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.5:
 python2.5 depends on python2.5-minimal (= 2.5.4-1ubuntu6.1); however:
  PNo apport report written because the error message indicates its a followup error from a previous failure.
                             No apport report written because MaxReports is reached already
           No apport report written because MaxReports is reached already
                                                                         ackage python2.5-minimal is not configured yet.
dpkg: error processing python2.5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-gda:
 python-gda depends on python2.5 (>= 2.5); however:
  Package python2.5 is not configured yet.
dpkg: error processing python-gda (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-gnome2-extras:
 python-gnome2-extras depends on python-gda (= 2.25.3-3ubuntu1); however:
  Package python-gda is not configured yet.
dpkg: error processing python-gnome2-extras (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 medibunt...

Read more...

Launchpad Janitor (janitor) wrote :

[Expired for python2.5 (Ubuntu) because there has been no activity for 60 days.]

Changed in python2.5 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers