@ThomasAH: look at what debs from the OP post are doing in their pre/postinst scripts (sorry, I don;t remember what I've put there )