#!/bin/bash set -e set -o xtrace export DEBIAN_FRONTEND=noninteractive apt-get install -y \ ca-certificates \ gnupg # Upstream LLVM package repository apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list echo 'deb https://deb.debian.org/debian testing main' >/etc/apt/sources.list.d/testing.list apt-get update # Don't use newer packages from testing by default cat >/etc/apt/preferences <crashdialog.reg <