rosdep init 或者rosdep update 连接错误的解决办法

Posted flyinggod

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rosdep init 或者rosdep update 连接错误的解决办法相关的知识,希望对你有一定的参考价值。

如果提示的是

 ERROR: unable to process source https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/xxxxx

之类的错误,同时保证自己机器可以上百度的前提下,此时可能是因为raw.githubusercontent.com网站被墙了。
解决办法是修改hosts文件,添加这个网站的ip地址

#打开hosts文件
sudo gedit /etc/hosts
#在文件末尾添加
151.101.84.133  raw.githubusercontent.com
#保持后退出再尝试

  

以上是关于rosdep init 或者rosdep update 连接错误的解决办法的主要内容,如果未能解决你的问题,请参考以下文章