From dda076dd2b76f1fc2ff0cd49b15a82cccae23774 Mon Sep 17 00:00:00 2001 From: Artem Sidorenko Date: Thu, 7 Jul 2016 13:45:42 +0200 Subject: [PATCH] Disable periodic activities of apt To avoid blocking of dpkg https://github.com/chef/bento/issues/609#issuecomment-227202607 --- scripts/ubuntu/update.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/ubuntu/update.sh b/scripts/ubuntu/update.sh index e7f76ee3c..fe99707c6 100644 --- a/scripts/ubuntu/update.sh +++ b/scripts/ubuntu/update.sh @@ -32,3 +32,8 @@ EOF if [ "$ubuntu_version" = "12.04" ]; then apt-get -y install libreadline-dev dpkg; fi + +# Disable periodic activities of apt +cat </etc/apt/apt.conf.d/10disable-periodic +APT::Periodic::Enable "0"; +EOF