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

'rosdep init' error when running without internet

asked 2014-02-24 21:56:40 -0500

prince gravatar image

updated 2014-02-25 20:40:45 -0500

Hi I am trying to follow catkin tutorial for hydro. I realise 'sudo rosdep init' and rosdep update command need connection to internet repository. We have a local deb repository of ubuntu & ros in lab and are not connected directly to net. Is there a work around of this problem?

EDIT 2: I have created /etc/ros/rosdep/sources.list.d . In this directory I copied . I modified https URL with local URI as file:///hoe/rosdep/base.yaml etc. Other files are copied from . I have set 20-default.list properly. rosdep update can read from it. After generating HIT for listed yaml files, rosdep start looking for net with the following prompt

 query rosdistro index

This file I have added as one of the yaml files! My current sources.list.d/20-default.list files have following contents

yaml file:///mnt/store/rosdep/osx-homebrew.yaml osx
#yaml osx
# generic
yaml file:///mnt/store/rosdep/base.yaml
yaml file:///mnt/store/rosdep/python.ymal
#gbpdistro fuerte

I do not have any entry relataed to hydro which IMHO rosdep is trying to access.

This link do not works! I do not know whether gbpdistro resolves this into an actual link? A fuerte.yaml is available at but nothing related to hydro or groovy. It is probably because in hydro rosdep is updated. There is a hint in 20-default.list, which read as follows :

newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

I have no idea how set it up.I need help in resolving this issue.

thanks prince

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-02-25 02:51:50 -0500

RedoXyde gravatar image

updated 2014-02-25 22:34:44 -0500


rosdep uses a source.list file (pretty much like apt does): On my system it's located here:


In this .list file you can find several links to github-hosted yaml files.

  • Try creating the file by hand if it doesn't exist
  • Make the necessary changes in the sources.list file, and probably in the .yaml files, so rosdep update can work without Internet access...

Edit: Here's the content of the file. 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

For the yaml files, just fetch the files from github since they're too big to post here.

Edit2 (I can't reply until someone else replies first): You're right, it looks like the gbpdistro lines are useless (rosdep update throws "Ignore legacy gbpdistro "<ros_distro_here>") (It's funny I have them since my setup is only two weeks old...)

Actually, the <ros_distro> specifics can be found in the __index.yaml__ file you linked. There:

    distribution: hydro/distribution.yaml

But I'm not sure you'll need this since you won't have any Internet access to fetch the git sources (for the ROS packages).

From there, I see two options:

  • You trick rosdep, changing your /etc/hosts file and setting up a webserver (where you put the file rosdep tries to download) so it'll use yours and not try to access the Internet
  • You can try the command lines options (see Here) to enforce the update so rosdep is happy and then provides you the system dependencies management you need.
edit flag offensive delete link more


Can you post contents of this file other relevant yaml files?

prince gravatar image prince  ( 2014-02-25 14:05:20 -0500 )edit

I do not have gbpdistro in the 20-default.list. I have edited question to reflect my observations.

prince gravatar image prince  ( 2014-02-25 20:47:43 -0500 )edit

answered 2014-02-26 04:41:53 -0500

Dirk Thomas gravatar image

Besides the urls listed in the sources file rosdep also checks rosdistro for all ROS packages.

In order to use rosdistro locally you need to have a local index.yaml file (from ) and point to it by setting ROSDISTRO_INDEX_URL to a local file url.

Additionally the index file references cache files hosted on . You will also need to have them locally and update the references in the index file to point to the local file location.

edit flag offensive delete link more


Hi, can you tell me how to "setting ROSDISTRO_INDEX_URL to a local file url". So that rosdep update will ignore querry index.yaml from ""

dviettu134 gravatar image dviettu134  ( 2017-09-26 22:26:43 -0500 )edit

Question Tools

1 follower


Asked: 2014-02-24 21:56:40 -0500

Seen: 1,790 times

Last updated: Feb 26 '14