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
#保持后退出再尝试
再重新尝试

发布了48 篇原创文章 · 获赞 5 · 访问量 4019

猜你喜欢

转载自blog.csdn.net/hk2121/article/details/105583088