Can't install OS X from pendrive
I have this 2010 Macbook Pro 13" with an empty hard drive, which was giving me some trouble to erase securely: wouldn't do it giving me a "POSIX report: the operation couldn't be completed. input/output error", but I could erase the drive once. The drive had OS X installed a few days ago and it was working perfectly, I can't believe it is failing! I read the POSIX error could also be because of a broken internal SATA ribbon or the connection not being good enough, but I haven't opened the computer yet. Since the drive was working perfectly before I erased it, I attempted to install Yosemite from a bootable pendrive.
It doesn't do it. It says "This copy of the Install OS X Yosemite application can’t be verified. It may have been corrupted or tampered with during downloading”.
I tried with both El Capitan and Yosemite installers on the USB. That drive gave me some problems some time ago and I thought it could be gone bad, but Disk Utility and CleanMyMac 3 tell me it's fine and DiskMaker could make the bootable installer drive with no problem.
What is going on? I need to install OS X on this thing.
I don't know if to buy a new internal hard drive, a new pendrive for the installer, Disk Warrior to check if the internal is actually failing, a new SATA connection, or a USB/SATA cable to try to install OSX in it from another fully functional Mac via USB...to then put it in the Macbook Pro.
I have Googled for a solution; I have found one guy saying that could be a network problem - I don't understand that, the installer is fully downloaded and shouldn't require internet now, or does it? Then there are Terminal solutions for those with the OS installed, which I don't, and the solution on making sure the system clock is right, which I don't know how to access from an empty drive.
I am baffled and confused and I really hope somebody can help me with this. I don't want to spend money on drives if these I have are fine. Left to my own devices, I would first get a SATA/USB converter and check the drive and eventually install OSX via my functioning Mac, since I don't have an external drive on which I can install OSX and run it from there on the Macbook - and check the internal drive from there. Disk Warrior is expensive, I know it can diagnose a drive perfectly. Since I need to sell the computer with the drive I need to know this, how do I do that besides Disk Warrior?
I don't think the installer error necessarely confirms the internal drive to be failing, nor the POSIX reports. Or am I wrong? I had just updated to El Capitan on this drive a few days ago, and then needed to do a clean install with either Yosemite or El Capitan, in order to sell the computer.
please help, thank you
ps: I almost forgot, the Macbook Pro has no battery. Not sure it changes anything, I wouldn't think so
Update:
just learned that I can indeed fix the system clock from the bootable installer drive, trying to do this now and see if it works. Fingers crossed, the internal drive must be fine! Even though it's empty, I really don't wanna buy a new one just to sell it then, or maybe I could turn it into a strong selling point for an aging Mac?
MacBook Pro, 13" 2010