当前位置:网站首页>Installation series of ROS system (II): ROS rosdep init/update error reporting solution
Installation series of ROS system (II): ROS rosdep init/update error reporting solution
2022-06-12 08:12:00 【Here comes the classmate】
1、 Problem description
In the installation ROS In the process of , You may find a lot of friends , In the input rosdep init or rosdep update The following errors are sometimes prompted when instructing :
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.
2、 Question why
For the above questions , The main reason is the network problem ( No scientific access raw.githubusercontent.com).
3、 General solutions
1) Enable mobile hotspot access
The computer accesses the network through the mobile hotspot , You can try the download process several times , It is possible to succeed in the end , But according to my previous experience , The success rate of this method is not too high .
2) modify hosts The way :
Query through the domain name resolution tool https://raw.githubusercontent.com Reality IP Address , Will be IP Add to hosts in , But this method may fail .
4、 Reliable solutions ( To test that )
General idea : Since the visit https://raw.githubusercontent.com Not stable , Then we will back up relevant resources to the third-party code hosting platform with faster access speed ( This article uses domestic resources Gitee, Domestic utilization Gitee Accelerated access can be achieved GitHub Warehouse ), modify rosdep Source code , Then relocate the resources .
1) modify gedit 20-default.list
Enter into sources.list.d Folder ( without , The new )
modify gedit 20-default.list
cd /etc/ros/rosdep/sources.list.d
sudo gedit 20-default.list
Put all the... In it
raw.githubusercontent.com/ros/rosdistro/master
Replace with
gitee.com/openwork2020/rosdistro/raw/master
The corresponding part is modified :
# os-specific listings first rosdep update
yaml https://gitee.com/openwork2020/rosdistro/raw/master/rosdep/osx-homebrew.yaml osx
# generic
yaml https://gitee.com/openwork2020/rosdistro/raw/master/rosdep/base.yaml
yaml https://gitee.com/openwork2020/rosdistro/raw/master/rosdep/python.yaml
yaml https://gitee.com/openwork2020/rosdistro/raw/master/rosdep/ruby.yaml
gbpdistro https://gitee.com/openwork2020/rosdistro/raw/master/releases/fuerte.yaml fuerte
# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead
2) modify gbpdistro_support.py
Enter into rosdep2 Folder ,
modify gbpdistro_support.py
cd /usr/lib/python2.7/dist-packages/rosdep2/
sudo gedit gbpdistro_support.py
Put all the... In it
raw.githubusercontent.com/ros/rosdistro/master
Replace with
gitee.com/openwork2020/rosdistro/raw/master
The corresponding part is modified :
FUERTE_GBPDISTRO_URL = 'https://gitee.com/openwork2020/rosdistro/raw/master/releases/fuerte.yaml'
3) modify rep3.py
Enter into rosdep2 Folder ,
modify rep3.py
cd /usr/lib/python2.7/dist-packages/rosdep2/
sudo gedit rep3.py
Put all the... In it
raw.githubusercontent.com/ros/rosdistro/master
Replace with
gitee.com/openwork2020/rosdistro/raw/master
The corresponding part is modified :
REP3_TARGETS_URL = 'https://gitee.com/openwork2020/rosdistro/raw/master/releases/targets.yaml'
4) modify sources_list.py
Enter into rosdep2 Folder ,
modify sources_list.py
cd /usr/lib/python2.7/dist-packages/rosdep2/
sudo gedit sources_list.py
Put all the... In it
raw.githubusercontent.com/ros/rosdistro/master
Replace with
gitee.com/openwork2020/rosdistro/raw/master
The corresponding part is modified :
DEFAULT_SOURCES_LIST_URL = 'https://gitee.com/openwork2020/rosdistro/raw/master/rosdep/sources.list.d/20-default.list'
5) modify init.py
Enter into rosdistro Folder
modify init.py
cd /usr/lib/python2.7/dist-packages/rosdistro/
sudo gedit __init__.py
Put all the... In it
raw.githubusercontent.com/ros/rosdistro/master
Replace with
gitee.com/openwork2020/rosdistro/raw/master
The corresponding part is modified :
DEFAULT_INDEX_URL = 'https://gitee.com/openwork2020/rosdistro/raw/master/index-v4.yaml'
6) Protocol Validation
Right click to open the new terminal ( Or shortcut keys :Ctrl + Alt + T), Execute the following update command :
rosdep update
If the following prompt appears , It means that the scheme is effective !
explain : I will officially rosdistro Pull project resources to Gitee On , The website is :https://gitee.com/openwork2020/rosdistro, Welcome to visit , Of course, you can also use your own Gitee Or other third-party hosting platforms .
边栏推荐
- Introduction to SDI video data stream format (frequency, rate, YUV, EAV, SAV)
- Talk about the four basic concepts of database system
- MFC中窗口刷新函数详解
- MES系统质量追溯功能,到底在追什么?
- (p33-p35) lambda expression syntax, precautions for lambda expression, essence of lambda expression
- ASP.NET项目开发实战入门_项目六_错误报告(自己写项目时的疑难问题总结)
- ctfshow web 1-2
- (p40-p41) transfer and forward perfect forwarding of move resources
- MYSQL中的查询
- Principle and example of OpenMP task
猜你喜欢

Record the treading pit of grain Mall (I)

Vision Transformer | Arxiv 2205 - LiTv2: Fast Vision Transformers with HiLo Attention

Introduction to coco dataset

Convolutional neural network CNN based cat dog battle picture classification (tf2.1 py3.6)

Pytorch installation (GPU) in Anaconda (step on pit + fill pit)

Pytorch profiler with tensorboard.

KAtex problem of vscade: parseerror: KAtex parse error: can't use function '$' in math mode at position

MinGW offline installation package (free, fool)

Derivation of Poisson distribution

Getting started with Jetson nano Series IV: common skills of NVIDIA Jetson nano
随机推荐
El expression and JSTL
Learning notes (1): live broadcast by Dr. Lu Qi - face up to challenges and grasp entrepreneurial innovation opportunities - face up to challenges and grasp entrepreneurial innovation opportunities -1
计组第一章
Group planning chapter I
2.1 链表——移除链表元素(Leetcode 203)
Improvement of hash function based on life game (continued 2)
(P14)overrid关键字的使用
Conda crée un environnement virtuel pour signaler les erreurs et résoudre les problèmes
后MES系统的时代,已逐渐到来
C # hide the keyboard input on the console (the input content is not displayed on the window)
Fundamentals of Mathematics - Taylor Theorem
(p25-p26) three details of non range based for loop and range based for loop
Strvec class mobile copy
In depth learning, the parameter quantity (param) in the network is calculated. The appendix contains links to floating point computations (flops).
如何理解APS系统的生产排程?
APS软件有哪些排程规则?有何异常处理方案?
PPP agreement
2.2 linked list - Design linked list (leetcode 707)
vscode 下载慢解决办法
GTEST/GMOCK介绍与实战