sudo rosdep init出現的錯誤

在系統上安裝ROS 

在運行

 sudo rosdep init  

  ERROR: default sources list file already exists:
  /etc/ros/rosdep/sources.list.d/20-default.list
  Please delete if you wish to re-initialize

分析原因:國內的長城防火牆,對數據進行了攔截無法獲取

解決方案1:

  使用手機熱點。

  sudo rosdep init 

  rosdep update

  總體的消耗的流量不多,並且一直成功。

解決方案2:

  手動添加/etc/ros/rosdep/sources.list.d/20-default.list

  在終端輸入:

 sudo mkidr -p /etc/ros/rosdep/sources.list.d

   cd  /etc/ros/rosdep/sources.list.d

  sudo gedit 20-default.list

  添加如下內容:

 

# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx

# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte

# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

之後運行:

 rosdep update

在運行的過程之中,也許還是會出現外網連接失敗,這個時候強烈建議使用“手機熱點

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