Error when I open the terminal: `bash: /opt/ros/kinetic/setup.bash: No such file or directory`

asked 2019-11-07 12:08:45 -0600

JoApril gravatar image

I know this question was posted before, but none of the solutions works for me. I can find in ./bashrc the lines /opt/ros/kinetic/setup.bash, but it still doesn't work. I don't know if it has anything to do with the fact that I recently installed anaconda3, but sortly after I installed this error appeared whenever I open the terminal.

edit retag flag offensive close merge delete

Comments

1

Does the file located at /opt/ros/kinetic/setup.bash actually exist (it doesn't look like it)? Are you actually using ROS Kinetic? Is it possible that you copied/pasted something offline for the wrong version of ROS? How did you install ROS?

jarvisschultz gravatar image jarvisschultz  ( 2019-11-07 15:42:23 -0600 )edit

It doesn't exist. I've been using ROS for the last year frequently, everything worked well until a few days ago. That's why I don't understand what caused the problem.

JoApril gravatar image JoApril  ( 2019-11-08 18:26:01 -0600 )edit

Have you installed any new software 'a few days ago'? Performed any upgrades/updates?

What is the output of dpkg -l | grep ros-kinetic?

gvdhoorn gravatar image gvdhoorn  ( 2019-11-09 04:25:21 -0600 )edit

I did install Anaconda and Tensorflow recently and I think that that is the problem. I'm more curious why it happened, because I think I have to re install ROS again, anyway. The output of dpkg -l | grep ros-kinetic shows me the installed packages.

JoApril gravatar image JoApril  ( 2019-11-09 07:15:44 -0600 )edit
1

I'm more curious why it happened, because I think I have to re install ROS again

disregarding the fact that you cannot find a line source /opt/ros/kinetic/setup.bash in your .bashrc: there is a possibility that you installed a .deb package that required another package that conflicted with (some) ROS package. That could cause apt to uninstall all packages that conflict, leading to files being removed.

The output of dpkg -l | grep ros-kinetic shows me the installed packages.

yes .. that I had expected. I was more interested in knowing specifically which packages. Please append the list to your original question. Use the edit button/link for that.

gvdhoorn gravatar image gvdhoorn  ( 2019-11-09 09:12:53 -0600 )edit