I have a Early 2011 MacBook Pro and I've been wanting to give it away (as it is acting up) so I factory reset it. Erasing the hard disk went fine, but when I tried to reinstall the OS in the recovery mode, it keeps showing errors and not letting me restart. It says
no native mechanism to verify basesystem.dmg,
no native mechanism to verify applediagnostics.chunklist
- failed to verify installESDDmg.pkg: xar_verify failed
in the installer log. It also remains stuck on the same screen with about a minute remaining....
How do I resolve this issue?