#!/usr/bin/python import apt_pkg import time apt_pkg.GetLock("/var/run/unattended-upgrades.lock") time.sleep(10000000)