Closed sqn175 closed 3 years ago
I'm not sure - but it sounds at first glance like your docker service is misconfigured and can't reach the network. Could you try the following in the same environment?
docker run -it ubuntu:focal
# in the container
apt-get update && apt-get install -y wget
wget google.com
If that doesn't succeed, then it suggests your docker service isn't set up to reach the internet. If it works, then it seems like it's something more specific. You could then try
docker run -it osrf/ros2:nightly
# in the container
rosdep update
Let me know how those experiments go for you.
Hi emersonknapp, Thanks for your reply. The "wget google.com" comand failed in both the host PC and the container. This makes sense since google.com is blocked in CHINA mainland. I finally make "rosdep update" works using a proxy network in Docker. I'll close this issue.
This makes sense since google.com is blocked in CHINA mainland
Oh, yes, a better test would be wget https://raw.githubusercontent.com
- since that's where rosdep pulls its sources from. I am used to google.com
because it's always available for me - sorry for any confusion there.
I'm glad you figured it out!
Hi emersonknapp, Thanks for your reply. The "wget google.com" comand failed in both the host PC and the container. This makes sense since google.com is blocked in CHINA mainland. I finally make "rosdep update" works using a proxy network in Docker. I'll close this
你好,我遇到了同样的问题(目前使用的clash代理-虚拟机里的ubuntu)仍然不行, 请问具体是怎么使用代理网络呀?
I'm going with the same problem. At the step ,
docker run -it osrf/ros2:nightly
rosdep update
got the problem ERROR: error loading sources list:: The read operation timed out
what should I do next?
Description
Following the tutorial in README.md produces "ERROR: error loading sources list: ('The read operation timed out',)" .
Expected Behavior
The tutorial should succeed without error.
Actual Behavior
The error shows as follows:
To Reproduce
Following the tutorial in README.md with command "ros_cross_compile cross_compile_ws/ --rosdistro foxy --arch aarch64 --os ubuntu".
System (please complete the following information)
For ROS 2 bugs - please attach a VCS.repos or Dockerfile if possible to help us reproduce the environment
Additional context
I have reproduced this error either in my local host PC or in a AWS cloud server. It looks like a network issue, however I have no idea to solve it. Many thanks!