Linux – How to fix “command not found” when it appears starting terminal on ubuntu

linuxUbuntu

When I run the terminal in my elementary OS(Ubuntu 14.04 dist) it appears as follow:

Support: command not found
anargu@anargu-notebook-PC:~$

the first line (Support: …) appeared after trying to install nodejs but I had problems to install it and I tried to install like 5 times in different ways and finally I could install it. But the "Support: command not found" appeared each time I run the terminal.

I'm new in ubuntu and I don't know what it refers with Support but I can type some commands like ls, cd, sudo apt-get and those work fine. So, please someone can help me?

Thanks in advance

Best Answer

The bash error "xxxxxx: command not found" shows up when you try to run a command/program that's not installed or not in the path, etc. Per Hastur's comment, searching for "Support" in .bashrc is a great idea, and check .login & .profile too if they exist (I don't think they should be running just for opening a terminal.

Could be in the ~/.bashrc file. In general to find a mystery error I'd test it like this:

Try opening a terminal and type

source ~/.bashrc

If the error shows up, then it's definitely something in there that's the problem. Look through the file for the line that causes the error - could go line by line pasting into a terminal if it's not overwhelming, or add echo "step 1" ... echo "step 2" etc lines to narrow it down. Then remove/modify the offending line.

Related Question