Package: python2.6
Version: 2.6.4-6
Severity: important

python2.5 is the default python for Debian.  2.5 is old and I have installed 
2.6 and set /usr/bin/python to use python2.6 as the default.  This seems to 
work fine except for installing package upgrades.  I get messages like the 
following when I install some python packages.

dpkg: error processing /var/cache/apt/archives/python-apt_0.7.93.3_i386.deb 
(--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2191, in <module>
    main()
  File "/usr/bin/pycentral", line 2185, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1477, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default 
version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must 
be reset to point to python2.5
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Preparing to replace python-support 1.0.6.1 (using 
.../python-support_1.0.6.1_all.deb) ...
Unpacking replacement python-support ...
Processing triggers for man-db ...
Traceback (most recent call last):
  File "/usr/bin/lsb_release", line 26, in <module>
    import lsb_release
ImportError: No module named lsb_release
Errors were encountered while processing:
 /var/cache/apt/archives/python-apt_0.7.93.3_i386.deb


Surely it is possible to use python 2.6 or 3.x as the default on a Debian 
system.  What else needs to be done other than changing /usr/bin/python back to 
2.5 whenever installing or upgrading packages?


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.100210 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python2.6 depends on:
ii  libbz2-1.0                1.0.5-4        high-quality block-sorting file co
ii  libc6                     2.10.2-6       Embedded GNU C Library: Shared lib
ii  libdb4.7                  4.7.25-9       Berkeley v4.7 Database Libraries [
ii  libncursesw5              5.7+20090803-2 shared libraries for terminal hand
ii  libreadline6              6.1-1          GNU readline and history libraries
ii  libsqlite3-0              3.6.22-1       SQLite 3 shared library
ii  mime-support              3.48-1         MIME files 'mime.types' & 'mailcap
ii  python2.6-minimal         2.6.4-6        A minimal subset of the Python lan

python2.6 recommends no packages.

Versions of packages python2.6 suggests:
ii  binutils                      2.20-6     The GNU assembler, linker and bina
ii  python2.6-doc                 2.6.4-6    Documentation for the high-level o
pn  python2.6-profiler            <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to