Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix "An Error Occurred While Preparing the Installation" on Mac

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

When you see the message "An error occurred while preparing the installation" on a Mac, it usually means the macOS installer couldn't verify or unpack the installation files. This often happens because of a corrupted download, insufficient storage, or a problem with the installer's cache. The quickest fix is to free up space, restart your Mac, and try again. If that doesn't work, you may need to re-download the installer or reset the installation cache.

What You'll Need

  • A stable internet connection (for re-downloading the installer if needed)
  • At least 20–30 GB of free disk space (more if you're upgrading to a newer macOS)
  • Your Mac's admin password (for terminal commands and system settings)
  • Time (the process can take 30 minutes to an hour)

Step-by-Step

  1. Check available storage. Click the Apple menu and select About This Mac > Storage. If you have less than 20 GB free, free up space by deleting large files, emptying the Trash, or moving files to an external drive. The installer needs room to unpack files.
  2. Restart your Mac. A simple restart clears temporary glitches and resets the installer's state. Click the Apple menu and choose Restart.
  3. Retry the installation. After restarting, open the App Store (or System Settings > Software Update on newer macOS) and try the update or upgrade again. If the error appears again, continue to the next steps.
  4. Delete the partially downloaded installer. Open Finder > Applications and look for the installer file (e.g., "Install macOS Sonoma.app" or similar). Drag it to the Trash, then empty the Trash. This removes any corrupted files.
  5. Re-download the installer. Go to the App Store and search for the macOS version you want (e.g., "macOS Sonoma"). Click Get or the download icon. Wait for the download to finish completely. If the download fails, try again after a few minutes.
  6. Reset the installer cache (using Terminal). Open Terminal (in Applications > Utilities), and run the following command: sudo softwareupdate --clear-catalog. Enter your admin password when prompted. This clears the software update cache. Then try the installation again.
  7. Check the date and time. Go to System Settings > General > Date & Time. Ensure "Set time and date automatically" is enabled. Incorrect time can break the installer's security checks.
  8. Use the App Store's hidden download link (if needed). If the App Store doesn't offer the installer (for older macOS versions), you can download it directly from Apple's support page. Search for "How to download macOS" on Apple's website. This gives you a direct .dmg file that you can open and run.
  9. Run the installer from a USB drive (as a last resort). If the error persists, create a bootable USB installer. You'll need a USB drive with at least 16 GB capacity. Use the createinstallmedia command in Terminal (Apple provides official instructions). Then boot from the USB (hold Option at startup) and install macOS from there.

Common Mistakes

  • Not freeing enough space. The installer needs more than just the download size; it needs space to unpack and verify files. Always have at least 20–30 GB free.
  • Interrupting the download. If your internet drops mid-download, the installer may be corrupted. Always let the download finish completely.
  • Deleting the installer while it's running. Never delete the installer file while the installation is in progress. That will cause errors.
  • Skipping the restart. A restart clears temporary system issues. Don't skip it.

Tips

  • Use a wired connection. If possible, connect your Mac to the internet via Ethernet to avoid Wi-Fi drops during the download.
  • Close other apps. During installation, close all other applications to free up memory and avoid conflicts.
  • Check your Mac's compatibility. Before attempting a major macOS upgrade, verify that your Mac model supports that version. Apple's website lists compatible models.
  • Keep a backup. Before any major installation, back up your Mac with Time Machine or another backup method. This ensures you don't lose data if something goes wrong.

Troubleshooting

If the error persists after trying the steps above, here's what to do next:

  • Check Apple's system status. Visit Apple's System Status page (search "Apple System Status") to see if there are any ongoing issues with macOS downloads or updates. If a service is down, wait and try later.
  • Reset NVRAM (on Intel Macs). Shut down your Mac, then turn it on and immediately press and hold Option + Command + P + R for about 20 seconds. This resets some hardware settings. (On Apple Silicon Macs, this isn't needed.)
  • Boot into Safe Mode. Restart your Mac and hold the Shift key. Safe Mode runs a disk check and loads only essential extensions. Try the installation from Safe Mode, then restart normally.
  • Use Disk Utility to repair the disk. Boot into Recovery (hold Command + R at startup), open Disk Utility, and run First Aid on your startup disk. This fixes disk errors that might block installation.
  • If all else fails, contact Apple Support. You can make an appointment at an Apple Store or use Apple's online support chat. They can run diagnostics remotely.

Frequently Asked Questions

Why does this error happen?

It usually occurs because the installer files are corrupted or incomplete, or because your Mac doesn't have enough free space to unpack the installation files. Sometimes it's due to a temporary glitch in the software update process.

Will I lose my data if I retry the installation?

No, retrying the installation does not erase your data. The installer only upgrades or reinstalls the system files. However, it's always wise to back up before any major installation.

Can I install macOS from an external drive?

Yes, you can create a bootable USB installer and install macOS from it. This is a common workaround if the built-in installer keeps failing. Apple provides official instructions for creating a bootable installer.

How much free space do I really need?

Apple recommends at least 20–30 GB of free space for a macOS upgrade, but the exact amount varies by version. To be safe, aim for 30 GB or more.

What if the App Store doesn't show the installer?

For older macOS versions, the App Store might not list them. You can download the installer directly from Apple's support website. Search for "How to download macOS" on Apple's site to find the correct link.

Is it safe to use Terminal commands?

Yes, the commands mentioned in this guide are safe and are recommended by Apple. However, be careful to type them exactly as shown. If you're unsure, copy and paste them.