ros-tooling / cross_compile

A tool to build ROS and ROS2 workspaces for various targets
Apache License 2.0
187 stars 59 forks source link

Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease #359

Open Tumb1eweed opened 2 years ago

Tumb1eweed commented 2 years ago

Description

ros_cross_compile *** --arch aarch64 --os ubuntu --rosdistro dashing

Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not connect to archive.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.38), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed outs

furyNerd commented 2 years ago

i have overcome this failure by setting proxy in the dockerfiles. e.g. your ros_cross_compile pkg is pip installed in path/to/ros_cross_compile (checked by pip3 show ros_cross_compile), then things like apt-get update ..., apt-get install... in dockerfile under path/to/ros_cross_compile/docker/ adapted to

apt-get install ... -o Acquire::http::proxy="http://username:password@ip:port"

and also other similiar places need internet access have been proxyed...

but pity i cannot overcome the rosdep ... related issues, looks like the proxy cannot be used by rosdep, i dont know why but i tried to comment out all the rosdep ... related instructions, by now in my case it looks works ok