Tuffy Nicolas wrote:
But I did erase the iMac's "Macintosh HD" volume and then its entire physical drive, immediately prior to creating the bootable USB stick.
You missed that in the summary which I did quote which is why I mentioned it.
I also, in between those two steps, changed the date of the iMac to 2017, as previously recommended.
Yes, that for when you were using the installer from local recovery mode which used an older outdated version where the certificate had expired. By now using the USB installer which you just acquired, you may need to use the correct date again although I believe another user may have posted on these forums that they had to set the date to 2020 (we don't always get all the details from users and Apple seems to make this much more difficult than it should be which does not help).
But after erasing the entire physical drive, there's no longer any way to boot into Recovery mode -- so how can I possibly change the date on the iMac now?
You still have access to the Terminal app regardless of which installer you use. The only difference between the installers is how you access them and how old/new they are. The Terminal app can be found on the Utilities menu while booted to the installer.
Prior to all this reformatting, the iMac was functioning perfectly, with no problems, and I ever ran Disk Utility on it before all these steps, and it reported zero problems. So I really don't think the drive is failing.
Sometimes reinstalling the OS will reveal hardware issues that may not have been apparent beforehand. Installing an OS does a lot of reading & writing to the drive, plus you may be using portions of the drive that you were not accessing previously or a well worn section of the drive. Even if the hard drive was replaced at some point, most likely even a replacement drive is worn out or failing. I would be very surprised if the original drive is healthy.
However, if the error occurs just before the copying of system files proceeds, then my guess is the computer's date is not compatible for this installer which is why I suggested changing the date back to 2022 or if 2022 does not work, then try 2021 or 2020. Apple's installer error messages don't always make any sort of sense so it is not easy to figure out the problem.
It is possible the USB stick is bad. Try using another USB stick since the quality of USB sticks are extremely poor.
If the error occurs later in the installation process, then a bad drive (or other hardware issue is more likely especially after the copy stage finishes and the installer reboots the Mac to finish installation). For some reason when I read the earlier reply I thought the error occurred later, but reading it again now it appears the error appears almost immediately after selecting the "Install macOS" option and the copying stage never really begins.