On 2018-06-18 14:20, Julian Andres Klode wrote: > Basically, add Depends: python-apt (>> 1.7~alpha1~), and do: > with apt_pkg.SystemLock(): > main() Will this also allow to wait on the lock? Kind regards Philipp Kern