ubuntu安装ROS rosdep error: cannot download default sources list from

在安装ROS进行到sudo rosdep init,运行此指令会出现以下error:

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.

解决方法也很简单:

sudo gedit /etc/hosts

打开文件后,在末尾添加如下即可:

151.101.84.133  raw.githubusercontent.com

还有记得保存!!!

©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页