Typing commands into a terminal always returns "-bash: /usr/bin/python: is a directory"

Posted by Artur Sapek on Ask Ubuntu See other posts from Ask Ubuntu or by Artur Sapek
Published on 2011-11-13T01:05:39Z Indexed on 2011/11/13 2:08 UTC
Read the original article Hit count: 498

Filed under:
|
|

I think I messed something up on my Ubuntu server while trying to upgrade to Python 2.7.2. Every time I type in a command that doesn't have a response, the default from bash is this:

-bash: /usr/bin/python: is a directory

Just like it would say if I typed the name of a directory. But this happens every time I enter a command that doesn't do anything.

artur@SERVER:~$ dslkfjdsklfdshjk
-bash: /usr/bin/python: is a directory

I remember messing with the update-alternatives to point at python at some point, perhaps that could be it? Any inklings as to why this is happening?

Related to this problem is also the fact that when I try using easy_install it tells me

-bash: /usr/bin/easy_install: /usr/bin/python: bad interpeter: Permission denied

/etc/fstab/ is set to exec. I've read that could fix the second problem but it hasn't.

© Ask Ubuntu or respective owner

Related posts about server

Related posts about bash