Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

enter image description here

I've uninstalled ROS with:

sudo apt-get purge ros-*

Then when I open terminal I get this message. I have no idea how to solve it.

P.S. Because of the error I can't install ROS again.

share|improve this question
up vote 3 down vote accepted

Open ~/bashrc file (using gedit ~/bashrc command) and search for this string: /opt/ros/hydro/setup.bash. If you find if, remove the code which is using it. If no, search in the other shell initialization files. It should be somewhere.

The files that contain initialization commands when a shell is invoked are: /etc/profile, /etc/bashrc, ~/.bash_login, ~/.profile, ~/.bashrc, ~/.bash_aliases and maybe others. See Shell initialization files.

To quickly check if one of these files have something wrong inside, you can use source command. For example:

source ~/.bashrc

See also: "♦: command not found" in tty after login

share|improve this answer
I found that string in ~/.bashrc file and deleted it and it works :) Thank you @Radu – NadirHajiyev Oct 29 '13 at 10:22

Your Answer


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.