ERROR: cannot download default sources list from
这是容易出现错误的地方,前面一般没有错误,有错误也很好解决,这个地方的错误一般不容易解决
sudo rosdep init
这个出现ERROR: cannot download default sources list from:笔者尝试了好多种方法,在我前面的博文中也有说这个问题的,更换热点,修改hosts文件等等,这些都是一些指标不治本的方法,跑 ros updata的时候仍然会出错,出错的原因在于因为一些众所周知的原因访问raw.githubusercontent.com出错,下面给出根本性的解决方法。
思路就是:将url地址全部改为本地的下载的包的地址
1、进入github.com/ros/rosdistro去把这个包下载下来,注意下载下来之后放到你的根目录文件下,并且确定这个包的名字是rosdistro ,只能是这个名字,不一致的重命名一下。
2、修改rosdistro rosdep/source.list.d/下的文件20-default.list
将这个文件中指向raw.githubusercontent.com
的url地址全部修改为指向本地文件的地址.(我的文件名是zsl,这个改成你自己的文件名xxx,其他的不要变,直接复制就可以。
# os-specific listings first
yaml file:///home/zsl/rosdistro/rosdep/osx-homebrew.yaml osx# generic
yaml file:///home/zsl/rosdistro/rosdep/base.yaml
yaml file:///home/zsl/rosdistro/rosdep/python.yaml
yaml file:///home/zsl/rosdistro/rosdep/ruby.yaml
gbpdistro file:///home/zsl/rosdistro/releases/fuerte.yaml fuerte
3.在计算机 目录下/usr/lib/python2.7/dist-packages/rosdep2
该文件夹下面的sources_list.py修改
默认url(我的文件名是zsl,这个改成你自己的文件名xxx,其他的不要变,直接复制就可以。
# default file to download with 'init' command in order to bootstrap
# rosdep
DEFAULT_SOURCES_LIST_URL = 'file:///home/zsl/rosdistro/rosdep/sources.list.d/20-default.list'# seconds to wait before aborting download of rosdep data
4. 我的文件名是zsl,这个改成你自己的文件名xxx,其他的不要变,直接复制就可以。
修改/usr/lib/python2.7/dist-packages/rosdep2/rep3.py
# location of targets file for processing gbpdistro files
REP3_TARGETS_URL = 'file:///home/zsl/rosdistro/releases/targets.yaml'# seconds to wait before aborting download of gbpdistro data
5. 我的文件名是zsl,这个改成你自己的文件名xxx,其他的不要变,直接复制就可以。
修改 /usr/lib/python2.7/dist-packages/rosdistro/__init__.py
# index informationDEFAULT_INDEX_URL = 'file:///home/zsl/rosdistro/index-v4.yaml'def get_index_url():
说明,如果没有权限修改,在修改的文件目录下打开终端
sudo chmod 777 xxxxx
然后修改即可。(有问题可以及时留言)
修改完成之后,再尝试进行初始化rosdep
sudo rosdep init
ERROR: cannot download default sources list from相关推荐
- Ubuntu16.04安装ROS时,sudo rosdep init报错,Error: cannot download default sources list from:
安装ROS时需要安装rosdep,但是由于外网访问不了,所以访问不了https://raw.githubusercontent.com/网站.因此在执行sudo rosdep init这一步时,会提示 ...
- 解决ERROR: cannot download default sources list from:https://raw.githubusercontent.com/ros/rosdistro/m
解决ERROR: cannot download default sources list from:https://raw.githubusercontent.com/ros/rosdistro/m ...
- 安装ROS使用sudo rosdep init 报错ERROR: cannot download default sources list from:
Author: 杭州电子科技大学-自动化学院-智能系统和机器人研究中心-Jolen Xie Q:安装ROS使用rosdep init报错 sudo apt install python-rosdep ...
- ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/ma
ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/ma ...
- sudo rosdep init ERROR: cannot download default sources list from: https://raw.githubusercontent.com
安装上ros无法进行rosdep init.解决方法如下:https://zhuanlan.zhihu.com/p/77483614 因此,在/usr/lib/python2.7/dist-packa ...
- Error in hist.default(data) : ‘x‘ must be numeric
Error in hist.default(data) : 'x' must be numeric 目录 Error in hist.default(data) : 'x' must be numer ...
- STM32用keil5调试程序出现 Error:Flash Download Failed-Cortex-M3解决方案
一 目的:装好keil MDK 想用 在线调试 二 背景:开发环境 keil MDK 422 三 准备: 1 keil MDK 安装文件夹\ARM\Segger里是否有三个动态连接表 2 程序 ...
- Error running app: Default Activity Not Found
最近在调试安装Android Widget程序时,碰到Error running app: Default ActivityNot Found. 因为简单的Widget程序,如果不和应用程序关联,就不 ...
- Keil出现Error:Flash Download failed - Could not load file
Keil 文件刚打开可能会出现Error:Flash Download failed - Could not load file 应该进行编译再下载,可能就会解决类似问题: 此外仿真时代码改动后应该先 ...
最新文章
- python处理图片文件_python 学习(二)处理图片、TXT文档
- [BOI2007] Mokia
- linux多选项菜单脚本,linux shell 编写菜单脚本事例
- 利用非数组的方法输出杨辉三角
- 计算机网络 socket阻塞非阻塞
- hihoCoder #1162 : 骨牌覆盖问题·三 (矩阵快速幂,DP)
- 安装这些App的注意了!隐私窃取 捆绑推广 已被下架 现在卸载还来得及!
- SQL Server如何存储特殊字符、上标、下标
- 去水印原理_图片去水印|视频去水印
- 【活动更新】第一届Openbravo社区早餐会将与5/28在上海举办
- 什么专业要学计算机思维导论,大学计算机:计算思维导论CAP
- 广东计算机一级试题答案,广东计算机一级考试试题和答案
- ora-20085 ora-06512错误解决
- css预处理器Less
- iis某狗注入绕过(get)
- Mac webstorm eslint一键修复
- 2019年“创青春.交子杯”新网银行高校金融科技挑战赛-AI算法赛道比赛总结
- iOS Core Image 复杂的滤镜
- 2020年计算机专业就业率,2020年黑马就业率排行榜,有没有你的专业,该如何选择专业?...
- 显示已连接启动传屏服务器,基于树莓派的无线传屏系统的设计与实现