Ask Your Question
0

I installed ros kinetic but it says there's no file directory for bash electric

asked 2018-10-22 23:49:27 -0500

Samah gravatar image

updated 2018-10-23 02:12:36 -0500

gvdhoorn gravatar image

I installed Ros KInetic, using ubunto 16.04 But now everytime I open the terminal there's

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

and everytime I try using those commands

echo "source /opt/ros/electric/setup.bash" >> ~/.bashrc
. ~/.bashrc

I get an identical line in addiction

so now whenever I open the terminal there are 5 lines of it

bash: /opt/ros/electric/setup.bash: No such file or directory
bash: /opt/ros/electric/setup.bash: No such file or directory
bash: /opt/ros/electric/setup.bash: No such file or directory
bash: /opt/ros/electric/setup.bash: No such file or directory
bash: /opt/ros/electric/setup.bash: No such file or directory
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2018-10-23 02:14:41 -0500

gvdhoorn gravatar image

Electric is of course not ROS Kinetic, so those error messages are to be expected when you have Kinetic installed and not Electric.

To get rid of the errors however, do the following:

gedit $HOME/.bashrc

now scroll all the way to the end of the file (bottom) and remove all the lines that look like the following:

source /opt/ros/electric/setup.bash

There should be five of those.


And could you please tell us where you found instructions to run echo "source /opt/ros/electric/setup.bash" >> ~/.bashrc after having installed ROS Kinetic? Because that would be incorrect and should be fixed.

edit flag offensive delete link more

Comments

Thank you, it worked. No, it wasn't during the installation. I had a problem with bash before so I probably copied an answer on a forum that contained electric.

Samah gravatar image Samah  ( 2018-10-23 03:18:06 -0500 )edit
1

so I probably copied an answer on a forum that contained electric.

I know it's difficult when you're just starting out, but please always be careful when copy-pasting commands from (old) forum posts. They may no longer be relevant and could actually make things worse.

gvdhoorn gravatar image gvdhoorn  ( 2018-10-23 03:19:20 -0500 )edit

Yes, thank you. and of course I'll keep that in mind.

Samah gravatar image Samah  ( 2018-10-23 03:39:16 -0500 )edit

As you say the above "echo ..." line is incorrect and you would like to know where is it still present. You can still find it for the kinetic ROS at http://wiki.ros.org/kinetic/Installat... , I have just followed those instructions and got the error you describe for electric ROS. Thanks for the solution anyway.

SANDY gravatar image SANDY  ( 2020-05-26 04:53:18 -0500 )edit

I don't understand your comment.

The link your mention does not have the word electric anywhere on the page, so I'm confused as to how you would get an error mentioning it.

gvdhoorn gravatar image gvdhoorn  ( 2020-05-26 05:41:08 -0500 )edit
0

answered 2018-10-23 02:12:12 -0500

l4ncelot gravatar image

updated 2018-10-23 02:14:36 -0500

You're sourcing bad setup.bash file which doesn't exist (the path is wrong). Delete those lines from .bashrc and add instead source /opt/ros/kinetic/setup.bash.

Then source your .bashrc or reopen terminal.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-10-22 23:49:27 -0500

Seen: 1,028 times

Last updated: Oct 23 '18