From 9c8f624c08c43aad5f4621239ed7a01f1cf1739b Mon Sep 17 00:00:00 2001 From: Cameron Evans Date: Tue, 17 Sep 2019 14:38:53 -0700 Subject: [PATCH] Fixes ros1_sa_build.sh failing on colcon bundle The following error would pop up during colcon bundle. [9.067s] ERROR:colcon.colcon_bundle.verb:Could not fetch from repositories: W:Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://packages.ros.org/ros2/ubuntu bionic InRelease' doesn't support architecture 'i386', W:GPG error: http://packages.osrfoundation.org/gazebo/ubuntu-stable bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 67170598AF249743, E:The repository 'http://packages.osrfoundation.org/gazebo/ubuntu-stable bionic InRelease' is not signed. The fix is to add the key for the apt server. Testing: Followed the manual test for sample apps in the README.md. Reproduced the failure before making the change and confirmed that it succeeded with kinetic/gazebo7, kinetic/gazebo9, and melodic/gazebo9. --- ws_builds/robot_ws.sh | 3 +++ ws_builds/simulation_ws.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ws_builds/robot_ws.sh b/ws_builds/robot_ws.sh index baaad09..15f1793 100755 --- a/ws_builds/robot_ws.sh +++ b/ws_builds/robot_ws.sh @@ -10,4 +10,7 @@ fi rosdep install --from-paths src --ignore-src -r -y colcon build --build-base build --install-base install + +# bundle will fail without this key +apt-key adv --fetch-keys http://packages.osrfoundation.org/gazebo.key colcon bundle --build-base build --install-base install --bundle-base bundle diff --git a/ws_builds/simulation_ws.sh b/ws_builds/simulation_ws.sh index 180d954..f04efa1 100755 --- a/ws_builds/simulation_ws.sh +++ b/ws_builds/simulation_ws.sh @@ -11,4 +11,7 @@ rosdep update rosdep install --from-paths src --ignore-src -r -y colcon build --build-base build --install-base install + +# bundle will fail without this key +apt-key adv --fetch-keys http://packages.osrfoundation.org/gazebo.key colcon bundle --build-base build --install-base install --bundle-base bundle