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 -0600

Samah gravatar image

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

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 -0600

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 imageSamah ( 2018-10-23 03:18:06 -0600 )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 imagegvdhoorn ( 2018-10-23 03:19:20 -0600 )edit

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

Samah gravatar imageSamah ( 2018-10-23 03:39:16 -0600 )edit
0

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

l4ncelot gravatar image

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

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 -0600

Seen: 440 times

Last updated: Oct 23 '18