error message installing python2.5-minimal

Bug #485602 reported by bob
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python2.5 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: python2.5-minimal

After system hang while update manager was running in Ubuntu 9.10, I get the following when in a root terminal

 apt-get -bf install python2.5-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.5-minimal is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up python2.5-minimal (2.5.4-1ubuntu6) ...
Linking and byte-compiling packages for runtime python2.5...
/usr/lib/python2.5/site-packages/Onboard/KeyboardSVG.py:104: Warning: 'with' will become a reserved keyword in Python 2.6
Compiling /usr/lib/python2.5/site-packages/Onboard/KeyboardSVG.py ...
  File "/usr/lib/python2.5/site-packages/Onboard/KeyboardSVG.py", line 104
    with open(pane_svg_filename) as svg_file:
            ^
SyntaxError: invalid syntax

Errors were ignored.
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 412, in read_pyfiles
    self.pkgconfig.readfp(file(config_file))
  File "/usr/lib/python2.6/ConfigParser.py", line 305, in readfp apt-get -bf install python2.5-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.5-minimal is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up python2.5-minimal (2.5.4-1ubuntu6) ...
Linking and byte-compiling packages for runtime python2.5...
/usr/lib/python2.5/site-packages/Onboard/KeyboardSVG.py:104: Warning: 'with' will become a reserved keyword in Python 2.6
Compiling /usr/lib/python2.5/site-packages/Onboard/KeyboardSVG.py ...
  File "/usr/lib/python2.5/site-packages/Onboard/KeyboardSVG.py", line 104
    with open(pane_svg_filename) as svg_file:
            ^
SyntaxError: invalid syntax

Errors were ignored.
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 412, in read_pyfiles
    self.pkgconfig.readfp(file(config_file))
  File "/usr/lib/python2.6/ConfigParser.py", line 305, in readfp
    self._read(fp, filename)
  File "/usr/lib/python2.6/ConfigParser.py", line 482, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /usr/share/pyshared-data/python-pysqlite2, line: 1
'db. Building the locate database.\n'
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 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 python2.5-minimal
 python2.5
E: Sub-process /usr/bin/dpkg returned an error code (1)

    self._read(fp, filename)
  File "/usr/lib/python2.6/ConfigParser.py", line 482, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /usr/share/pyshared-data/python-pysqlite2, line: 1
'db. Building the locate database.\n'
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 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 python2.5-minimal
 python2.5
E: Sub-process /usr/bin/dpkg returned an error code (1)

My dpkg seems to be corrupt but if I try to remove the python2.5-minimal package, I will remove a whole lot more packages that I don't want to lose.

Package version follows
root@wt:/home/bob# apt-cache policy python2.5-minimal
python2.5-minimal:
  Installed: 2.5.4-1ubuntu6
  Candidate: 2.5.4-1ubuntu6
  Version table:
 *** 2.5.4-1ubuntu6 0
        500 http://gb.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Can you help?

ProblemType: Bug
Architecture: i386
Date: Fri Nov 20 00:58:53 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gnome-terminal
Package: gnome-terminal 2.28.1-0ubuntu1
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: gnome-terminal
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
bob (bob-harris-tulchan) wrote :
Revision history for this message
MedO (smaxein) wrote :

This happens for me as well, at least the part about a syntax error in KeyboardSVG.py. Apart from the message the install worked for me though, i.e. the error was ignored and did not prevent the package from being marked as configured.

Changed in python2.5 (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.