From 4e59af264ebff96f2a21e8c020220102803d3b58 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Fri, 1 Dec 2023 21:35:00 +0900 Subject: [PATCH] fix gpg: keyserver receive failed: Cannot assign requested address errors --- .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 37402ad957..e2226da7dc 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 del 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA; sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com: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