From 910b053fb46709947231c08824154e4776325874 Mon Sep 17 00:00:00 2001 From: Woen-Sug Choi Date: Mon, 8 Jul 2024 23:53:16 +0900 Subject: [PATCH] key conflit avoidance --- extras/ros-jazzy-gz-harmonic-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extras/ros-jazzy-gz-harmonic-install.sh b/extras/ros-jazzy-gz-harmonic-install.sh index 0ceacab3..8054f348 100644 --- a/extras/ros-jazzy-gz-harmonic-install.sh +++ b/extras/ros-jazzy-gz-harmonic-install.sh @@ -39,6 +39,10 @@ sudo apt install -y \ echo echo -e "\033[96m(3/4) ------------ Install Package Keys ---------------\033[0m" echo -e "\033[34mInstalling Signing Keys for ROS and Gazebo...\033[0m" +# Remove keyring if exists to avoid conflicts +sudo rm -f /usr/share/keyrings/ros2-latest-archive-keyring.gpg && \ + sudo rm -rf /etc/apt/sources.list.d/ros2-latest.list +# Get Keys sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key \ -o /usr/share/keyrings/ros-archive-keyring.gpg sudo wget https://packages.osrfoundation.org/gazebo.gpg \