If you ever get this error while attempting to install OS X, you will likely need to set the date using terminal.
“macOS could not be installed on your computer. The installer resources were not found. Quit the installer to restart your computer and try again.” This happens regardless of whether you’re performing an upgrade or a clean install, and whether the drive you’re installing to is formatted as APFS or HFS+. So, what’s the solution? Have you tried installing macOS or OS X and came across an error stating that your OS could not be installed on your computer? Well here's a quick fix! No packages were eligible for install. This is what it looks like in the installer. Upon seeing this I went 'HUH?' Because the installation was from a thumb drive I'd used many times to install Mac OS X (El Capitan) successfully. The above image came from an attempt to install El Capitan. I just got the following message, macOS could not be. The Mojave 10.14.1 update does NOT install properly on unsupported machines, and could result in an unbootable OS. If you want to install the 10.14.1 update (and are not currently running 10.14.1), perform the following steps.
The simplest way to set it (if you have no OS installed on the machine) is to boot the install media, open the terminal and check the date (type date).
How Do You Fix No Packages Were Eligible For Install
The following information was found on someones site (sorry I forget which), but I have included it here to make it easier to correct this issue.
Use the following command in terminal to set the machine to a time and date of your choosing:
date {month}{day}{hour}{minute}{year}
For example, to set it to 8pm on the 2nd October 2018
How To Fix No Packages Were Eligible For Install
date 100220002018
The command below will output the current date in a format suitable for use on another machine:
date '+%m%d%H%M%Y.%S'
Macos Could Not Be Installed
Further, the following (mouthful of a command) will let you specify a date and time in a more readable format and set it in one go:date -f '%Y-%m-%d %H:%M:%S' '2016-07-09 15:20:10'