2021.04 rosdep init、rosdep update 失败解决方法

阅读: 评论:0

2021.04 rosdep init、rosdep update 失败解决方法

2021.04 rosdep init、rosdep update 失败解决方法

PC:联想小新13pro CPU:R5-3550H

虚拟机:vmware 16 pro + Ubuntu 18.04.5

源:阿里云

是否有魔法:有

目标ROS:Melodic

2021.04 列举网上尝试过的方法:

rosdep init、rosdep update出现的问题:

1、找不到命令。

sudo apt-get install python-rosdep

2、init、update 连接问题网上列举的解决方法:

sudo rosdep init
ERROR: cannot download default sources list from:
.list.d/20-default.list
Website may be down.

 a、rosdep init失败,手动在相应目录添加文件后使用rosdep update:

sudo vim /etc/ros/rosdep/sources.list.d/20-default.list

# os-specific listings first
yaml .yaml osx# generic
yaml .yaml
yaml .yaml
yaml .yaml
gbpdistro .yaml fuerte# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

b、rosdep update失败 - nameserver:

sudo gedit /f将原有的nameserver这一行注释,并添加以下两行:nameserver 8.8.8.8 #google域名服务器nameserver 8.8.4.4 #google域名服务器

c、rosdep update失败 - HOSTS

sudo vim /etc/hosts# 在最后一行添加 这个IP地址在 
# .githubusercontent
# 进行查询的185.199.108.133 raw.githubusercontent

d、rosdep update失败 - 修改gbpdistro超时时间

sudo vim /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py# 找到 DOWNLOAD_TIMEOUT = 15.0 对数值进行调大一些
DOWNLOAD_TIMEOUT = 45.0

e、rosdep update失败 - 使用手机建立的WiFi热点

f、 rosdep update失败 - 换apt-get源

阿里云、清华、华为 等

3、我尝试的新方法:

1.首先我是打不开这个 .githubusercontent 网址的

原因是我用虚拟机的代理DNS没有设置

2. rosdep fix-permissions ,不知道干嘛的反正就是莫明奇妙:

zhangqing@ubuntu:~$ rosdep fix-permissions
Recursively changing ownership of ros home directory '/home/zhangqing/.ros' to 'zhangqing:zhangqing' (current user)...
Done.
zhangqing@ubuntu:~$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit .yaml
Hit .yaml
Hit .yaml
Hit .yaml
Hit .yaml
Query rosdistro index .yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Add distro "dashing"
Skip end-of-life distro "eloquent"
Add distro "foxy"
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Add distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"
updated cache in /home/zhangqing/.ros/rosdep/sources.cache

 

本文发布于:2024-01-28 04:36:56,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/17063878224826.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

上一篇:C++习题
下一篇:Git框架命令集
标签:解决方法   rosdep   update   init
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23