rosdep update — The read operation timed out 解决方法
执行 rosdep update
时如果有以下错误发生
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
ERROR: error loading sources list:('The read operation timed out',)
是因为由于访问 githubusercontent
不通造成的,可以通过下面的方法解决。
网站 https://ghproxy.com/
支持 github
的资源代理,非常好用,我们将用此代理加速 rosdep
对 Github Raw
的访问,进而解决 rosdep update
超时问题。
- 首先确定初始化
rosdep init
是否成功,即是否在如下目录下生成此文件:/etc/ros/rosdep/sources.list.d/20-default.list
,若没有,可从其他配置成功的电脑上拷贝过来; - 修改
/etc/ros/rosdep/sources.list.d/20-default.list
文件,在所有https://raw.githubusercontent.com
前加上https://ghproxy.com/
如下所示:
$ cat /etc/ros/rosdep/sources.list.d/20-default.list
# os-specific listings first
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx# generic
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://ghproxy.com/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
- 修改
/usr/lib/python2.7/dist-packages/rosdistro/__init__.py
文件,在DEFAULT_INDEX_URL
前面加上https://ghproxy.com/
,修改完成如下所示:
DEFAULT_INDEX_URL = 'https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml'
- 修改
/usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
文件,在FUERTE_GBPDISTRO_URL
前面加上https://ghproxy.com/
,修改完成如下所示:
FUERTE_GBPDISTRO_URL = 'https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/' \'master/releases/fuerte.yaml'
和增加 TIMEOUT
时间
DOWNLOAD_TIMEOUT=45.0
- 修改
/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
文件,在DEFAULT_SOURCES_LIST_URL
前面加上https://ghproxy.com/
,修改完成如下所示:
DEFAULT_SOURCES_LIST_URL = 'https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list'
- 修改
/usr/lib/python2.7/dist-packages/rosdep2/rep3.py
文件,在REP3_TARGETS_URL
前面加上https://ghproxy.com/
,修改完成如下所示:
REP3_TARGETS_URL = 'https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/releases/targets.yaml'
- 修改
/usr/lib/python2.7/dist-packages/rosdistro/manifest_provider/github.py
文件的下面两个地方, 修改完成如下所示:
if not repo.has_remote_tag(release_tag):raise RuntimeError('specified tag "%s" is not a git tag' % release_tag)url = 'https://ghproxy.com/https://raw.githubusercontent.com/%s/%s/package.xml' % (path, release_tag)
和
for package_xml_path in package_xml_paths:url = 'https://ghproxy.com/https://raw.githubusercontent.com/%s/%s/%s' % \(path, cache.ref(), package_xml_path + '/package.xml' if package_xml_path else 'package.xml')
以上更改完成后,再次输入
rosdep update
更新即可。
rosdep update — The read operation timed out 解决方法相关推荐
- 登录mysql报错Failed to connect to backoff 或 Failed to get D-Bus connection: Operation not permitted解决方法
报错: Failed to get D-Bus connection: Operation not permitted 或 mysql -u root -p 登录mysql时报错 2020-09-16 ...
- windows update更新时出现错误代码 8024200D解决方法(转)
windows update更新时出现错误代码 8024200D解决方法(转) 参考文章: (1)windows update更新时出现错误代码 8024200D解决方法(转) (2)https:// ...
- Proxmox VE中出现TASK ERROR: command ‘apt-get update‘ failed: exit code 100的解决方法
Proxmox VE中出现TASK ERROR: command 'apt-get update' failed: exit code 100的解决方法 参考文章: (1)Proxmox VE中出现T ...
- svn update报no such revision * 的解决方法
类似:svn update报no such revision * 的解决方法 1,Request----描述 我们将WEB目录扔进了SVN,但是奇怪的是,时间一长,报如下的错误:SVN No such ...
- php部署项目到服务器报错SQLSTATE[HY000] [2002] Connection timed out解决方法(纯学习笔记,不作为教程)
SQLSTATE[HY000] [2002] Connection timed out解决方法 在网上找了一堆,结果全部是错的 后来,我明白了其实是设置问题. 当你的代码部署到服务器里的时候,你的my ...
- 转:Windows Update 出现错误 0x800703ed 可能的解决方法
Windows Update 出现错误 0x800703ed 可能的解决方法 转自:https://blessing.studio/fix-windows-update-error-0x800703e ...
- ROS安装/// rosdep update/the read operation is timed out
11.22 由于改开题用了两天时间,周末和同学约了两场球,玩了几把游戏,整整休息了两天(有些慌张hh). 对于白菜硕来说在Linux下载一个软件都不那么容易,当然经历了安装双系统的折磨我心里已经有了预 ...
- wsl ubuntu update显示err: 404 Not Found解决方法
文章目录 遇到问题 解决方法 参考 遇到问题 azheng@lishizheng:/mnt/e/shizheng_coding/fluent_python_reading_books$ sudo ap ...
- MySQL 语法问题:You can‘t specify target table ‘xxx‘ for update in FROM clause. 原因及解决方法
报错信息如下: [Code: 1093, SQL State: HY000] You can't specify target table 'bd_bankaccbas' for update in ...
最新文章
- Java并发编程开发笔记——2线程安全性
- DWZ 验证 CLASS 规则
- 第一阶段冲刺最后一天
- WampServer修改端口及菜单Localhost
- 一行c语言代码,打钩的一行c语言代码解释一下,谢谢,详细解释绝对最佳
- java curl get_如何从Java中的curl get请求获取文件?
- oracle 源代码输出,oracle-如何将DBMS_OUTPUT.PUT_LINE的输出重定向到文件?
- android期末大作业_关于大学期末的一点碎碎念
- Codeforces Education Round 11
- ILSPY反编译工具下载代替收费的Reflector工具
- AD9371开发总结(一)
- matlab实现macd策略,经典MACD交易策略
- SAP 未审批的采购订单(PO)提交到OA去审批,最后OA审批结果回写到SAP。
- 大数据实战第十二课之-Scala知识05
- OpenTCS打造移动机器人交通管制系统(四)
- TI 蓝牙4.0芯片 cc2540
- 健身记录--每日更新
- 【小技巧】2345——劫持浏览器主页(Chrome、Edge)
- 【PCB】Altium Designer PCB规则配置
- 在线教育报告上线,助力职业与成人教育行业高效运营
热门文章
- python画pr曲线代码_Yolov3测试图及绘制PR曲线,yoloV3,map,和,画
- GPEN GUI 模糊人像高清修复、黑白人像智能上色、褶皱老照片智能修复工具
- mysql 导出shell_shell操作mysql,Shell操作MySQL并导出文本文件
- Android anr介绍
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- 高通骁龙CPU的手机对比
- pytorch报错记录
- uniapp引入字体
- 微信html5程序,H5跳转微信小程序
- html+css+js 填写表单实现下一步上一步操作