From d6545732e4b48074d024cc05ec9f125326bded56 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 8 Dec 2018 16:57:01 +0100 Subject: [PATCH] buildserver: disable all automatic apt-get updates Prevents errors due to: dpkg: error: dpkg status database is locked by another process closes #437 --- buildserver/provision-apt-get-install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/buildserver/provision-apt-get-install b/buildserver/provision-apt-get-install index a59359b8..a99b6871 100644 --- a/buildserver/provision-apt-get-install +++ b/buildserver/provision-apt-get-install @@ -13,8 +13,11 @@ printf 'APT::Install-Recommends "0";\nAPT::Install-Suggests "0";\n' \ printf 'APT::Acquire::Retries "20";\n' \ > /etc/apt/apt.conf.d/99acquire-retries -printf 'APT::Periodic::Update-Package-Lists "0";\nAPT::Periodic::Unattended-Upgrade "0";\n' \ - > /etc/apt/apt.conf.d/99no-auto-updates +cat < /etc/apt/apt.conf.d/99no-auto-updates +APT::Periodic::Enable "0"; +APT::Periodic::Update-Package-Lists "0"; +APT::Periodic::Unattended-Upgrade "0"; +EOF printf 'APT::Get::Assume-Yes "true";\n' \ > /etc/apt/apt.conf.d/99assumeyes