You didn't make a mistake. The way the packages work is just broken. Solution: Update all libqtm-12-(contacts, location, whatever, ...) packages manually beforhand and then libqtm-12 itself... That way the offending libs are gone before libqtm-12 tries to install them again.