安裝ROS報錯——sudo rosdep init

參考【1】【2】

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

  • 在本地新建對應目錄/etc/ros/rosdep/sources.list.d
sudo mkdir -p /etc/ros/rosdep/sources.list.d

  • 並定位到該目錄:
cd /etc/ros/rosdep/sources.list.d
  • 新建文件20-default.list:
sudo gedit 20-default.list
  • 將下面內容複製到文檔中:

yaml
https://hansteam.coding.net/p/rosdeap_mirror/d/rosdeap_mirror/git/raw/master/osx-homebrew.yaml
osx

yaml
https://hansteam.coding.net/p/rosdeap_mirror/d/rosdeap_mirror/git/raw/master/base.yaml
yaml
https://hansteam.coding.net/p/rosdeap_mirror/d/rosdeap_mirror/git/raw/master/python.yaml
yaml
https://hansteam.coding.net/p/rosdeap_mirror/d/rosdeap_mirror/git/raw/master/ruby.yaml

gbpdistro
https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
fuerte

  • 此時rosdep update 失敗操作流程如下:
sudo gedit /etc/hosts

  • 在最後一行輸入(丹麥IP):
151.101.84.133  raw.githubusercontent.com

  • 更新一下
sudo apt update

最後 rosdep update

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