From e38ad9f6d3f9acaf739b0a379abcf5d59e5238d5 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 2 Dec 2023 13:55:23 +0900 Subject: [PATCH] use APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1, see https://stackoverflow.com/questions/48162574/how-to-circumvent-apt-key-output-should-not-be-parsed --- .github/workflows/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 03299fec14..56243fe56f 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -45,7 +45,7 @@ jobs: - name: Install latest git ( use sudo for ros-ubuntu ) run: | # https://github.com/osrf/docker_images/issues/697#issuecomment-1819626877 - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver hkp://keys.openpgp.org:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver keyserver.ubuntu.com:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver keys.openpgp.org:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver pgp.mit.edu:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA + APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver hkp://keys.openpgp.org:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver keyserver.ubuntu.com:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver keys.openpgp.org:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA || sudo apt-key adv --keyserver pgp.mit.edu:80 --recv-keys 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA [ -e /etc/apt/sources.list.d/ubuntu-esm-infra-$(lsb_release -cs).list ] && sudo rm /etc/apt/sources.list.d/ubuntu-esm-infra-$(lsb_release -cs).list ## fix Err https://esm.ubuntu.com trusty-infra-security/main amd64 Packages, gnutls_handshake() failed: Handshake failed (apt-get update && apt-get install -y sudo) || echo "OK" sudo apt-get update