sudo rosdep init and rosdep update Error 解決方法

錯誤如下:

$ 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
Then you can execute
 

$ rosdep update
If you get
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:
<urlopen error timed out> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)
then you can execute the following command:
 

解決方法:

sudo gedit /etc/resolv.conf

改成下面兩句:

nameserver 8.8.8.8 #google域名服務器

nameserver 8.8.4.4 #google域名服務器

 

參考:https://www.wandouip.com/t5i98813/

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