The problem is that the old postrm is being called with no conditionality on the actions it takes; its doing a remove/purge all of the time, when infact its being called with 'upgrade' which then fails due to the interim state of files on disk.
I think the right fix is to only perform the steps in the postrm for remove/purge - upgrade can be an no-op as the collect/compress will happen in the postinst.
The problem is that the old postrm is being called with no conditionality on the actions it takes; its doing a remove/purge all of the time, when infact its being called with 'upgrade' which then fails due to the interim state of files on disk.
I think the right fix is to only perform the steps in the postrm for remove/purge - upgrade can be an no-op as the collect/compress will happen in the postinst.