The installation of OS X Yosemite has failed. First Aid in Disk Utility reports directory damage but
cannot repair it. What do you do next?
Reinstall OS X using the Recovery System.
Replace the hard drive.
Erase the hard drive and then reinstall OS X.
Restart the machine and download the OS X Yosemite installer again.