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後結果如下