Typing commands into a terminal always returns "-bash: /usr/bin/python: is a directory"
- by Artur Sapek
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.