Are you installing Ubuntu with a CD? Back in the day when I tried, it turned out some of the files were damaged and I got the same error. In the end I just made a bootable usb drive and installed it off there. Check around if any of the files are "0kb". If they are and you're using a rewritable cd then re-burn them. If not then you'll need to do everything again. Good luck.