Quick Answer
Set the correct date and time in Terminal, or erase your disk as Mac OS Extended (Journaled) not APFS if you're doing a fresh install.
I've seen this error at least a dozen times at small businesses. That vague message almost always hides one of two culprits: a wrong system clock (breaks HTTPS to Apple's servers) or a disk formatted wrong. Last month, a client's 2017 iMac stuck on this for two days until I checked the date — it was set to 2019. Took two minutes to fix.
Why This Happens
The macOS installer talks to Apple's servers to verify the installation. If your Mac's clock is way off, that secure connection fails and the installer bails with the generic message. On fresh installs, the installer also checks the destination disk's format. If it's not exactly what that macOS version expects (older versions want Mac OS Extended, newer ones can handle APFS), it'll abort mid-way.
Fix Steps
- Check date and time. Boot into Recovery Mode (hold Command+R on Intel, or press and hold power button on Apple Silicon). Open Terminal from the Utilities menu. Run
date. If it's wrong, set it:date -s "MMDDHHMMYYYY"(e.g.,date -s "021520231430"for Feb 15, 2023, 2:30 PM). Then quit Terminal and try the install again. - Erase the disk properly. In Recovery Mode, open Disk Utility. Select your internal drive (not the volume). Click Erase. For macOS Catalina or earlier, choose Mac OS Extended (Journaled) and GUID Partition Map. For Big Sur and later, APFS is fine. Name it "Macintosh HD". Don't skip this — I've seen people just delete a volume and wonder why the installer fails.
- Reinstall macOS via Cmd+R. After fixing time/disk, go back to the main Recovery menu and pick "Reinstall macOS". Follow through. If it still fails, move to the next step.
- Reset NVRAM/PRAM. Shut down, then turn on and immediately press and hold Command+Option+P+R for 20 seconds. On Apple Silicon, this resets automatically on reboot. This clears any weird hardware settings that could interfere.
- Use a USB installer. If Recovery mode keeps failing, create a bootable USB on another Mac using the
createinstallmediacommand. That gives you a fresh copy of the installer and bypasses any corrupted Recovery partition.
Alternative Fixes
If the above don't work, try the following:
- Boot into Safe Mode. Hold Shift at startup, then try the installer again. Safe Mode forces a directory check and loads only essential extensions — could clear a software conflict.
- Run First Aid. In Disk Utility, select your boot drive and click First Aid. This repairs filesystem errors that might cause the installer to choke mid-write.
- Check your internet. A flaky Wi-Fi connection can cause the download to corrupt. Plug in Ethernet if you can, or move closer to the router.
Prevention Tip
Before any major macOS upgrade, do two things: back up with Time Machine (or clone with Carbon Copy Cloner), and verify your disk format matches what the new OS expects. Also, make sure your Mac is compatible with the version you're trying to install — I've seen people force a newer macOS on an old iMac, and that's a recipe for this exact error. Keep your clock auto-set via network time and you'll avoid the most common trigger.