问题描述
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 [Errno 111] Connection refused> (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 [Errno 111] Connection refused> (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 [Errno 111] Connection refused> (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 [Errno 111] Connection refused> (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 [Errno 111] Connection refused>
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
ERROR: error loading sources list:
<urlopen error <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml)>
问题原因
问题原因不是很清楚,之前看哪些博文的时候记得好像说是
“因为某些众所周知的原因,啥啥啥dns污染所以找不到[https://raw.githubusercontent.com”
解决方法
第一步:不明所以
不清楚是什么情况,首先先确认下有没有这个文件夹,如果没有依次创建
/etc/ros/rosdep/sources.list.d
第二步:手动添加ip
域名ip查询
输入 raw.githubusercontent.com
结果不出意外是这个
然后从里面挑一个ip地址加上 raw.githubusercontent.com
151.101.76.133 raw.githubusercontent.com
将这个写进下面的文件里,最上面的那个是最优先查询的,建议添加中国香港的ip
sudo gedit /etc/hosts
然后就可以了