我怎样才能删除它?
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