diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-02-21 12:26:09 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-02-23 21:00:32 +0000 |
commit | b20224fe6002eb930f7921a4fe235662dd6055f7 (patch) | |
tree | a37f1d3c6e8b2b8e8ee97c89da88a158d342ceb0 /coin | |
parent | f6f00fdce1f3f00775e8b399dc8813883af5bf90 (diff) |
Uninstall aptdaemon/aptd before using apt
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 <sami.nurmenniemi@qt.io>
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Diffstat (limited to 'coin')
-rwxr-xr-x | coin/provisioning/qtci-linux-Ubuntu-16.04-x86_64/02-apt.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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) |