PC:联想小新13pro CPU:R5-3550H
虚拟机:vmware 16 pro + Ubuntu 18.04.5
源:阿里云
是否有魔法:有
目标ROS:Melodic
2021.04 列举网上尝试过的方法:
sudo apt-get install python-rosdep
sudo rosdep init
ERROR: cannot download default sources list from:
.list.d/20-default.list
Website may be down.
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
sudo gedit /f将原有的nameserver这一行注释,并添加以下两行:nameserver 8.8.8.8 #google域名服务器nameserver 8.8.4.4 #google域名服务器
sudo vim /etc/hosts# 在最后一行添加 这个IP地址在
# .githubusercontent
# 进行查询的185.199.108.133 raw.githubusercontent
sudo vim /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py# 找到 DOWNLOAD_TIMEOUT = 15.0 对数值进行调大一些
DOWNLOAD_TIMEOUT = 45.0
阿里云、清华、华为 等
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小时内删除。
留言与评论(共有 0 条评论) |