From cc2266fd02552083f3dd2f0a88a1a2e4be6e04f4 Mon Sep 17 00:00:00 2001 From: Jorge Marin Date: Wed, 14 Mar 2018 10:34:51 +0100 Subject: [PATCH] Wait for the apt.daily service to finish instead of killing it avoiding bad state (#45) --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 62f156d..c0db9a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,7 @@ before_install: # Fix for Ubuntu Xenial apt-daily.service triggering # https://unix.stackexchange.com/questions/315502/how-to-disable-apt-daily-service-on-ubuntu-cloud-vm-image - | - sudo systemctl stop apt-daily.service && - sudo systemctl kill --kill-who=all apt-daily.service && - while ! (systemctl list-units --all apt-daily.service | fgrep -q dead) ; do + while sudo fuser /var/{lib/{dpkg,apt/lists},cache/apt/archives}/lock >/dev/null 2>&1; do sleep 1 done - sudo apt-get -qq update