Find the answer to your Linux question:
Results 1 to 3 of 3
I have a problem when trying to upgrade my system (Ubuntu 9.04). I refresh the repository with the: Code: sudo apt-get update and upgrade the packages: Code: sudo apt-get upgrade ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167

    Unhappy [SOLVED] upgrade doesn`t work


    I have a problem when trying to upgrade my system (Ubuntu 9.04). I refresh the repository with the:

    Code:
    sudo apt-get update
    and upgrade the packages:

    Code:
    sudo apt-get upgrade
    but i get an error:

    Code:
    (Reading database ... 143937 files and directories currently installed.)
    Preparing to replace apturl 0.3.3ubuntu1 (using .../apturl_0.3.3ubuntu1.1_all.deb) ...
    Traceback (most recent call last):
      File "/usr/bin/pycentral", line 2190, in <module>
        main()
      File "/usr/bin/pycentral", line 2184, in main
        rv = action.run(global_options)
      File "/usr/bin/pycentral", line 1638, in run
        runtimes = get_installed_runtimes(with_unsupported=True)
      File "/usr/bin/pycentral", line 276, 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.6
    dpkg: warning - old pre-removal script returned error exit status 1
    dpkg - trying script from the new package instead ...
    Traceback (most recent call last):
      File "/usr/bin/pycentral", line 2190, in <module>
        main()
      File "/usr/bin/pycentral", line 2184, in main
        rv = action.run(global_options)
      File "/usr/bin/pycentral", line 1638, in run
        runtimes = get_installed_runtimes(with_unsupported=True)
      File "/usr/bin/pycentral", line 276, 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.6
    dpkg: error processing /var/cache/apt/archives/apturl_0.3.3ubuntu1.1_all.deb (--unpack):
     subprocess new pre-removal script returned error exit status 1
    Traceback (most recent call last):
      File "/usr/bin/pycentral", line 2190, in <module>
        main()
      File "/usr/bin/pycentral", line 2184, in main
        rv = action.run(global_options)
      File "/usr/bin/pycentral", line 1472, in run
        runtimes = get_installed_runtimes()
      File "/usr/bin/pycentral", line 276, 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.6
    dpkg: error while cleaning up:
     subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
     /var/cache/apt/archives/apturl_0.3.3ubuntu1.1_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    The version doesn`t match

    I don`t get it...in /usr/share/python/debian_defaults

    Code:
    # the default python version
    default-version = python2.6
    
    # all supported python versions
    supported-versions = python2.5, python2.6
    
    # formerly supported python versions
    old-versions = python2.3, python2.4
    
    # unsupported versions, including older versions
    unsupported-versions = python2.3, python2.4
    the default version is set to 2.6

    What i did before the uprade is:

    Code:
    sudo update-alternatives --install /usr/bin/python  python /usr/bin/python2.5  10
    sudo update-alternatives --install /usr/bin/python  python /usr/bin/python2.6 1
    sudo update-alternatives --config python
    to set the python 2.5 for the Cedega, because the version 2.6 doesn`t support it, but i set it back to 2.6.

    Now i can`t install any package or upgrade my system
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  2. #2
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167
    So, anyone have no idea?
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  3. #3
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167

    Talking [solved]

    Never mind i solved.

    Code:
    sudo rm /usr/bin/python && sudo ln -s python2.6 /usr/bin/python
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •