I have found that if you reinstall Ubuntu right on top of the existing onewithout formating the partition, it is like a repair and will leave yoursettings and stuff intact.