1 Download the configuration file
Execute in the user directory:git clone https://github.com/ros/rosdistro.git
2 Modify the mapping relationship
2.1 sudo vim /usr/lib/python3/dist-packages/rosdep2/rep3.py
REP3_TARGETS_URL ='file:///home/username/rosdistro/releases/targets.yaml'
2.2 sudo vim /usr/lib/python3/dist-packages/rosdistro/init.py
DEFAULT_INDEX_URL = 'file:///home/username/rosdistro/index-v4.yaml'
2.3 vim /home/username/rosdistro/rosdep/sources.list.d/20-default.list
yaml file:///home/username/rosdistro/rosdep/osx-homebrew.yaml osx
yaml file:///home/username/rosdistro/rosdep/base.yaml
yaml file:///home/username/rosdistro/rosdep/python.yaml
yaml file:///home/username/rosdistro/rosdep/ruby.yaml
gbpdistro file:///home/username/rosdistro/releases/fuerte.yaml fuerte
2.4 sudo vim /usr/lib/python3/dist-packages/rosdep2/sources_list.py
DEFAULT_SOURCES_LIST_URL = 'file:///home/username/rosdistro/rosdep/sources.list.d/20-default.list'