Check disk before installing ubuntu, gave me error in 1 file

I would check the md5sum of your downloaded iso.

https://help.ubuntu.com/community/HowToMD5SUM

https://help.ubuntu.com/community/UbuntuHashes

If it fails that - you will have to redownload it, preferably with a torrent - that will make sure your download is good.


Important point from Eliah Kagan in comment

In addition to checking the MD5SUM of the downloaded .iso file, if that doesn't reveal a corrupted file, then it's important to check the installation media itself (this applies to both CD/DVD media and to USB flash drives)