Comment 4 for bug 1795407

Revision history for this message
Julian Andres Klode (juliank) wrote :

FTR, with the locking with statement, without the SRU, it fails, as expected (both in bionic and xenial), e.g.:

dpkg: error: dpkg status database is locked by another process

E:Sub-process /usr/bin/dpkg returned an error code (2)
Traceback (most recent call last):
  File "/home/jak/Projects/Ubuntu/Scratch/foo.py", line 11, in <module>
    c.commit()
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 610, in commit
    raise SystemError("installArchives() failed")
SystemError: installArchives() failed