rosdep update time out解决方法

一、

系统环境:ubuntu 20.04

ROS版本:Noetic

二、

1、修改 、/etc/ros/rosdep/sources.list.d/20-default.list 

所有的连接前加 “https://ghproxy.com/”

# os-specific listings first
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master>

# generic
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master>
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master>
yaml https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master>
gbpdistro https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/m>

# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are>

 2、修改/usr/lib/python3/dist-packages/rosdistro/__init__.py

DEFAULT_INDEX_URL='https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml'

3、修改/usr/lib/python3/dist-packages/rosdep2/gbpdistro_support.py

FUERTE_GBPDISTRO_URL='https://ghproxy.com/https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml'

4、ROS humble 增加的修改

sudo subl /usr/lib/python3/dist-packages/rosdep2/gbpdistro_support.py 
sudo subl /usr/lib/python3/dist-packages/rosdep2/sources_list.py
sudo subl /usr/lib/python3/dist-packages/rosdep2/rep3.py 
sudo subl /usr/lib/python3/dist-packages/rosdistro/manifest_provider/github.py 

你可能感兴趣的:(ubuntu,linux,运维)