温馨提示:
如果前面的方法都不奏效,请一定看到最后。
错误
情况是我在装ros-kinetic,(http://wiki.ros.org/kinetic/Installation/Ubuntu),执行到
sudo rosdep init
忽然出现错误:
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
解决方法1
然后按照 https://www.jianshu.com/p/bdbfbac69114 说的,从 https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list 粘贴内容到
/etc/ros/rosdep/sources.list.d/20-default.list
不管有没有把其中的 raw.githubusercontent.com
改为raw.github.com
rosdep update
错误都是如下:
$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
ERROR: unable to process source [https://raw.github.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
<urlopen error timed out> (https://raw.github.com