ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rosdep error view is empty [closed]

asked 2013-06-20 16:58:14 -0500

AlphaSierra gravatar image

updated 2013-06-24 16:58:13 -0500

I'm attempting to go though this tutorial:

I managed to successfully create the packages, however when I try and run

rospack depends1 beginner_tutorials

Then I got this error:

[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'

After doing both of those things nothing seems to be working. Does anyone know how to go about fixing this? It presents the error no matter what packages I try the command on.


That's got it. Thanks for the assistance. I'll update my answers in the future, thanks for reminding me!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-05-28 22:20:31.983322

2 Answers

Sort by ยป oldest newest most voted

answered 2013-06-22 20:08:49 -0500

Dirk Thomas gravatar image

updated 2013-06-24 12:05:04 -0500

You have likely skipped parts of the installation instructions: especially 1.5 of

If you have executed the two command to initialize and update rosdep what was the output? Did they failed?


As your output shows you are calling "rosdep update" with sudo which makes it generate the rosdep database in the home folder of the user root and not in the home folder of your actual user. Just run "rosdep update" (without root) as suggested by the original error message and it should work.

edit flag offensive delete link more


I didn't miss that step while I was installing. Initializing and updating have never returned errors for me.

AlphaSierra gravatar image AlphaSierra  ( 2013-06-22 23:08:18 -0500 )edit

Can you post the output of the commands? And the content of the file /etc/ros/rosdep/sources.list.d/20-default.list as well as the listing of the folder ~/.ros/rosdep/sources.cache/.

Dirk Thomas gravatar image Dirk Thomas  ( 2013-06-23 08:07:47 -0500 )edit

See the answer below, the output was too long for a comment.

AlphaSierra gravatar image AlphaSierra  ( 2013-06-24 11:52:56 -0500 )edit

Please update your question in the future and not post it as an answer.

Dirk Thomas gravatar image Dirk Thomas  ( 2013-06-24 12:01:17 -0500 )edit

Running rosdep update removed my entire ros install.

meropis gravatar image meropis  ( 2022-10-21 06:44:01 -0500 )edit

answered 2013-06-24 11:52:20 -0500

AlphaSierra gravatar image

Here is the data you asked for:

vboxuser@debian:~$ sudo rm /etc/ros/rosdep/sources.list.d/20-default.list 
vboxuser@debian:~$ sudo rosdep init
Wrote /etc/ros/rosdep/sources.list.d/20-default.list
Recommended: please run

    rosdep update

vboxuser@debian:~$ sudo rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Ignore legacy gbpdistro "groovy"
Ignore legacy gbpdistro "hydro"
Query rosdistro index
Add distro "groovy"
Add distro "hydro"
updated cache in /root/.ros/rosdep/sources.cache
vboxuser@debian:~$ cat /etc/ros/rosdep/sources.list.d/20-default.list
# os-specific listings first
yaml osx
yaml gentoo

# generic
gbpdistro fuerte
gbpdistro groovy
gbpdistro hydro
vboxuser@debian:~$ cat ~/.ros/rosdep/sources.cache/
cat: /home/vboxuser/.ros/rosdep/sources.cache/: No such file or directory
edit flag offensive delete link more



Please edit your question to add more information.

tfoote gravatar image tfoote  ( 2013-06-24 12:00:05 -0500 )edit

Question Tools


Asked: 2013-06-20 16:58:14 -0500

Seen: 15,926 times

Last updated: Jun 24 '13