From b20224fe6002eb930f7921a4fe235662dd6055f7 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Wed, 21 Feb 2018 12:26:09 +0100 Subject: Uninstall aptdaemon/aptd before using apt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This removes various kinds of update notifiers that depend on aptd. Also gets rid of the problem that aptd may hold apt lock files. Task-number: QTQAINFRA-1755 Change-Id: I27dd6fef4720ef25a504d76a3da16d9bf45fb2f7 Reviewed-by: Sami Nurmenniemi Reviewed-by: Tony Sarajärvi --- coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh b/coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh index e0e1d1f1..1f2139c1 100755 --- a/coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh +++ b/coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh @@ -51,6 +51,19 @@ try sudo systemctl stop $service sudo systemctl disable $service done + + # aptdaemon is used by update notifiers and similar and there is no point in having those (the symptom is aptd holding a lock) + for i in `seq 10`; do + echo attempting to remove aptdaemon + sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y remove aptdaemon || true + # check that aptdaemon is no longer installed + which aptd > /dev/null || break + if [[ $i -eq 10 ]]; then + throw $ExceptionAPT + fi + sleep 10 + done + # Git is not needed by builds themselves, but is nice to have # immediately as one starts debugging installPackages+=(git) -- cgit v1.2.3