In the installation of ros for rosdep update often reported errors, there is a way to 100% success, solved by modifying the download source files, a total of 5 files, here is a record.
1) open sources_list.py
sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
1.1 add a line between lines 310 and 311
url = 'https://ghproxy.com/'+url
After adding, it is shown in the following figure.
1.2 Modify line 72 and add after the equal sign
'https://ghproxy.com/' +
After modification, it is shown in the following figure.
After modification, save and exit.
2) open gbpdistro_support.py
sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
2.1 Modify line 36 to add
'https://ghproxy.com/' +
After modification, it is shown in the following figure.
2.2 modify 204 lines and add the same contents as 2.1
After modification, see the following figure.
After modification, save and exit.
3) open rep3.py
sudo gedit /usr/lib/python2.7/dist-packages/rosdep2/rep3.py
Modify line 39 and add the same content as 2.1, namely
'https://ghproxy.com/' +
After modification, it is shown in the following figure.
After modification, save and exit.
(4) open __init__.py
sudo gedit /usr/lib/python2.7/dist-packages/rosdistro/__init__.py
Line 68, add the same as 2.1, namely
'https://ghproxy.com/' +
After modification, it is shown in the following figure.
After modification, save and exit.
5 open github.py
sudo gedit /usr/lib/python2.7/dist-packages/rosdistro/manifest_provider/github.py
Amend line 68 to add
'https://ghproxy.com/' +
After modification, it is shown in the following figure.
After modification, save and exit.
After all the modifications are saved, execute rosdep update. After the update is completed, see the following figure:
Read More:
- deepin rosdep update Error: ERROR: Rosdep experienced an error: Could not detect OS,
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation
- ros2 apt-get install error: E: Failed to fetch http://packages.ros.org…
- Ubuntu update source error: E: Problem executing scripts APT::Update::Post-Invoke-Success…
- [Solved] Invalid signature error for ROS repository while trying to do sudo apt-get update
- Error resolution in composer 2 install or update
- How to Solve Xmind Install Error in Ubuntu System
- Ubuntu Server: How to Install Chrome
- How to Solve labelme Install Error in Ubuntu
- [Solved] Ubuntu Update source error: Certificate verification failed: The certificate is NOT trusted.
- Ubuntu 20.04 Desktop Install sublime-text Error: “Certificate verification failed”
- [Solved] Ubuntu 20.04 install MATLAB and toolbox permissions Error
- [Solved] Ubuntu pip Install Error: which is not on PATH
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- [Solved] Ubuntu16.4Install vcs2016 Error: mount.vboxsf: mounting failed with the error: Invalid argument
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- How to Solve Rosep Problem in ROS Initialization (Sudo Rosep Init)
- ubuntu install package Error: subprocess installed post-installation script returned error exit status 10
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- [Solved] Ubuntu20.04 Error: “Failed to install the following Android SDK packages as some licences have not..“error