解决sudo rosdep init 报错的问题
按照https://wiki.ros.org/cn/melodic/Installation/Ubuntu 中步骤安装,进行到sudo rosdep init 提示找不到命令
在网上找了下解决办法,如:
sudo apt install python-rosdep 执行之后,又提示
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.
接着按照https://www.jianshu.com/p/bdbfbac69114 这上的面操作步骤 来
sudo apt-get install ca-certificates
新建目录 /etc/ros/rosdep/sources.list.d
新建文件 sudo gedit 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 还是报错
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](http://jump.bdimg.com/safecheck/index?url=rN3wPs8te/pX/RXZrrwmgz1HhLKFfuYdBR6elVnGSRMPTZwDs+V1Iw2DN2GIDg0c0lXFaWYCi6F5eugIuTik7Xf24HznH1heOw2gAEfI/e4pyVgDjNm3SaoaxT39lV2h1C6ZRqu3Ohsi0ZhQy1cgW5DaxsU0VVq099hJLALtyPraHkhVQYEleySdzQDlWLfuyu4YXs62n7WWp87t6F1nMhvv0JflI+P2dj2oeHoEzTI=)]:
<urlopen error _ssl.c:495: The handshake operation timed out> ([https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml](http://jump.bdimg.com/safecheck/index?url=rN3wPs8te/pX/RXZrrwmgz1HhLKFfuYdBR6elVnGSRMPTZwDs+V1Iw2DN2GIDg0c0lXFaWYCi6F5eugIuTik7Xf24HznH1heOw2gAEfI/e4pyVgDjNm3SaoaxT39lV2h1C6ZRqu3Ohsi0ZhQy1cgW5DaxsU0VVq099hJLALtyPraHkhVQYEleySdzQDlWLfuyu4YXs62n7WWp87t6F1nMhvv0JflI+P2dj2oeHoEzTI=))
Hit [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml](http://jump.bdimg.com/safecheck/index?url=rN3wPs8te/pX/RXZrrwmgz1HhLKFfuYdBR6elVnGSRMPTZwDs+V1Iw2DN2GIDg0c0lXFaWYCi6F5eugIuTik7Xf24HznH1heOw2gAEfI/e64EpZhV/nSSfaMCRlMqNMjqsw5JFtciolkdT5HNLb22Z8xZQwNWZn8DhrNz7QOmul3vNSiiiuylvEgZ+MKQ61lxfjiJ1xO6k1T0sjgIIm+zjA8Zu4mdgY0)
ERROR: error loading sources list:
The read operation timed out
他的解决办法
sudo apt-get update
sudo apt-get install python-rosdep
不能解决我的问题。
接着在网络中找到这篇文章
http://community.bwbot.org/topic/878/%E8%A7%A3%E5%86%B3rosdep-init-error-cannot-download-default-sources-list-%E9%97%AE%E9%A2%98
说是 如果你在执行 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.
这是由于raw.githubusercontent.com
被墙,程序无法下载相应的文件导致的。
就按照他的方法,修改hosts文件。
把下面的内容写入/etc/hosts文件中。
192.30.253.118 gist.github.com
185.199.110.153 github.io151.101.113.194 github.global.ssl.fastly.net
52.216.227.168 github-cloud.s3.amazonaws.com
52.74.223.119 github.com199.232.28.133 avatars1.githubusercontent.com
199.232.28.133 avatars2.githubusercontent.com
199.232.28.133 avatars0.githubusercontent.com
199.232.28.133 avatars3.githubusercontent.com
199.232.28.133 raw.githubusercontent.com
199.232.28.133 user-images.githubusercontent.com
199.232.28.133 avatars.githubusercontent.com
199.232.28.133 github.map.fastly.net
199.232.28.133 avatars7.githubusercontent.com# Amazon AWS Start
54.239.31.69 aws.amazon.com
54.239.30.25 console.aws.amazon.com
54.239.96.90 ap-northeast-1.console.aws.amazon.com
54.240.226.81 ap-southeast-1.console.aws.amazon.com
54.240.193.125 ap-southeast-2.console.aws.amazon.com
54.239.54.102 eu-central-1.console.aws.amazon.com
177.72.244.194 sa-east-1.console.aws.amazon.com
176.32.114.59 eu-west-1.console.aws.amazon.com
54.239.31.128 us-west-1.console.aws.amazon.com
54.240.254.230 us-west-2.console.aws.amazon.com
54.239.38.102 s3-console-us-standard.console.aws.amazon.com
54.231.49.3 s3.amazonaws.com
52.219.0.4 s3-ap-northeast-1.amazonaws.com
54.231.242.170 s3-ap-southeast-1.amazonaws.com
54.231.251.21 s3-ap-southeast-2.amazonaws.com
54.231.193.37 s3-eu-central-1.amazonaws.com
52.218.16.140 s3-eu-west-1.amazonaws.com
52.92.72.2 s3-sa-east-1.amazonaws.com
54.231.236.6 s3-us-west-1.amazonaws.com
54.231.168.160 s3-us-west-2.amazonaws.com
52.216.80.48 github-cloud.s3.amazonaws.com
54.231.40.3 github-com.s3.amazonaws.com
52.216.20.171 github-production-release-asset-2e65be.s3.amazonaws.com
52.216.228.168 github-production-user-asset-6210df.s3.amazonaws.com
再执行rosdep update 就OK了。
至于中间的操作 自己新建20-default.list文件 是否有必要,不清楚。一路试探下来的,没有再返回单独测试。 记录这个操作,只为防止以后重新安装时再遇到这个问题。能解决问题就行,不求严谨。
解决sudo rosdep init 报错的问题相关推荐
- 安装ROS使用sudo rosdep init 报错ERROR: cannot download default sources list from:
Author: 杭州电子科技大学-自动化学院-智能系统和机器人研究中心-Jolen Xie Q:安装ROS使用rosdep init报错 sudo apt install python-rosdep ...
- Ubuntu16.04安装ROS时,sudo rosdep init报错,Error: cannot download default sources list from:
安装ROS时需要安装rosdep,但是由于外网访问不了,所以访问不了https://raw.githubusercontent.com/网站.因此在执行sudo rosdep init这一步时,会提示 ...
- Ubuntu18.04安装ROS过程记录:主要解决 sudo rosdep init时的无法连接和rosdep update时的time out问题
安装流程基本上参考的文章[1],在过程中遇到一些问题.采用以下步骤解决: 1.是初始化命令时出错 sudo rosdep init 提示:sudo rosdep:找不到命令提示,参照[2]的解决方案 ...
- Ubuntu18.04安装ros(顺利解决 sudo rosdep init 与 rosdep update 存在的问题,附保姆级图文流程)
Ubuntu18.04(Ubuntu20.04)安装ros(顺利解决 sudo rosdep init 与rosdep update 存在的问题,附保姆级图文流程) 前言 安装了很多次,东拼西凑好多博 ...
- 解决sudo rosdep init和rosdep update各种疑难杂症
问题描述: 环境:ubuntu18+ROS molodic full-desktop 在安装ROS的时候,最后两步骤sudo rosdep init和rosdep update出现各种问题,以此记录各 ...
- 安装rmf过程报错,安装rosdep init报错
1.遇到ERROR: cannot download default sources list from:https://raw.githubuserconte 这是因为网络错误,要改hosts文件 ...
- ROS的 sudo rosdep init 的报错终极解决方案
ROS的 sudo rosdep init 的报错解决方案 安装ROS时sudo rosdep init指令报错: ERROR: cannot download default sources lis ...
- Ubuntu20.04及18.04的ROS安装教程及各种失败解决方法 (sudo rosdep init找不到命令或失败与rosdep update一直timeout,roscore找不到命令)
项目场景:ros安装 在安装ROS的过程中一般选择有网络非常好的网络进行安装,这样就可以全程顺利执行一次性安装成功,但不顺利也没问题这个教程将会给出解决由网络原因造成安装失败的解决方法 安装步骤:Ct ...
- rosdep init与rosdep update报错问题
可直接看最下面一个更新!!! sudo rosdep init是从一个网址上下载一个文件,下不下来完全是网络原因.造成这个问题的原因是因为rosdep的资源文件放置在国外的服务器上.由于全球气候变暖. ...
最新文章
- Exp1 PC平台逆向破解 20164309 欧阳彧骁
- Linux仿真运算集群,fluent DPM Linux计算集群运行报错 - 计算模拟 - 小木虫 - 学术 科研 互动社区...
- MySQL主从复制故障1595报错【原创】
- 小米红米有锁机如何刷机升级MIUI12.5系统-完美解锁机刷机教程
- 计算机硬盘容量计算公式
- vba 连接mysql 引用_Excel VBA连接MySql 数据库获取数据
- java短信接口开发完整项目_java项目接入第三方短信接口
- Enterprise Architect Professional Edition
- 【那些年我们用过的Redis】还记得大明湖畔那些Redis数据吗?
- faster-RCNN tensorflow-gpu环境配置及安装出现的问题
- APP注册名称的一些问题
- 爬去东方财富网龙虎榜(wechat:15353378609)
- 常见网站劫持案例及解析
- 教妹学Java(一):什么是Java?
- 嵌入式写好一行代码,真不简单
- 【五六七人口普查】我国区县级人口基本情况
- 广播(broadcast)的简单解析与实例运用
- 解决linux磁盘空间不足的方法
- PHP PDO 连接SQLSErver,php pdo连接sqlserver配置
- 定制Github日历库EPCalendarPicker实现项目需求(二)
热门文章
- Linux基础命令(Linux之父林纳斯·托瓦兹临死前留下的绝密文件,程序员入门必看!!!)
- 基于51单片机的寻迹小车
- java实现丢手绢问题_java小孩丢手绢问题
- CF 1680 E. Moving Chips dp 2000
- svn提交备注_svn 中commit时必须填写备注信息如何设置
- kubectl命令行管理工具
- 12月份参加工作的年假怎么休_请问我的年假可以在12月份休吗?单位说可以12月1日就不用上班了,我可以上到12月28日吗?...
- 软考-信息系统项目管理师-项目风险管理
- Android反向进度条(ProgressBar)的实现——从右到左的进度条
- 北航网络安全期末考点参考