summaryrefslogtreecommitdiffstats
path: root/install-deps.sh
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2018-07-10 14:23:48 +0200
committerKefu Chai <kchai@redhat.com>2018-07-10 14:24:02 +0200
commitb94e3790c88d599821b71bc76b20755c9580c081 (patch)
tree4568518b3fa5540ca5ea75c1a7e37acc9701b46d /install-deps.sh
parentMerge pull request #22711 from fghaas/wip-doc-mimic-upgrade-prereq (diff)
downloadceph-b94e3790c88d599821b71bc76b20755c9580c081.tar.xz
ceph-b94e3790c88d599821b71bc76b20755c9580c081.zip
install-deps.sh: 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 <kchai@redhat.com>
Diffstat (limited to 'install-deps.sh')
-rwxr-xr-xinstall-deps.sh20
1 files changed, 17 insertions, 3 deletions
diff --git a/install-deps.sh b/install-deps.sh
index b5f99748d78..be25772e233 100755
--- a/install-deps.sh
+++ b/install-deps.sh
@@ -51,9 +51,23 @@ deb [arch=amd64] http://mirror.cs.uchicago.edu/ubuntu-toolchain-r $dist main
deb [arch=amd64,i386] http://mirror.yandex.ru/mirrors/launchpad/ubuntu-toolchain-r $dist main
EOF
# import PPA's signing key into APT's keyring
- $SUDO apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
- $SUDO apt-get -y update -o Acquire::Languages=none -o Acquire::Translation=none || true
- $SUDO apt-get install -y g++-7
+ cat << ENDOFKEY | $SUDO apt-key add -
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: SKS 1.1.6
+Comment: Hostname: keyserver.ubuntu.com
+
+mI0ESuBvRwEEAMi4cDba7xlKaaoXjO1n1HX8RKrkW+HEIl79nSOSJyvzysajs7zUow/OzCQp
+9NswqrDmNuH1+lPTTRNAGtK8r2ouq2rnXT1mTl23dpgHZ9spseR73s4ZBGw/ag4bpU5dNUSt
+vfmHhIjVCuiSpNn7cyy1JSSvSs3N2mxteKjXLBf7ABEBAAG0GkxhdW5jaHBhZCBUb29sY2hh
+aW4gYnVpbGRziLYEEwECACAFAkrgb0cCGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRAe
+k3eiup7yfzGKA/4xzUqNACSlB+k+DxFFHqkwKa/ziFiAlkLQyyhm+iqz80htRZr7Ls/ZRYZl
+0aSU56/hLe0V+TviJ1s8qdN2lamkKdXIAFfavA04nOnTzyIBJ82EAUT3Nh45skMxo4z4iZMN
+msyaQpNl/m/lNtOLhR64v5ZybofB2EWkMxUzX8D/FQ==
+=LcUQ
+-----END PGP PUBLIC KEY BLOCK-----
+ENDOFKEY
+ $SUDO env DEBIAN_FRONTEND=noninteractive apt-get update -y -o Acquire::Languages=none -o Acquire::Translation=none || true
+ $SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y g++-7
fi
case $dist in