For future reference when apt or dpkg is messed up, you do not have to
re-install Ubuntu or any distro. Here is how to fix broken apt or dpkg:
sidux.com/PNphpBB2-printview-t-9449-start-0.html
Bookmark it because it will happen eventually if you do lots of installing.