[Learning Record] Use the 6-rosdep tool to modify and solve the "rosdep update time out" problem

Reference video: https://www.bilibili.com/video/BV1bg41177xC
Solution: Run the following commands in the terminal:

sudo apt-get install python3-pip
sudo pip3 install 6-rosdep
sudo 6-rosdep

At this time, several related files during the update will be automatically modified, and the source will be changed to Tsinghua source. Then run:

sudo rosdep init
rosdep update

That’s it.

Problem Solved
When using it myself, I encountered the following error:

Hit https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/ruby.yaml
Query rosdistro index https://mirrors.tuna.tsinghua.edu.cn/rosdistro/master/index-v4.yaml
ERROR: error loading sources list:
HTTP Error 404: Not Found (https://mirrors.tuna.tsinghua.edu.cn/rosdistro/master/index-v4.yaml)

After checking the cause of the error, it seems that Tsinghua Source has modified the path. You need to open __init__.pythe file and remove 'master/'.
At the same time, I found that there is an extra "https://" in front of the link, which also needs to be deleted. After that the problem is solved.

Really awesome!

Guess you like

Origin blog.csdn.net/tfb760/article/details/127605838