Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had done something like:

http://paste.ubuntu.com/704579/

I kind of want to undo that one.

While trying to remove virtualbox-ose I get the error saying

Removing virtualbox-ose ...
 * Stopping VirtualBox kernel modules                                    [ OK ] 
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2300, in <module>
    main()
  File "/usr/bin/pycentral", line 2294, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1653, in run
    runtimes = get_installed_runtimes(with_unsupported=True)
  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.6
dpkg: error processing virtualbox-ose (--remove):
 subprocess installed pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2300, in <module>
    main()
  File "/usr/bin/pycentral", line 2294, 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.6
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 virtualbox-ose
E: Sub-process /usr/bin/dpkg returned an error code (1)

There is a line which says /usr/bin/python does not match the python default version. It must be reset to point to python2.6

So my question is how to get /usr/bin/python to match the default version (python2.6)?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Assuming you have another version [i.e. 2.7] and also have 2.6 installed, I would do this:

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

Then, python would be a symbolic link to python2.6

This is what you are asking, right? Or am I missing something here.

share|improve this answer
    
thanx this worked. :) –  deostroll Oct 9 '11 at 6:30
    
Cool, you're welcome –  Matt Oct 9 '11 at 21:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.