Every guide lists its sources, tips, and warnings. Read our editorial policy.

How to Fix "An Error Occurred While Preparing the Installation" in macOS Recovery

The installer stops before it writes a byte. In most cases the clock is wrong, so the signed ticket fails validation against Apple. Fix the date, confirm the disk is GPT with APFS, then start again.

The short answer

The installer stops before it writes a byte. In most cases the clock is wrong, so the signed ticket fails validation against Apple. Fix the date, confirm the disk is GPT with APFS, then start again.

Download the full guide (PDF) Print checklist
Share
Set 52runoob as a preferred source on Google

You boot into Recovery, choose Reinstall macOS, pick the disk, and it stops with `An error occurred while preparing the installation. Try running this application again.` Nothing has been written yet, which is the good news. This fires in the first stage, while Recovery validates the installer against Apple, and a dead CMOS battery on an Intel Mac is enough to trigger it.

Quick steps

  1. Note exactly where the installer stops
  2. Open Terminal from the Utilities menu
  3. Check the clock with date -u
  4. Set the time from Apple's time server
  5. Verify the target disk is GPT with APFS
  6. Retry, or build a USB installer

Things you'll need

  • A network connection the Recovery installer can reach
  • The macOS version that Mac shipped with or still supports
  • A 16 GB or larger USB drive for a bootable installer
  • A second Mac if you have to build that installer

Step-by-step

Method 1 of 3

Method 1 of 3: Confirm Where It Stops

PDF
Step 1: Note the Stage, Not Just the Text Download image

Step 1: Note the Stage, Not Just the Text

The error appears after you select a disk and before the progress bar moves. If it appears later, during file copying, this is a different fault. Write down your last screen so the retry is comparable.

Step 2: Read the Full Sentence on Screen Download image

Step 2: Read the Full Sentence on Screen

The dialog says `Try running this application again.` That wording means the installer aborted a validation step, not that it hit a read error. A disk fault says something else entirely, usually with the disk name in it.

Step 3: Restart Recovery Cleanly Download image

Step 3: Restart Recovery Cleanly

Hold the power button on Apple Silicon, or press Command-R on Intel, and go straight back in. A stale recovery session can hold an expired ticket. If the dialog returns at the same second, it is reproducible and worth diagnosing.

Step 4: Open Terminal in Recovery Download image

Step 4: Open Terminal in Recovery

Use Utilities → Terminal from the menu bar. Everything below runs there, with no need for the installer window. Keep it open and work the checks in order instead of jumping to the erase step out of frustration.

Source: Apple Support — Create a bootable installer for macOS · See also Apple Support — Terminal User Guide for Mac · Read next: Back Up Your Computer

Step 5: Check the Clock in UTC Download image

Step 5: Check the Clock in UTC

Run `date -u` and compare the year against reality. A machine showing 2016, or a date before the build was signed, fails validation every single time. This is the most common cause by a wide margin.

Step 6: Rule Out the Network Before the Disk Download image

Step 6: Rule Out the Network Before the Disk

Run `ping -c 3 apple.com` in that same Terminal. If it fails, the installer cannot reach Apple and will fail whatever the clock says. A captive portal or a proxy in front of the Mac produces exactly this.

Method 2 of 3

Method 2 of 3: Correct the Clock and the Target

PDF
Step 7: Set the Time From Apple's Server Download image

Step 7: Set the Time From Apple's Server

Run `sntp -sS time.apple.com`. On older recovery images use `ntpdate -u time.apple.com` instead. When it returns, run `date -u` again and confirm the year changed. If it cannot reach the server, fix connectivity first.

Step 8: Retry From the Menu, Not From Memory Download image

Step 8: Retry From the Menu, Not From Memory

Quit the installer and start Reinstall macOS again from the Recovery menu. Validation runs from the beginning with the new clock. If it now reaches the license screen, you are past the fault.

Step 9: Check the Disk Has a GPT and APFS Download image

Step 9: Check the Disk Has a GPT and APFS

Run `diskutil list` and find the target. The scheme must read GPT and the volume must be APFS for macOS 10.13 and later. An MBR disk or a Mac OS Extended volume fails preparation before any copy starts.

Step 10: Erase Only When You Intend To Download image

Step 10: Erase Only When You Intend To

If the volume must be rebuilt, run `diskutil eraseDisk APFS "Macintosh HD" /dev/disk2` with the correct disk number. That command destroys everything on that disk. Confirm the number twice, because disk2 is not the same disk on every Mac.

