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

I'm new on Ubuntu and ROS. I installed two different distro. (groovy and hydro). When I open the terminal I take this error.

bash: /opt/ros/groovy/setup.bash: No such file or directory  

I remove ROS. I search on internet, type gedit ~/bashrc to delete /opt/ros/hydro/setup.bash in it.

But this file is empty in my case. How can I get rid of this error?

share|improve this question
up vote 1 down vote accepted

You're almost there, the file to edit is $HOME/.bashrc, not just bashrc, don't forget the dot (.) in front of bashrc. Open it from a terminal as:

gedit ~/.bashrc

and remove those lines.

share|improve this answer
This file is also empty.. – lifetime Mar 23 '14 at 12:56
Try to copy the version from /etc/skel: cp /etc/skel/.bashrc ~/ – Sylvain Pineau Mar 23 '14 at 13:00
There was an error as permission denied. I typed 'sudo nano .bashrc' and deleted lines. Thank you.. – lifetime Mar 23 '14 at 13:03
You should own your .bashrc file and do not need to type sudo to edit it. May I suggest to change its ownership? Type: sudo chown your_user_login .bashrc – Sylvain Pineau Mar 23 '14 at 13:08

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.