From 94a9a2af0c58bea46856f426aab282db6d856a6d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 9 Jul 2018 23:08:41 +0800 Subject: [PATCH] build_utils: import ubuntu-toolchain-r's key without keyserver we are running into following error recently gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com gpgkeys: key 1E9377A2BA9EF27F can't be retrieved gpg: no valid OpenPGP data found. gpg: Total number processed: 0 gpg: keyserver communications error: keyserver helper general error gpg: keyserver communications error: unknown pubkey algorithm gpg: keyserver receive failed: unknown pubkey algorithm so use the local copy of the pubkey instead Signed-off-by: Kefu Chai --- scripts/build_utils.sh | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index d069e986..27cb4ccc 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -531,10 +531,6 @@ echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu $DIST main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list echo "deb http://ports.ubuntu.com/ubuntu-ports $DIST-updates main" >> \ /etc/apt/sources.list.d/ubuntu-toolchain-r.list -# import PPA's signing key into APT's keyring -apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F -apt-get update -y -o Acquire::Languages=none -o Acquire::Translation=none || true -apt-get install -y g++-7 EOF elif [ "$ARCH" = "x86_64" ]; then cat > $hookdir/D05install-gcc-7 <> \ /etc/apt/sources.list.d/ubuntu-toolchain-r.list -# import PPA's signing key into APT's keyring -apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F -apt-get -y update -o Acquire::Languages=none -o Acquire::Translation=none || true -apt-get install -y g++-7 EOF else echo "unsupported arch: $ARCH" exit 1 fi +cat >> $hookdir/D05install-gcc-7 < $hookdir/D10update-gcc-alternatives -- 2.39.5