While new setup ros2 environment on Ubuntu 18.04, I have blocked by rosdep update.
Try dozens of times, “rosdep update” still timeout.
Here is workaround by using python3_rosdep and Increasing timeout value.
sudo apt install python3_rosdep
Modify /usr/lib/python3/dist-packages/rosdep2/
sources_list.py
“- DOWNLOAD_TIMEOUT=15.0”
“+ DOWNLOAD_TIMEOUT=600.0”
gbpdistro_support.py
“- DOWNLOAD_TIMEOUT=15.0”
“+ DOWNLOAD_TIMEOUT=600.0”
rep3.py
“- DOWNLOAD_TIMEOUT=15.0”
“+ DOWNLOAD_TIMEOUT=600.0”
After this change, rosdep update succeed rate will be a little more better.