Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 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

 
discard

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.