Can’t install Yosemite on old mac
I have recently purchased an older Mac, which was erased before being sold. I tried to install Yosemite from reinstall os option, it’s asking for Apple ID and password, then after putting my Apple ID and password, an error message pops up, The server gave an error due download. 403 Forbidden. Then I purchased a bootable OS X flash drive. When I am starting up the Mac with the flash drive inserted, holding the option key, two options are coming up. Recovery and an orange Efi boot. Selecting the efi boot is again taking me to reinstall, help, recovery and disc utility options. Then the same thing is happening . Apple ID password and then the error. It’s not installing OS X. Could you please help me regarding this.
Thanks
Prabuddha