How can I resolve the bash: rosrun: command not found error in ROS?

2026-04-30 20:324阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计170个文字,预计阅读时间需要1分钟。

How can I resolve the bash: rosrun: command not found error in ROS?

1. 当运行 `rosrun` 时出现如下错误: /usr/bin/rosrun: line 56: rospack: command not found 解决方法:运行 `sudo apt-get install rosbash`

2. 然后,再次运行 `rosrun` 命令,若出现以下错误: /usr/bin/rosrun: line 56: rospack: command not found 那是因为 ROS 安装不完整。


1.当ros在运行rosrun的时候出现如上错误。

解决方法:

sudo apt-get install rosbash

如下图:

2.然后再运行rosrun命令,又出现如下错误?

How can I resolve the bash: rosrun: command not found error in ROS?

/usr/bin/rosrun: line 56: rospack: command not found

那是因为ros安装的时候没有添加路径:

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc

然后继续就可以了

本文共计170个文字,预计阅读时间需要1分钟。

How can I resolve the bash: rosrun: command not found error in ROS?

1. 当运行 `rosrun` 时出现如下错误: /usr/bin/rosrun: line 56: rospack: command not found 解决方法:运行 `sudo apt-get install rosbash`

2. 然后,再次运行 `rosrun` 命令,若出现以下错误: /usr/bin/rosrun: line 56: rospack: command not found 那是因为 ROS 安装不完整。


1.当ros在运行rosrun的时候出现如上错误。

解决方法:

sudo apt-get install rosbash

如下图:

2.然后再运行rosrun命令,又出现如下错误?

How can I resolve the bash: rosrun: command not found error in ROS?

/usr/bin/rosrun: line 56: rospack: command not found

那是因为ros安装的时候没有添加路径:

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc

然后继续就可以了