Robotics StackExchange | Archived questions

package 'turtlesim' not found

Hello, I'm using ROS melodic on Ubuntu and following tutorial 5 on wiki.ros.org, and I am meant to be running turtlesim, but I am getting this message:

[rospack] Error: package 'turtlesim' not found

I am not getting results on google when searching for this error and to my understanding I thought turtlesim already came installed with ros. I am new to ROS so can anyone tell me why this error is happening?

Asked by topological on 2022-08-09 07:27:45 UTC

Comments

Did you install ROS via apt?

Asked by ravijoshi on 2022-08-09 22:40:26 UTC

Answers

Hi

Can you try

sudo apt-get install ros-melodic-turtlesim

Asked by muratcngncr on 2022-08-09 07:45:40 UTC

Comments

Hi, i tried that and i get this message:

E: Unable to locate package ros-melodic-turtlesim

Asked by topological on 2022-08-09 08:27:18 UTC

Try like this

sudo apt-get install ros-$(rosversion -d)-turtlesim

Asked by muratcngncr on 2022-08-09 08:36:00 UTC