sudo rosdep init ERROR: cannot download default sources list from:解决办法

sudo rosdep init ERROR: cannot download default sources list from:

解决方法:

  1. 进入/etc/hosts文件目录,

 

 

2、进入到hosts 文件:[email protected]:/etc# gedit hosts,在末尾添加151.101.84.133 raw.githubusercontent.com保持后关闭

 

3、在终端输入:sudo rosdep init,结果如下

 

4、执行命令:rosdep update后结果如下