日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

ubuntu安装ROS进行到rosdep update时出现错误,如ERROR: unable to process source ...

發(fā)布時間:2024/1/8 53 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ubuntu安装ROS进行到rosdep update时出现错误,如ERROR: unable to process source ... 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

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域名服務器

nameserver 8.8.4.4 #google域名服務器

保存退出,執(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中需要下載的文件,預先下載下來,然后在20-default.list文件中指明文件路徑,從而繞開網(wǎng)絡下載這一環(huán)。相關文件下載鏈接也在這位博主(好人)博客中列出來了,大家可以快速下載。

如果最后還是rosdep update不成功,可以選擇關機重啟試試看,一般都會很快通過!最后祝大家好運。

?如果還是解決不了,可以參考下面這個博客,有點麻煩,但肯定能解決。

(成功)ROS安裝過程中如何解決 rosdep update 命令出現(xiàn)錯誤——安裝記錄_小張小張快來學習的博客-CSDN博客

總結

以上是生活随笔為你收集整理的ubuntu安装ROS进行到rosdep update时出现错误,如ERROR: unable to process source ...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。