1、问题
按照官网一步一步来看似很顺利,但当走到最后一步时:

$ sudo rosdep init
$ rosdep update

在进行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.

小作很苦恼,但将连接复制到浏览器里时却发现浏览器也打不开该网页,说明是由于网站为国外网站所导致的。
在网上搜到对我自己最有效的解决办法现记录如下:
在通过某种手段打开上述连接后发现为一个文件,但是下载不到,那么就通过本地创建的方法建立。
(1)在本地创建目录/etc/ros/rosdep/sources.list.d,并进入

/etc/ros/rosdep/sources.list.d
$ cd /etc/ros/rosdep/sources.list.d

(2)自己创建一个20-default.list,并进行编辑

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

并将其中所有的raw.githubusercontent.com改为raw.github.com,则得到最终的20-default.list,如下:

# os-specific listings first
yaml https://raw.github.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx# generic
yaml https://raw.github.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.github.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.github.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.github.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

(3)在终端直接运行

rosdep update

得到以下信息便成功!

reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.github.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.github.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.github.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.github.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.github.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index 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"
Add 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/userName/.ros/rosdep/sources.cache

该方法就是将网页中的文件人为放置到本地位置!!代替sudo rosdep init.

sudo rosdep init时出现错误: ERROR: cannot download default sources list from相关推荐

  1. Ubuntu16.04安装ROS时,sudo rosdep init报错,Error: cannot download default sources list from:

    安装ROS时需要安装rosdep,但是由于外网访问不了,所以访问不了https://raw.githubusercontent.com/网站.因此在执行sudo rosdep init这一步时,会提示 ...

  2. Ubuntu18.04安装ROS过程记录:主要解决 sudo rosdep init时的无法连接和rosdep update时的time out问题

    安装流程基本上参考的文章[1],在过程中遇到一些问题.采用以下步骤解决: 1.是初始化命令时出错 sudo rosdep init 提示:sudo rosdep:找不到命令提示,参照[2]的解决方案 ...

  3. 安装ROS使用sudo rosdep init 报错ERROR: cannot download default sources list from:

    Author: 杭州电子科技大学-自动化学院-智能系统和机器人研究中心-Jolen Xie Q:安装ROS使用rosdep init报错 sudo apt install python-rosdep ...

  4. 解决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 ...

  5. ERROR: cannot download default sources list from

    这是容易出现错误的地方,前面一般没有错误,有错误也很好解决,这个地方的错误一般不容易解决 sudo rosdep init 这个出现ERROR: cannot download default sou ...

  6. 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 ...

  7. 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 ...

  8. 解决sudo rosdep init 报错的问题

    按照https://wiki.ros.org/cn/melodic/Installation/Ubuntu 中步骤安装,进行到sudo rosdep init 提示找不到命令 在网上找了下解决办法,如 ...

  9. 解决安装ROS时出现的sudo rosdep init错误问题

    解决安装ROS时出现的sudo rosdep init错误问题 目前安装ROS时输入sudo rosdep init的命令时,可能会出现以下的错误: ERROR: cannot download de ...

  10. ubuntu16.04 安装ROS时,sudo rosdep init 出错

    ~$ sudo rosdep init ERROR: cannot download default sources list from: https://raw.githubusercontent. ...

最新文章

  1. 阿里云的很多域名没有办法进行实名认证了吗
  2. 漫话:如何给女朋友解释什么是BIO、NIO和AIO?
  3. Fms3和Flex打造在线多人视频会议和视频聊天(附原代码)
  4. 使用 CometD、Apache 和 Camel 的 502 代理错误
  5. 员工人事档案包括哪些内容?
  6. 小说APP源码的图片加载方式,懒加载和预加载的实现
  7. 如何用Goldwave批量消除音频文件开头结尾的空白
  8. C++求一元二次方程根
  9. 电视盒子显示ntp服务器异常,云计算-更换VRM主节点所在服务器主板后,出现VRM与NTP服务器状态异常的处理方法...
  10. 江城武汉,一座离开后会怀念的城市
  11. .bat文件注册.ocx+win8开机获得管理员权限+运行程序自动注册.ocx
  12. RoboCup Rescue Simulator Tutorial core
  13. ArcGIS10.5安装时提示localhost没有有效管理许可怎么办
  14. java从json数组中提取数据,从JSON数组中提取数据
  15. multisim中轻触开关在哪_轻触开关和自锁开关的主要区别在哪里?
  16. 微软下载历史windows版本软件
  17. 修道士和野人java_修道士和野人问题
  18. 持续掉粉,Mac App Store被开发者“打入冷宫”?
  19. 201671010426 孙锦喆 实验十四 团队项目评审课程学习总结
  20. HTML5与CSS3新增特性

热门文章

  1. 前端UI配色辅助RGB颜色调色板配色表HTML源码
  2. 诗词经典唯美名句赏析
  3. 尚学堂马士兵Oracle教程 笔记
  4. Linux应用层例程7 CAN 应用编程基础
  5. 电子信息专业实习报告与总结
  6. Android逆向Unity3D——XXX快跑破解
  7. win7系统声卡驱动安装失败怎么办--win7w.com
  8. 寻找春天nbsp;九宫格日记-2011.11.29
  9. 常用命令大全(网络命令+关机重启命令)
  10. ReviewBoard代码评审实践总结