ubuntu安装ROS进行到rosdep update时出现错误,如ERROR: unable to process source ...
1、錯誤描述:
ming@ming:~$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
?? ?<urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:
?? ?<urlopen error [Errno 111] Connection refused> (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 [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:
?? ?<urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Add distro "ardent"
ERROR: error loading sources list:
?? ?<urlopen error <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/ardent/distribution.yaml)>
解決辦法:
sudo gedit /etc/resolv.conf
將原有的nameserver這一行注釋,并添加以下兩行:
nameserver 8.8.8.8 #google域名服務(wù)器
nameserver 8.8.4.4 #google域名服務(wù)器
保存退出,執(zhí)行
sudo? apt-get update
再執(zhí)行
rosdep update
出現(xiàn):
就代表一切OK了!
2、錯誤描述:
ming@ming:~$ 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
解決辦法:
執(zhí)行以下命令,刪除已經(jīng)存在的初始化文件:
sudo rm /etc/ros/rosdep/sources.list.d/20-default.list
然后再重新運行
sudo rosdep init
問題解決。
如果問題還是沒有解決,請參考這位博主的方法安裝ROS, 初始化時rosdep update出錯解決辦法_super_sean的博客-CSDN博客_rosdep update出錯https://blog.csdn.net/super_sean/article/details/105433250其中心思想是把20-default.list中需要下載的文件,預(yù)先下載下來,然后在20-default.list文件中指明文件路徑,從而繞開網(wǎng)絡(luò)下載這一環(huán)。相關(guān)文件下載鏈接也在這位博主(好人)博客中列出來了,大家可以快速下載。
如果最后還是rosdep update不成功,可以選擇關(guān)機重啟試試看,一般都會很快通過!最后祝大家好運。
?如果還是解決不了,可以參考下面這個博客,有點麻煩,但肯定能解決。
(成功)ROS安裝過程中如何解決 rosdep update 命令出現(xiàn)錯誤——安裝記錄_小張小張快來學(xué)習(xí)的博客-CSDN博客
總結(jié)
以上是生活随笔為你收集整理的ubuntu安装ROS进行到rosdep update时出现错误,如ERROR: unable to process source ...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 几何深度学习
- 下一篇: unity 调用 海康 网络摄像头 免费