This method focuses on
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
I. Download rosdistro files manually
rosdistro is downloaded to the home directory by default
git clone https://github.com/ros/rosdistro.git
2.Modify 20-default.list
The terminal enters the following command to get the path of the home directory
pwd
Enter rosdistro/rosdep/sourceslist. D, open the 20-default.list file, and
https://raw.githubusercontent.com/ros/rosdistro/master
Amend to read
file:///home/username/rosdistro
Where/home/username is the path obtained by PWD command
3. Modify py file
1. Modification__ init__. py
cd ~/usr/lib/python3/dist-packages/
sudo gedit ./rosdistro/__init__.py
Convert DEFAULT_INDEX_URLs to
DEFAULT_INDEX_URL=” file:///home/username/rosdistro/index-v.yaml “
2, correct3.py
sudo gedit ./rosdep2/rep3.py
Change REP3_TAGETS_URL to
REP3_TAGETS_URL=”file:///home/username/rosdistro/releases/targets.yaml”
3. Modify sources_list.py
sudo gedit ./rosdep2/sources_list.py
Change DEFAULT_SOURCES_LIST_URL to
DEFAULT_SOURCES_LIST_URL=”file:///home/username/rosdistro/rosdep/sources.list.d/20-default.list”
4. Modify gbpdistro_support.py
sudo gedit ./rosdep2/gbpdistro_support.py
Change FUTURE_GBPDISTRO_URL to
FUTURE_GBPDISTRO_URL=”file:///home/username/rosdistro/releases/future.yaml”
4. Reinitialization
sudo rosdep init
rosdep update
Read More:
- Ultimate solution to error reporting of sudo rosdep init of ROS
- Troubleshooting of ROS rosdep init / update
- Solution of OpenGL initialization failure after upgrading motherboard and CPU
- The solution of unsuccessful rosdep update
- Solution to the problem that the camera can’t display when ROS running
- CMDTUX_CAT:1685: ERROR: Application initialization failure
- Solve QQ startup error: Initialization failure: 0x0000000C
- ROS package ROS_ astra_ Camera cannot open RGB lens
- XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_PathRegistryNotFound
- ROS cannot download ROS melody joint state publisher GUI reference
- When installing ROS: bash / opt / ROS / kinetic/ setup.bash : there is no file or directory
- XR: OpenVR Error! OpenVR failed initialization with error code VRInitError_Init_InterfaceNotFound:
- Using jgit to report errors: the solution of algorithm negotiation failure
- Solution to Spacy’s failure to load (‘de ‘) or (‘en’)
- Solution to node sass installation failure
- Through sp_ Flash_ Solution to tool wire brush failure
- SELinux solution to Apache SSL failure
- Solution / error of. Net framework 4.0 installation failure HResult 0xc8000222 solution
- Git authentication failure solution, due to the problem of password modification
- When configuring ROS distributed / Error report solution and command requirements encountered in the process of master-slave computer