tags:

views:

124

answers:

2

I update the kernel, after that the Ubuntu doesn't work well, PS: I try to exec "meld" command, it will report that "/usr/bin/env: python: No such file or directory", then I exec "sudo apt-get install python" and get the result "python is already the newest version.", what should I do for it.

A: 

If you are trying to run python from the command line, you should just be able to type python from the prompt.

me@me-laptop:-$ python

You will see something like this returned:

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
type "help", "copyright", "credits" or "license" for more information.
>>> 
gary comtois
Thank you, I run python, get the same result " /usr/bin/python: No such file or directory"
Hao
I try to remove python and reinstall, but fail.
Hao
run dpkg --get-selections | grep python
Hao
some package age purge
Hao
A: 

I'm not good at linux, can you tell me how to revert my linux to the last right status, or reinstall the python normally.

Hao
now, I can't remove the python, and install hava some error.
Hao
hmm, have you tried the Synaptic Package Manager? (and technically your answer should be a comment or in your original question as an edit)
gary comtois
System > Administration > Synaptic Package Manager or something... search for python. Its square should be green if you have it installed.
gary comtois