Source: Apple Support — Get file, folder, and disk information on Mac · See also Apple Support — Mac startup key combinations · Read next: Back Up Your Computer

Step 11: Reset NVRAM on Intel Only Download image

Step 11: Reset NVRAM on Intel Only

On an Intel Mac, restart and hold Option-Command-P-R until the startup sound plays twice, about 20 seconds. On Apple Silicon there is no NVRAM reset and no equivalent keystroke. Do not sit waiting for a chime that will not come.

Step 12: Try a Different Network Path Download image

Step 12: Try a Different Network Path

Use Ethernet, or a phone hotspot with no proxy. Apple's validation endpoints are ordinary HTTPS hosts, and a filter will block them without telling you. If the install now advances, the network was the cause all along.

Method 3 of 3

Method 3 of 3: Rebuild From a USB Installer

PDF
Step 13: Accept That Some Builds Are Gone Download image

Step 13: Accept That Some Builds Are Gone

Apple stops signing older installers. A 2017 iMac cannot install the build it shipped with from Recovery today. If the server refuses the ticket whatever you do, the version is the problem, not your Mac.

Step 14: Build the Installer on Another Mac Download image

Step 14: Build the Installer on Another Mac

Download the full installer, then run `sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume`. Change the app name to the version you downloaded. The volume is erased as part of the process.

Step 15: Boot From the USB Drive Download image

Step 15: Boot From the USB Drive

On Intel, hold Option at startup and pick the drive. On Apple Silicon, hold the power button until startup options appear, then choose it. If the drive is not listed, the media was not built correctly.

Step 16: Use Erase All Content and Settings Download image

Step 16: Use Erase All Content and Settings

On Apple Silicon, System Settings → General → Transfer or Reset → Erase All Content and Settings is the supported path. It removes your data and the encryption keys. Intel recovery instructions do not apply to these machines.

Source: Apple Support — Mac · See also Apple Support — Repair a storage device in Disk Utility on Mac · Read next: Back Up Your Computer

Step 17: Verify Before You Commit Download image

Step 17: Verify Before You Commit

Check that the target disk is the one you mean and that a backup exists somewhere else. The installer shows a disk name, not a serial number. A wrong choice at this point is not undoable.

Step 18: Stop and Get the Hardware Checked Download image

Step 18: Stop and Get the Hardware Checked

If a supported installer fails from a known-good USB drive, stop buying cables. A failing SSD or a flaky memory module produces validation errors too. Take it to service with the exact dialog text you saw.

Tips

  • An Intel Mac with a dead coin battery boots to 2010 and fails every signed installer. Replace that battery.
  • Apple pulls old installers from the catalog. The newest version your Mac supports is the one that validates.
  • Recovery over Wi-Fi can time out without saying so. Try Ethernet before blaming the installer.
  • Internet Recovery on Intel is Option-Command-R. Command-R uses the local recovery partition.

Warnings

  • Erasing the disk is permanent. Do not do it just to get past a date error.
  • Erase All Content and Settings on Apple Silicon destroys the encryption keys. Nothing is recoverable after.
  • A proxy or content filter between you and Apple's servers fails this validation every time.
  • Do not follow an Intel recovery tutorial on an Apple Silicon Mac. Half those steps do not exist.

Frequently asked questions

Does this error mean my disk is dead?

No. It fires before the installer touches the disk. The failure is in validation, not in storage.

Why does the system clock matter so much?

Installers are signed. If the clock sits outside the certificate window, validation fails and the installer aborts on the spot.

Can I install an older macOS than the one I have?

Usually not. Apple stops signing older builds, and the installer will not validate no matter what you do.

Is a USB installer more reliable?

Yes. It removes the network and the recovery image from the equation, which are the two usual suspects.

References

  1. Apple Support — Mac. https://support.apple.com/en-us/mac
  2. Apple Support — Mac User Guide. https://support.apple.com/guide/mac-help/welcome/mac
  3. Apple Support — Disk Utility User Guide. https://support.apple.com/guide/disk-utility/welcome/mac
  4. Apple Support — Terminal User Guide. https://support.apple.com/guide/terminal/welcome/mac

Every guide is reviewed against its sources. See our editorial policy.

Get one fix like this every week

One short email with the most useful new guide and a printable checklist. No spam, unsubscribe anytime.

Reader comments

0 so far

Finished this guide? Tell other readers what worked, what didn't, and what you would change.

Stuck on a step? Tell us your device model and what happened — an editor reads every comment and usually replies within 48 hours.

Be kind and constructive. Comments are published instantly.