apt-get -f remove <packagename> is also a valid command & may force removal of the program for you. also dpkg has a -force-overwrite option. see man dpkg.