Robotics StackExchange | Archived questions

rosdep init - cannot download sources list from...

I've tried installing ros into a virtual machine on several ubuntu packages for several ros permutations that ought to be compatible. I have also downloaded the ros virtual machines from nootrix (http://nootrix.com/software/virtualizing-ros/) - I have tried ros Indigo, Jade and Hydro from this site.

On each occasion, when I enter 'sudo rosdep init' or 'sudo -E rosdep init' I get the 'ERROR: cannot download default sources list from: https://raw.github.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list' message.

There are many other forum posts about this but I have tried the suggestions I have found on these and they all seem to be to no avail.

I am using the 'NAT' network setting in VM Virtualbox and I am not using a proxy server, nor does there seem to be an https_proxy environment variable set in the environment variables.

I have tried copying the sources file to /etc/ros/rosdep/sources.list.d/ but when I do 'rosdep update' I get a similar set of error messages for each entry in sources.list.d:

"ERROR: unable to process source [https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml]: <urlopen error [Errno 1] ssl.c:504: error:140773E8:SSL routines:SSL23G"

I'm sure there is something really basic that I am doing wrong but don't seem to be able to figure out what it is. Thus any debugging advice for the resolution of this issue would be greatly appreciated!

Asked by jannsta on 2016-05-03 08:03:33 UTC

Comments

Basic networking does work in the VM? Does wget https://raw.github.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list work?

Asked by gvdhoorn on 2016-05-03 11:52:09 UTC

Yes and no... On ROS indigo (ubuntu 14.04) that command works. On ROS hydro (ubuntu 12.04 & 10.04 - the ROS version I'm trying to use) I get error message:

OpenSSL: error:140773E8:SSL routines:SSL23_GET_SERVER_HELLO:reason(1000) Unable to establish SSL connection.

Asked by jannsta on 2016-05-04 04:18:17 UTC

Your Hydro VM is probably in need of some updates (various SSL libraries have seen some major updates, and the OS you list are rather old). If you Trusty VM works, can you try sudo rosdep init again? Github sometimes suffers from transient networking errors.

Asked by gvdhoorn on 2016-05-04 04:37:58 UTC

'Unable to establish SSL connection' seems to be consistent behaviour in Ubuntu 12.04 for rosdep init. If I use the manual file (sources.list.d) copy method to get around this step is there a manual workaround for the 'rosdep update' instruction?

Asked by jannsta on 2016-05-05 10:19:30 UTC

Have you updated the ubuntu installation in the VM? There have been numerous updates to (Open)SSL, so I can imagine that the VM is out of date. I'd try that first.

Asked by gvdhoorn on 2016-05-05 11:08:11 UTC

Sorry, yeah I should have mentioned that I made sure all of the Ubuntu updates (for precise pangolin) are up to date. I've tried with the nootrix VM and a second VM that I have set up myself from scratch.

Asked by jannsta on 2016-05-05 12:31:12 UTC

Answers

I have found a anwser. https://blog.csdn.net/u013468614/article/details/102917569

Now, I place my solution here:

1.make a new directory and navigate to it, then create a new document.

$ sudo mkidr -p /etc/ros/rosdep/sources.list.d
$ cd /etc/ros/rosdep/sources.list.d
$ sudo gedit 20-default.list
  1. go to the link https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
  2. copy the contents from the link to the 20-default.list. which may like this:

    os-specific listings first

    yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx

    generic

    yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte

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

    index.yaml instead

  3. replace the all the raw.githubusercontent.com to raw.github.com in 20-default.list document, then save and close it.

  4. run rosdep update

Asked by toby on 2019-11-05 03:39:55 UTC

Comments

Please do not post link-only answers to external sites. The site you link is also in Chinese. ROS Answers has English as its primary language.

At the very least include a summary here in your answer.

Asked by gvdhoorn on 2019-11-05 04:07:37 UTC