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.

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

1 Answer 1

up vote 0 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 at 12:56
    
Try to copy the version from /etc/skel: cp /etc/skel/.bashrc ~/ –  Sylvain Pineau Mar 23 at 13:00
    
There was an error as permission denied. I typed 'sudo nano .bashrc' and deleted lines. Thank you.. –  lifetime Mar 23 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 at 13:08

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.