ros-tooling / cross_compile

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

Error building due to ROS GPG key unavailable #328

Closed sanatmharolkar closed 3 years ago

sanatmharolkar commented 3 years ago

The ROS packages public key F42ED6FBAB17C654 is no longer available due to a recent incident, it has been replaced with a new key. The package ros_cross_compile is still trying to download the packages in Docker using the old key. The build is failing due to this.

INFO:Docker Client:Err:4 http://packages.ros.org/ros2/ubuntu buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
INFO:Docker Client:Reading package lists...
INFO:Docker Client:W
INFO:Docker Client:: 
INFO:Docker Client:GPG error: http://packages.ros.org/ros2/ubuntu buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
INFO:Docker Client:

INFO:Docker Client:E: The repository 'http://packages.ros.org/ros2/ubuntu buster InRelease' is not signed.

ERROR:Docker Client:Error building Docker image. The follow error was caught:
The command '/bin/bash -c apt-get update && apt-get install --no-install-recommends -y       build-essential       cmake       python3-colcon-common-extensions       python3-colcon-mixin       python3-de
v       python3-pip     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
TSC21 commented 3 years ago

That was already fixed in https://github.com/ros-tooling/cross_compile/pull/317. What version of the tool are you using? @emersonknapp was a new release done with the latest changes?

sanatmharolkar commented 3 years ago

I installed using "pip3 install ros_cross_compile". It is version 0.8.0

TSC21 commented 3 years ago

The above release already includes the PR with the update to where the keys are being fetched from. What ROS distro, arch and OS are you trying this against?

sanatmharolkar commented 3 years ago

Target: OS - Debian (Buster) Arch - armhf Distro - Foxy

Host: OS - Ubuntu 20.04 Arch - amd64

TSC21 commented 3 years ago

Target: OS - Debian (Buster) Arch - armhf Distro - Foxy

Host: OS - Ubuntu 20.04 Arch - amd64

Foxy is not available in Debian Buster for armhf - https://github.com/ros-tooling/cross_compile/blob/master/test/run_e2e_test.sh#L91.

sanatmharolkar commented 3 years ago

Oh. I guess I'll have to do the compilation manually. Thanks.