Open citronwang opened 2 years ago
ros_cross_compile /home/ws/zone3 --arch aarch64 --os ubuntu --rosdistro melodic
INFO:Rosdep Gatherer:Building rosdep collector image: ros_cross_compile:rosdep INFO:Docker Client:Step 1/10 : FROM ubuntu:bionic INFO:Docker Client: ---> dcf4d4bef137 INFO:Docker Client:Step 2/10 : RUN apt-get update && apt-get install --no-install-recommends -y dirmngr gnupg2 && rm -rf /var/lib/apt/lists/ INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> eeae38bf1e19 INFO:Docker Client:Step 3/10 : RUN apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> fce2e71933d5 INFO:Docker Client:Step 4/10 : RUN echo "deb http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources.list.d/ros-latest.list INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> ce873abe5227 INFO:Docker Client:Step 5/10 : RUN apt-get update && apt-get install --no-install-recommends -y python-rosdep python3-colcon-common-extensions && rm -rf /var/lib/apt/lists/ INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> 36f5aaa0dd14 INFO:Docker Client:Step 6/10 : RUN rosdep init INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> 57414b78c4df INFO:Docker Client:Step 7/10 : COPY gather_rosdeps.sh /root/ INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> b5a2375c4730 INFO:Docker Client:Step 8/10 : RUN mkdir -p /ws INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> af2483f666d5 INFO:Docker Client:Step 9/10 : WORKDIR /ws INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> 07252606ea07 INFO:Docker Client:Step 10/10 : ENTRYPOINT ["/root/gather_rosdeps.sh"] INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> ab142b24444a INFO:Docker Client:Successfully built ab142b24444a INFO:Docker Client:Successfully tagged ros_cross_compile:rosdep INFO:Rosdep Gatherer:Running rosdep collector image on workspace /home/ws/zone3 INFO:Docker Client:+ '[' '!' -d ./src ']' INFO:Docker Client:+ '[' -f /usercustom/rosdep_setup ']' INFO:Docker Client:++ dirname cc_internals/aarch64-ubuntu-melodic/install_rosdeps.sh INFO:Docker Client:+ out_dir=cc_internals/aarch64-ubuntu-melodic INFO:Docker Client:+ mkdir -p cc_internals/aarch64-ubuntu-melodic INFO:Docker Client:+ rosdep update --include-eol-distros INFO:Docker Client:Warning: running 'rosdep update' as root is not recommended. INFO:Docker Client: You should run 'sudo rosdep fix-permissions' and invoke 'rosdep update' again without sudo. INFO:Docker Client:ERROR: error loading sources list: INFO:Docker Client: ('The read operation timed out',) INFO:Docker Client:reading in sources list data from /etc/ros/rosdep/sources.list.d INFO:Docker Client:Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml INFO:Docker Client:Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml INFO:Docker Client:Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml Traceback (most recent call last): File "/usr/local/bin/ros_cross_compile", line 11, in sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/ros_cross_compile.py", line 237, in main cross_compile_pipeline(args, data_collector, platform) File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/ros_cross_compile.py", line 224, in cross_compile_pipeline stage(platform, docker_client, ros_workspace_dir, options, data_collector) File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/dependencies.py", line 137, in call custom_data_dir=options.custom_data_dir) File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/dependencies.py", line 88, in gather_rosdeps volumes=volumes, File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/docker_client.py", line 140, in run_container image_name, exit_code, '', image_name, 'See above ^') docker.errors.ContainerError: Command '' in image 'ros_cross_compile:rosdep' returned non-zero exit status 1: See above ^
Add any other context about the problem here
try
docker run -it ubuntu:focal apt-get update && apt-get install -y wget wget google.com
is ok.
docker run -it osrf/ros2:nightly
rosdep update
get the same problem with above. "'The read operation timed out',"
INFO:Rosdep Gatherer:Building rosdep collector image: ros_cross_compile:rosdep INFO:Docker Client:Step 1/10 : FROM ubuntu:bionic INFO:Docker Client: ---> dcf4d4bef137 INFO:Docker Client:Step 2/10 : RUN apt-get update && apt-get install --no-install-recommends -y dirmngr gnupg2 && rm -rf /var/lib/apt/lists/ INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> eeae38bf1e19 INFO:Docker Client:Step 3/10 : RUN apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> fce2e71933d5 INFO:Docker Client:Step 4/10 : RUN echo "deb http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources.list.d/ros-latest.list INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> ce873abe5227 INFO:Docker Client:Step 5/10 : RUN apt-get update && apt-get install --no-install-recommends -y python-rosdep python3-colcon-common-extensions && rm -rf /var/lib/apt/lists/ INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> 36f5aaa0dd14 INFO:Docker Client:Step 6/10 : RUN rosdep init INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> 57414b78c4df INFO:Docker Client:Step 7/10 : COPY gather_rosdeps.sh /root/ INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> b5a2375c4730 INFO:Docker Client:Step 8/10 : RUN mkdir -p /ws INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> af2483f666d5 INFO:Docker Client:Step 9/10 : WORKDIR /ws INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> 07252606ea07 INFO:Docker Client:Step 10/10 : ENTRYPOINT ["/root/gather_rosdeps.sh"] INFO:Docker Client: ---> Using cache INFO:Docker Client: ---> ab142b24444a INFO:Docker Client:Successfully built ab142b24444a INFO:Docker Client:Successfully tagged ros_cross_compile:rosdep INFO:Rosdep Gatherer:Running rosdep collector image on workspace /home/ws/zone3 INFO:Docker Client:+ '[' '!' -d ./src ']' INFO:Docker Client:+ '[' -f /usercustom/rosdep_setup ']' INFO:Docker Client:++ dirname cc_internals/aarch64-ubuntu-melodic/install_rosdeps.sh INFO:Docker Client:+ out_dir=cc_internals/aarch64-ubuntu-melodic INFO:Docker Client:+ mkdir -p cc_internals/aarch64-ubuntu-melodic INFO:Docker Client:+ rosdep update --include-eol-distros INFO:Docker Client:Warning: running 'rosdep update' as root is not recommended. INFO:Docker Client: You should run 'sudo rosdep fix-permissions' and invoke 'rosdep update' again without sudo. INFO:Docker Client:ERROR: error loading sources list: INFO:Docker Client: ('The read operation timed out',) INFO:Docker Client:reading in sources list data from /etc/ros/rosdep/sources.list.d INFO:Docker Client:Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml INFO:Docker Client:Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml INFO:Docker Client:Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml Traceback (most recent call last): File "/usr/local/bin/ros_cross_compile", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/ros_cross_compile.py", line 237, in main
cross_compile_pipeline(args, data_collector, platform)
File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/ros_cross_compile.py", line 224, in cross_compile_pipeline
stage(platform, docker_client, ros_workspace_dir, options, data_collector)
File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/dependencies.py", line 137, in call
custom_data_dir=options.custom_data_dir)
File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/dependencies.py", line 88, in gather_rosdeps
volumes=volumes,
File "/usr/local/lib/python3.6/dist-packages/ros_cross_compile/docker_client.py", line 140, in run_container
image_name, exit_code, '', image_name, 'See above ^')
docker.errors.ContainerError: Command '' in image 'ros_cross_compile:rosdep' returned non-zero exit status 1: See above ^
System (please complete the following information)
Additional context
Add any other context about the problem here
try
docker run -it ubuntu:focal apt-get update && apt-get install -y wget wget google.com
is ok.
try
docker run -it osrf/ros2:nightly
in the container
rosdep update
get the same problem with above. "'The read operation timed out',"