花了大半天时间终于弄出来了,下面是问题报错:
(如转载,请标明作品链接,也感谢其他网友的相关的帖子)
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.
感觉问题的根源在于进不去:https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
这个网站,你用火狐搜一下,也进不去。
结局方法是修改hosts文件,添加网站:
sudo gedit /etc/hosts
在下面添加:
151.101.76.133 raw.githubusercontent.com
效果如图:
然后执行:
sudo rosdep init
效果如图:
最后执行(这步我试了几次,用手机热点可以):
rosdep update
成功,效果如图:
若是对你有帮助,欢迎评论收藏。