# error in rosdep initialization

When i tried to initialize rosdep, (xubuntu 14.04 is installed.)

sudo rosdep init


It gives following error

ERROR: cannot download default sources list from: https://raw.github.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list. Website may be down.


My proxies are correct. Any idea what is wrong?

edit retag close merge delete

What do you mean by "My proxies are correct" ?

( 2016-05-18 04:21:05 -0500 )edit

Sort by » oldest newest most voted

sudo by default does not preserve environment. You need to use the -E option to preserve the environment which is where I presume you're setting up your proxies. Use:

sudo -E rosdep init


more

The following works for me: 1. sudo su 2. sudo rosdep init 3. Ctrl-D 4. rosdep update In case this error:

try rosdep update again

more

Manually creating each file and pointing to them using file:// and their path instead of the web URL as tfoote suggested has solved this problem but hasn't improved my situation much.

If you just open the raw github link that it returns in your error code (i.e. //raw.github.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list) and copy its contents into a file called 20-default.list in /etc/ros/rosdep/sources.list.d/ then you should be able to skip the rosdep init step and proceed to rosdep update.

As you'll see after this you will have to indivdually do this for each link inside 20-default.list so I'm still stuck but slowly working through my problems. Hopefully this helps you and thank tfoote for suggesting the fix. If I manage to figure out anything else I'll let you know

more

Hello! I have found the reason:

@ama wrote: "My proxies are correct."

My problem appeared after proxy setup, so I was looking into the problem.

In my environment I had "https_proxy" and "HTTPS_PROXY" declared with an empty string. All the tools, apt, wget, curl works fine with this, but rosdep init AND rosdep update fails (version 0.11.4 here)

So you just have to unset these, and voila...

more

Could you please descrive how to do this. I mean which commands are used please? Thx

( 2016-05-18 04:17:54 -0500 )edit

First, you should remove the /etc/ros/rosdep/sources.list.d/20-default.list; and then do this ''sudo rosdep init''. I work it out, you can try it.

more