This bug was fixed in the package python-apt - 1.7.1
--------------- python-apt (1.7.1) cosmic; urgency=medium
* apt.Cache: Fix (un)locking of archives (Closes: #922416) (LP: #1826870) * apt.Cache: Use explicit, more safe locking in update() * Update mirror lists
-- Julian Andres Klode <email address hidden> Mon, 29 Apr 2019 13:44:16 +0200
This bug was fixed in the package python-apt - 1.7.1
---------------
python-apt (1.7.1) cosmic; urgency=medium
* apt.Cache: Fix (un)locking of archives (Closes: #922416) (LP: #1826870)
* apt.Cache: Use explicit, more safe locking in update()
* Update mirror lists
-- Julian Andres Klode <email address hidden> Mon, 29 Apr 2019 13:44:16 +0200