解决Ubuntu18.04 安装ROS中 sudo rosdep init 和 rosdep update 失败问题

2023-05-16

解决Ubuntu18.04 安装ROS中 sudo rosdep init 和 rosdep update 失败问题


目录

解决Ubuntu18.04 安装ROS中 sudo rosdep init 和 rosdep update 失败问题

一、sudo rosdep init  找不到命令提示

二、运行sudo rosdep init无法下载 

三、运行rosdep update连接超时(Errno 104)


一、sudo rosdep init  找不到命令提示

sudo apt-get install python-rosdep

二、运行sudo rosdep init无法下载 

ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.

主要原因是被樯了,我测试了网上多种方法 ,如修改DNS、修改IP、设置hosts文件等,都不行,所以一气之下我就直接翻墙出去查看这个文件内容,拷贝手动存储。结果可行(时间:2021年5月27日)

具体方法如下:

sudo mkdir -p /etc/ros/rosdep/sources.list.d/
sudo gedit /etc/ros/rosdep/sources.list.d/20-default.list

把如下内容拷贝进20-default.list文件中即可;

# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx

# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte

# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

然后直接运行rosdep update即可;如果再运行 sudo rosdep init 可能依然会提示无法下载或者提示以存在。


三、运行rosdep update连接超时(Errno 104)

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 timed out> (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 timed out> (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)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:
	<urlopen error [Errno 104] Connection reset by peer> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
	Failed to download target platform data for gbpdistro:
	<urlopen error ('_ssl.c:711: The handshake operation timed out',)>
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
ERROR: error loading sources list:
	<urlopen error <urlopen error timed out> (https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml)>

上面 为本色更改DNS 等后的错误 ,在本人运行时以改回 ,主要看代码 104 的问题即可

本人最终是通过这里解决的,即利用https://ghproxy.com/进行代理加速,本文不再进行介绍,下面只对自己遇到的问题进行接受;

经过上篇文章进行修改后出现了:

reading in sources list data from /etc/ros/rosdep/sources.list.d
Warning: running 'rosdep update' as root is not recommended.
  You should run 'sudo rosdep fix-permissions' and invoke 'rosdep update' again without sudo.
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
	Failed to download target platform data for gbpdistro:
	<urlopen error [Errno 104] Connection reset by peer>
Query rosdistro index https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.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"
Add distro "galactic"
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Skip end-of-life distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"
updated cache in /home/user/.ros/rosdep/sources.cache
ERROR: Not all sources were able to be updated.
[[[
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
	Failed to download target platform data for gbpdistro:
	<urlopen error [Errno 104] Connection reset by peer>
]]]

经过评论区大佬的提示:需要在/usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py中插入     gbpdistro_url = "https://ghproxy.com/" + gbpdistro_url ,如下:

gedit /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py

如图插入:

再运行rosdep update 即可:

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

解决Ubuntu18.04 安装ROS中 sudo rosdep init 和 rosdep update 失败问题 的相关文章

  • JWT的Python库

    JWT的Python库 前言独立的JWT Python库项目封装 前言 独立的JWT Python库 itsdangerous JSONWebSignatureSerializer TimedJSONWebSignatureSerializ
  • JWT禁用问题

    JWT禁用问题 前言 需求 前言 需求 token颁发给用户后 在有效期内服务端都会认可 但是如果在token的有效期内需要让token失效 该怎么办 此问题的应用场景 用户修改密码 需要颁发新的token 禁用还在有效期内的老token
  • 对象存储——七牛云存储

    七牛云存储 前言 需求 编码 前言 需求 在项目中 如用户头像 文章图片等数据需要使用文件存储系统来保存 方案 自己搭建文件系统服务 选用第三方对象存储服务 我们在头条项目中使用七牛云对象存储服务 http www qiniu com 使用
  • 对象存储——CDN

    文章目录 前言常见问题 前言 使用第三方OSS服务的好处是集成了CDN服务 xff0c 下面来了解一下什么是CDN CDN 全称 Content Delivery Network或Content Distribute Network xff
  • HTTP通信

    通过网络访问接口实现HTTP通信 mainwindow h span class token macro property span class token directive hash span span class token dire
  • onmouseover和onmouseout事件小结

    前言 onmouseover和onmouseout事件是在pc端上使用非常广泛的鼠标划入划出事件 顾名思义 onmouseover是进入到dom元素中时触发的事件 而onmouseout是移出dom元素时触发的事件 它们即使在ie低版本也有
  • 获取网络接口信息

    获取网络接口信息 mainwindow h span class token macro property span class token directive hash span span class token directive ke
  • UDP通信

    udp发送端 UdpSenderDialog h span class token macro property span class token directive hash span span class token directive
  • TCP通信(01)

    服务器端向客户端发送数据 客户端 span class token macro property span class token directive hash span span class token directive keyword
  • TCP通信(02)

    客户端向服务端发送数据 客户端 span class token macro property span class token directive hash span span class token directive keyword
  • QT 5.15前版本QTcpSocket::error,QAbstractSocket::error信号无法关联槽

    QT5 15版本中 xff0c QAbstractSocket Class将原来的 span class token keyword void span span class token function error span span c
  • 进程通信(02)

    一 xff0c C 43 43 常用进程间通信 管道 Pipe xff1a 管道可用于具有亲缘关系进程间的通信 xff0c 允许一个进程和另一个与它有共同祖先的进程之间进行通信 命名管道 named pipe xff1a 命名管道克服了管道
  • 线程(01)

    使用QThread启动线程 span class token macro property span class token directive hash span span class token directive keyword if
  • 线程(02)——线程同步

    线程同步 互斥锁 QMutex读写锁QReadWriteLock信号量QSemaphore条件变量 QWaitCondition span class token macro property span class token direct
  • 网口调试助手

    一 前言 xff08 1 xff09 TCP通信 xff08 2 xff09 UDP通信 UDP xff08 User Datagram Protocol 用户数据报协议 xff09 是一个轻量级 不可靠 面向数据报的 无连接的协议 xff
  • 低延迟声音效果(01)

    span class token macro property span class token directive hash span span class token directive keyword ifndef span span
  • datax 同步mongodb数据库到hive(hdfs)和elasticserch(es)

    一 同步环境 1 mongodb版本 xff1a 3 6 3 xff08 有点老了 xff0c 后来发现flinkcdc都只能监控一张表 xff0c 多张表无法监控 xff09 2 datax版本 xff1a 自己编译的DataX data
  • Qt播放音视频文件报错DirectShowPlayerService::doRender: Unresolved error code 0x80040266或DirectShowPlayerServi

    Qt播放音视频文件报错DirectShowPlayerService doRender Unresolved error code 0x80040266或DirectShowPlayerService doSetUrlSource Unre
  • 基本图形的绘制与填充

    span class token macro property span class token directive hash span span class token directive keyword ifndef span span
  • 2D坐标变换

    span class token macro property span class token directive hash span span class token directive keyword ifndef span span

随机推荐

  • c++中常量的两种定义方式

    常量是定以后 xff0c 在程序运行中不能被改变的标识符 C 43 43 中定义常量可以用 define const 这两种方法 例如 define PRICE 10 定义单价常量10 const int PRICE 61 10 定义单价常
  • c++中的floor, ceil, round

    xfeff xfeff 2 1 2 6 2 1 2 6 floor 不大于自变量的最大整数 2 2 3 3 ceil 不小于自变量的最小整数 3 3 2 2 round 四舍五入到最邻近的整数 2 3 2
  • 用conat修饰的类成员——常成员函数、常成员数据、常引用

    xfeff xfeff include lt iostream gt include lt cstdlib gt using namespace std class R public R int r1 int r2 m iR1 r1 m i
  • 对象的生存期——变量的生存期与可见性

    include lt iostream gt using namespace std int i 61 1 i为全局变量 xff0c 具有静态生存期 void other a b是静态局部变量 xff0c 具有静态生存期 xff0c 局部可
  • 类的友元

    include lt iostream gt include lt cstdlib gt using namespace std class Point public Point int x int y friend float dist
  • 树莓派全系列对比

    树莓派全系列参数介绍如下 xff1a 再附上 知乎 64 少数派 的一张图 xff1a Raspberry官网对过去使用的博通Soc的描述 BCM2837B0 This is the Broadcom chip used in the Ra
  • Runtime类

    xfeff xfeff 在每一个java应用程序中 xff0c 都有唯一一个RunTime对象 xff0c 该唯一的RunTime对象可通过getRunTime 方法获得 应用程序不能创建自己的RunTime队象 xff0c package
  • 动态二维数组

    include lt iostream gt include lt cstdlib gt using namespace std class Point public Point cout lt lt 34 执行无参构造函数 34 lt l
  • 获得服务器硬件信息(CPUID、硬盘号、主板序列号、IP地址等)

    获得服务器硬件信息 xff08 CPUID 硬盘号 主板序列号 IP地址等 xff09 linux命令 获取IP地址 ifconfig a 获取CPU信息 dmidecode t processor grep ID lscpu cat pr
  • MySQL备份和还原操作

    MySQL备份和还原操作 目标 备份的概念 Mysqldump备份操作 MySQL还原操作 MySQL双机热备份 概述 在数据库表丢失或损坏的情况下 xff0c 备份数据库是很重要的 如果发生系统崩溃 xff0c 能够将表尽可能丢失最少的数
  • MySQL性能优化

    MySQL性能优化 目标 调优思路系统优化mysql服务优化应用优化方式SQL语句调优启用mysql慢查询 调优思路 数据库设计与规划 以后再修该很麻烦 xff0c 估计数据量 xff0c 使用什么存储引擎数据的应用 怎样取数据 xff0c
  • Hadoop伪分布模式安装

    Hadoop伪分布模式安装 Hadoop的运行模式分为3种 xff1a 本地运行模式 xff0c 伪分布运行模式 xff0c 完全分布运行模式 xff08 1 xff09 本地模式 xff08 local mode xff09 这种运行模式
  • 云的几种部署模式

    云的几种部署模式 定义 xff1a 特点云的部署模式 定义 xff1a 云 是一种计算模式 xff0c 利用互联网技术把大量可扩展和弹性的IT相关能力作为 一种服务提供给多个客户 特点 服务化 弹性 多租户 云的部署模式 公有云 混合云 内
  • 通过git 上传本地代码至码云

    实验步骤 1 配置ssh xff08 1 xff09 在本地生成sshkey xff0c 打开git命令终端 git bash 窗口 ssh keygen t rsa C 34 xxxxx 64 xxxxx com 34 你的邮箱 xff0
  • git常见命令

    常见命令 1 初始化本地仓库 git init 2 需要与码云保持一致 git config global user name 34 用户姓名 34 git config global user email 34 用户邮箱 34 3 设置远
  • 【python】详解threading模块:lock、Rlock的使用(二)

    在之前的 python 详解threading模块 xff1a 基本概念 join阻塞和setDaemon守护主线程 xff08 一 xff09 一文中 xff0c 是有对多线程进行一个详细的梳理的 其中就提到了线程锁这一功能 主要基于Rl
  • 定位导航——旋转矩阵,IMU,左右乘

    我们先明确一下这里所说的一些概念 IMU IMU全称Inertial Measurement Unit xff0c 惯性测量单元 xff0c 主要用来检测和测量加速度与旋转运动的传感器 起初只是用来测量角度的 xff0c 后来随着其他传感器
  • scp命令详解

    相关知识 scp是secure copy的简写 xff0c 用于在Linux下进行远程拷贝文件的命令 xff0c 和它类似的命令有cp xff0c 不过cp只是在本机进行拷贝不能跨服务器 xff0c 而且scp传输是加密的 可能会稍微影响一
  • H3C命令详解(笔记)

    1 常用命令 lt gt xff1a 用户视图模式 xff0c 仅仅能配置基本参数 xff0c 调试命令 xff0c 权限较小 xff1a 系统视图模式 xff0c 可以做高级配置 system view 进入系统视图 quit 退出当前模
  • 解决Ubuntu18.04 安装ROS中 sudo rosdep init 和 rosdep update 失败问题

    解决Ubuntu18 04 安装ROS中 sudo rosdep init 和 rosdep update 失败问题 目录 解决Ubuntu18 04 安装ROS中 sudo rosdep init 和 rosdep update 失败问题