Ask Your Question

roscd: No such package/stack 'turtle'

asked 2019-03-01 15:38:51 -0500

willydlw gravatar image

updated 2019-03-01 16:00:50 -0500

gvdhoorn gravatar image

I am following the Navigating the ROS file system tutorial and have followed the prior tutorials in order. Everything has worked correctly until the step

roscd turtle


roscd: No such package/stack 'turtle'

This command was run from /opt/ros/melodic/share/roscpp_tutorials directory. I am in that directory as a result of following the prior commands.

Operating system: Ubuntu 18.04, kernel 4.15.0-45-generic ROS version: melodic

Tutorial link:

env | grep ROS produces the following:

edit retag flag offensive close merge delete


I was fooled too, would be interesting to add this explanation in the doc

phil123456 gravatar image phil123456  ( 2020-02-07 17:59:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-01 16:11:03 -0500

They aren't asking you to run roscd turtle... They are demonstrating how TAB completion works. They want you to type roscd turtle and then hit TAB twice to see all packages that start with the word turtle. They eventually want you to run roscd turtlesim/ which should change directory to the turtlesim package's root directory.

The "No such package/stack" error is because you are trying to change to the root directory of a package called turtle, but there is no package called turtle.

edit flag offensive delete link more


Guess I should have been more patient. I type roscd turtle and press the tab key once, nothing happens. I then hit the enter key and got that message. If I press the tab key twice I do get the list. Your answer helped me to be more patient and pay closer attention. Thank you.

willydlw gravatar image willydlw  ( 2019-03-01 16:26:27 -0500 )edit

Glad everything worked out! If your question is answered, it would be great if you marked this as the correct answer.

jarvisschultz gravatar image jarvisschultz  ( 2019-03-01 17:48:44 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-03-01 15:38:51 -0500

Seen: 1,282 times

Last updated: Feb 07 '20