Error when I open the terminal: `bash: /opt/ros/kinetic/setup.bash: No such file or directory`
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.
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?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.
Have you installed any new software 'a few days ago'? Performed any upgrades/updates?
What is the output of
dpkg -l | grep ros-kinetic
?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.
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 causeapt
to uninstall all packages that conflict, leading to files being removed.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.