Your message dated Tue, 13 Mar 2012 16:28:31 +0800
with message-id 
<CAN3veRdQuL=hrq49aboupx07grh0af3wythww47+mjwsmkp...@mail.gmail.com>
and subject line These are not bugs
has caused the Debian Bug report #570992,
regarding aptitude: `ValueError' about Python Version
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
570992: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570992
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: aptitude
Version: 0.6.1.5-1
Severity: normal

I wanted to `aptitude upgrade' my system this morning, but failed:
'''
....
ValueError: /usr/bin/python does not match the python default version. It must 
be reset to point to python2.5
....
'''
I think I found the reason. Several days ago, I use `update-alternative' to 
configure my Python from python2.5 to python2.6; however, the upgrade script 
can't figure out the Python version after I have re-pointed to python2.5 via 
`update-alternative', until I manually changed the link `/usr/bin/python' to 
`/usr/bin/python2.5'.

Cheers,
Kejia


-- Package-specific info:
aptitude 0.6.1.5 compiled at Jan 21 2010 06:50:12
Compiler: g++ 4.4.3 20100108 (prerelease)
Compiled against:
  apt version 4.8.0
  NCurses version 5.7
  libsigc++ version: 2.2.4.2
  Ept support enabled.
  Gtk+ support disabled.

Current library versions:
  NCurses version: ncurses 5.7.20090803
  cwidget version: 0.5.16
  Apt version: 4.8.0
        linux-vdso.so.1 =>  (0x00007fff20b2f000)
        libapt-pkg-libc6.9-6.so.4.8 => /usr/lib/libapt-pkg-libc6.9-6.so.4.8 
(0x00007fca43df3000)
        libncursesw.so.5 => /lib/libncursesw.so.5 (0x00007fca43ba2000)
        liblog4cxx.so.10 => /usr/lib/liblog4cxx.so.10 (0x00007fca437b4000)
        libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0x00007fca435af000)
        libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007fca432e3000)
        libept.so.0 => /usr/lib/libept.so.0 (0x00007fca4306b000)
        libxapian.so.15 => /usr/lib/libxapian.so.15 (0x00007fca42d15000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007fca42afe000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007fca42870000)
        libboost_iostreams.so.1.40.0 => /usr/lib/libboost_iostreams.so.1.40.0 
(0x00007fca42665000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007fca42449000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fca42138000)
        libm.so.6 => /lib/libm.so.6 (0x00007fca41eb6000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fca41ca0000)
        libc.so.6 => /lib/libc.so.6 (0x00007fca4194b000)
        libutil.so.1 => /lib/libutil.so.1 (0x00007fca41748000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007fca41544000)
        libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0x00007fca41320000)
        libdb-4.8.so => /usr/lib/libdb-4.8.so (0x00007fca40fa6000)
        libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x00007fca40d6e000)
        libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007fca40b5d000)
        librt.so.1 => /lib/librt.so.1 (0x00007fca40955000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fca440cf000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00007fca40750000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007fca40519000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fca402f1000)
Terminal: xterm
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages aptitude depends on:
ii  apt [libapt-pkg-libc6.9 0.7.25.3         Advanced front-end for dpkg
ii  libboost-iostreams1.40. 1.40.0-6+b1      Boost.Iostreams Library
ii  libc6                   2.10.2-5         Embedded GNU C Library: Shared lib
ii  libcwidget3             0.5.16-3         high-level terminal interface libr
ii  libept0                 0.5.30           High-level library for managing De
ii  libgcc1                 1:4.4.3-1        GCC support library
ii  liblog4cxx10            0.10.0-1.1       A logging library for C++
ii  libncursesw5            5.7+20090803-2   shared libraries for terminal hand
ii  libsigc++-2.0-0c2a      2.2.4.2-1        type-safe Signal Framework for C++
ii  libsqlite3-0            3.6.22-1         SQLite 3 shared library
ii  libstdc++6              4.4.3-1          The GNU Standard C++ Library v3
ii  libxapian15             1.0.17-1         Search engine library
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages aptitude recommends:
ii  apt-xapian-index              0.22       maintenance tools for a Xapian ind
ii  aptitude-doc-en [aptitude-doc 0.6.1.5-1  English manual for aptitude, a ter
pn  libparse-debianchangelog-perl <none>     (no description available)
ii  sensible-utils                0.0.2      Utilities for sensible alternative

Versions of packages aptitude suggests:
pn  debtags                       <none>     (no description available)
ii  tasksel                       2.81       Tool for selecting tasks for insta

-- no debconf information



--- End Message ---
--- Begin Message ---
These bug reports all concern the same error:

> ValueError: /usr/bin/python does not match the python default
> version. It must be reset to point to python2.5

which is raised in pyversions (note: multiple copies around).

The error is triggered by users who have taken it upon themselves to
change their python default version by altering the symlink
/usr/bin/python (either manually or using update-alternatives).

This is *not* a bug.  It is a safety mechanism to guard against
users who have broken their systems.

To fix the error, repair the symlink:

# ln -sf python2.6 /usr/bin/python

where 'python2.6' is the version reported in the ValueError.


Files in /usr/bin are system managed. A user should not change
them. If you do, you have an unsupported, potentially broken system.

You can not expect the system packaged software to work with a
modified /usr/bin/python.

If you desire to use a different version yourself, please set such a
symlink in /usr/local/bin.  Private scripts can then use either:

#!/usr/local/bin/python

or:

#!/usr/bin/env python


Refer to these messages:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485393#14
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551141#10
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573315#15
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597424#10

and the FHS:

http://www.pathname.com/fhs/


--- End Message ---
_______________________________________________
Aptitude-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel

Reply via email to