I am trying to boot into my mac and it's taking me into macOS Utilities. I selected the reinstall macOS option, I do the eligibility check, that works. Then I select the hard drive to install it on (OS X base System).
However as soon as it starts, the install fails with an "Error occurred while preparing the installation try again."
I tried the date fix as many people suggested but that didn't seem to work.
What else can I try?
Edit:
Added images with result of commands
Best Answer
The previous content of the main volume has been replaced with the content of the BaseSystem.dmg in the Recovery HD by unfortunate circumstances. These circumstances are unclear. Some files have been recovered with the usual tools to an external volume.
To reinstall macOS do the following (all data on your Mac will be erased so don't proceed if you still have some data on your main volume/disk or if you want to recover it!):