This is also a problem with apticron, for example. It will try to update package lists in the middle of an upgrade, causing the upgrade to fail because it can't lock the dpkg database.
This is also a problem with apticron, for example. It will try to update package lists in the middle of an upgrade, causing the upgrade to fail because it can't lock the dpkg database.