/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

~/.bashrc該程式在您的文件中留下了一些不必要的行。gedit ~/.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

相關內容