Something like that Python script should be enough really to catch most
issues:
import apt_pkg, os
apt_pkg.init()
dir = apt_pkg.config.find_dir("Dir::Cache::Archives")
while True:
try:
apt_pkg.get_lock(os.path.join(dir, "lock"))
break
except:
continue
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1820886
Title:
Potential inconsistency due to system halt/reboot being allowed when
package installation in progress
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1820886/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs