diff options
-rw-r--r-- | rumba/ssh_support.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py index 1a065c6..895a4e1 100644 --- a/rumba/ssh_support.py +++ b/rumba/ssh_support.py @@ -406,7 +406,11 @@ def aptitude_install(testbed, node, packages): package_install += package + " " package_install += "--yes" - cmds = [sudo("sh -c 'while fuser /var/lib/dpkg/lock > /dev/null 2>&1; " + + cmds = [sudo("systemctl disable apt-daily.service || true"), + sudo("systemctl disable apt-daily.timer || true"), + sudo("systemctl stop apt-daily.service || true"), + sudo("systemctl stop apt-daily.timer || true"), + sudo("sh -c 'while fuser /var/lib/dpkg/lock > /dev/null 2>&1; " + "do sleep 1; echo \"Waiting for dpkg...\"; done'"), sudo("apt-get update"), sudo(package_install)] |