/catkin_ws/devel/setup.bash:没有这样的文件或目录

/catkin_ws/devel/setup.bash:没有这样的文件或目录

我怎样才能删除它?

bash: /opt/ros/kinetic/setup.bash: No such file or directory
bash: /home/pro/catkin_ws/devel/setup.bash: No such file or directory
bash: /home/pro/catkin_ws/devel/setup.bash: No such file or directory
bash: /home/pro/catkin_ws/devel/setup.bash: No such file or directory
bash: /home/pro/catkin_ws/devel/setup.bash: No such file or directory
bash: /home/pro/catkin_ws/devel/setup.bash: No such file or directory

答案1

该程序在您的文件中留下了一些不必要的行~/.bashrcgedit ~/.bashrc请找到并删除它们。

source/opt/ros/jade/setup.bash是通过您在屏幕截图中输入的命令添加的:$ echo "source/opt/ros/jade/setup.bash" >> ~/.bashrc

答案2

我也遇到了这个问题,但我有一个不同的解决方案。我正在使用zsh,我需要更改:

source ~/catkin_ws/devel/setup.bash

source ~/catkin_ws/devel/setup.zsh

在我的.zshrc

相关内容