rosdep init 错误解决方法
一、安装ROS执行以下指令时报错
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.
二、原因
这是由于 raw.githubusercontent.com 被墙,程序无法下载相应的文件导致的。所以要确保 raw.githubusercontent.com 能够被正常访问。这个网站被墙的方式是dns污染,所以我们只要能够找到这个网站的正确 IP 就可以了。
三、解决办法
1.查询IP地址
给大家几个查询 raw.githubusercontent.com 的 IP 地址比较稳定的网站: