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

"rosdep update" error in Kinetic

asked 2018-03-07 05:08:55 -0500

altella gravatar image

updated 2018-03-08 06:38:52 -0500

Hello all;

I am installing Ros Kinetic in a new machine with Ubuntu 16.04. Everything goes fine, until I try to do a "rosdep update" command. I obtain the following errors repetedly:

reading in sources list data from /etc/ros/rosdep/sources.list.d
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
    <urlopen error no host given> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:
    <urlopen error no host given> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:
    <urlopen error no host given> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:
    <urlopen error no host given> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
    Failed to download target platform data for gbpdistro:
    <urlopen error no host given>
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index.yaml
ERROR: error loading sources list:
    <urlopen error <urlopen error no host given> (https://raw.githubusercontent.com/ros/rosdistro/master/index.yaml)>

I have already read the related questions and answers related to this issue, but none of them fully applies to my problem.

EDIT (links to questions and answers):

https://answers.ros.org/question/1629...

https://answers.ros.org/question/2773...

https://github.com/ros-infrastructure...

https://github.com/ros/rosdistro/issu...

https://github.com/ros-infrastructure...

http://blog.csdn.net/gddxz_zhouhao/ar...

The rosdep update output that I am obtaining is:

a4blue@a4blue-HP-EliteDesk-800-G3-TWR:~$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d

-------------------

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

----------------

ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
    <urlopen error no host given> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)

-------------------

url: 'https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml'

----------------

ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:
    <urlopen error no host given> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)

------------------

url: 'https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml'

----------------

ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:
    <urlopen error no host given> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)

-------------------

url: 'https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml'

----------------

ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:
    <urlopen error no host given> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
    Failed to download target platform data for gbpdistro:
    <urlopen error ...
(more)
edit retag flag offensive close merge delete

Comments

Can you link us to the Q&As you've already looked at? Just to avoid forum members from suggesting the same solutions.

You can use the q#nnnnnn format to link to questions, don't need to copy-paste the complete url.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-07 05:26:52 -0500 )edit

Probably start with the regular things to check:

  • ping github.com works?
  • are you behind a (company) firewall or proxy server?
  • can you wget any of those URLs?
  • is your computers clock and date set correctly?
gvdhoorn gravatar image gvdhoorn  ( 2018-03-07 08:06:28 -0500 )edit

Everything is ok. ping works, I can do wget, clock and date correct. In the same company network, I have installed other previous versions of ROS without problems.

altella gravatar image altella  ( 2018-03-07 08:56:13 -0500 )edit

urlopen error no host given

this seems to suggest that there is no host part in the url passed to urlopen. If you can, it would probably be easiest to instrument the rosdep code to get it to print whatever URL it is about to pass to urllib and see whether something is wrong there.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-07 08:58:08 -0500 )edit

I have installed other previous versions of ROS without problems.

that doesn't necessarily mean that something couldn't have changed that now prevents you from doing the same of course.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-07 08:58:59 -0500 )edit

I know...I am going to try to install Kinetic in another machine just to check. How can I make rosdep to print the information you a referring to?

altella gravatar image altella  ( 2018-03-07 09:10:42 -0500 )edit

I am going to try to install Kinetic in another machine just to check

that might be a bit drastic. What about installing Docker on a machine (if it doesn't already have it) and then using the ros:kinetic image see if rosdep wants to play nice? You could even do that on your own machine.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-07 13:00:56 -0500 )edit

How can I make rosdep to print the information you a referring to?

by editing the sources. I don't think there is a built-in facility for this unfortunately.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-07 13:01:22 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-03-09 03:13:06 -0500

altella gravatar image

Hi all, Problem solved. In the machine where I was trying to install Kinectic, at the end of the .bashrc file, there were the following lines:

export http_proxy=''
export https_proxy=''
export ftp_proxy=''
export socks_proxy=''

which were making rosdep fail. After commenting these lines, installation has gone ok as always. Thanks a lot for the fast received help.

edit flag offensive delete link more

Comments

  • are you behind a (company) firewall or proxy server?

so it was a proxy after all :)

The no host specified error could then have come from urllib(2) complaining that *_proxy variables were set, but did not specify "a host".

gvdhoorn gravatar image gvdhoorn  ( 2018-03-09 06:00:44 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-03-07 05:08:55 -0500

Seen: 3,796 times

Last updated: Mar 09 '18