You are right, this is a general Linux/Ubuntu question. apt does not allow you to do this. But I once read about the dpkg --force-XXXX flags, which lead me to this post on ubuntuforums. Maybe this helps?