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

還有記得保存!!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章