Seeing the message “An error occurred while preparing the installation” during a macOS Sierra install can be alarming, especially if the Mac appears to be stuck or unable to boot normally. This error usually appears when the installer cannot verify, prepare, or continue the installation process. Although it sounds vague, it most often points to problems with the system date and time, the installer file, the startup disk, or the network connection used during installation.
TLDR: On macOS Sierra, “An error occurred while preparing the installation” generally means the installer cannot safely proceed. The most common cause is an incorrect system date, especially when installing from Recovery Mode or an old USB installer. Other possible causes include a damaged installer, disk errors, insufficient space, or a failed internet recovery connection. In many cases, correcting the date in Terminal, checking the disk, and reinstalling with a fresh installer resolves the issue.
What the Error Means
The message “An error occurred while preparing the installation” is a general installer failure warning. It does not always identify the exact problem, but it indicates that macOS Sierra cannot complete one of the required checks before installation begins or continues.
Before macOS installs, the system verifies several things: the installer certificate, the target disk, available storage, system compatibility, and sometimes Apple’s servers. If one of these checks fails, the installation may stop before any major changes are made.
This error is especially common when installing macOS Sierra on older Macs, when using an old downloaded installer, or when reinstalling macOS from Recovery Mode after the Mac has been unused for a long time.
Why This Happens on macOS Sierra
macOS Sierra was released in 2016, and many installation problems today are related to age. Older installers may contain expired certificates, and older Macs may have batteries that no longer preserve the correct system clock. When the Mac’s date is wrong, the installer can fail validation even if everything else appears normal.
The error may also occur if the installer application is incomplete, the startup disk has corruption, or the Mac cannot communicate properly with Apple’s servers. Because the message is broad, the best approach is to work through the most likely causes in a careful order.
Common Causes of the Error
The following are the most frequent reasons this message appears during a macOS Sierra installation:
- Incorrect date and time: The Mac’s system clock may be set to a date far in the past or future.
- Expired installer certificate: An old Sierra installer may no longer pass certificate verification.
- Damaged installer: The installer file may be incomplete or corrupted.
- Disk problems: The internal drive may have file system errors or hardware issues.
- Insufficient storage: The selected volume may not have enough free space.
- Network failure: Internet Recovery or online verification may fail due to poor connectivity.
- Unsupported Mac model: The Mac may not officially support macOS Sierra.
The Most Common Fix: Correct the Date and Time
The first thing to check is the Mac’s date and time. An incorrect date is one of the most common causes of this error, particularly when reinstalling from Recovery Mode.
To correct the date from macOS Recovery:
- Restart the Mac.
- Hold Command + R during startup to enter macOS Recovery.
- When the Recovery screen appears, open Utilities from the menu bar.
- Select Terminal.
- Type
dateand press Return to view the current system date.
If the displayed date is obviously wrong, set it manually. The date command uses the following format:
date mmddHHMMyy
That means month, day, hour, minute, year. For example, to set the date to March 15, 2024 at 10:30 AM, you would type:
date 0315103024
After entering the command, press Return, close Terminal, and try the installation again.
Important: If you are using an older Sierra installer with an expired certificate, setting the date to a time close to when the installer was valid may sometimes allow it to run. However, the better long-term solution is to use a fresh installer from a reliable Apple source whenever possible.
Check the Startup Disk with Disk Utility
If the date is correct and the error continues, the next step is to check the disk. macOS needs a healthy file system to prepare the installation. If the drive has directory errors, damaged permissions, or failing sectors, the installation may not continue.
To check the disk:
- Start the Mac in macOS Recovery by holding Command + R at startup.
- Choose Disk Utility.
- Select the internal drive or the target installation volume.
- Click First Aid.
- Allow Disk Utility to scan and repair errors.
If Disk Utility reports that the disk was repaired, try the installation again. If it says the disk cannot be repaired, back up any important data if possible and consider replacing the drive or erasing it before reinstalling macOS.
Image not found in postmetaMake Sure There Is Enough Free Space
macOS Sierra requires enough free space not only for the operating system itself but also for temporary installation files. If the disk is nearly full, the installer may fail during preparation.
As a practical rule, you should have at least 15 to 20 GB of free space before attempting the installation. More is better, especially if you are upgrading from an older macOS version rather than performing a clean install.
If you can still boot into macOS, remove unnecessary files, empty the Trash, and move large files to an external drive. If you cannot boot normally, you may need to access the disk from Target Disk Mode, an external bootable system, or Recovery tools.
Use a Fresh macOS Sierra Installer
If you are installing Sierra from a USB drive or an old copy of the installer, the installer itself may be the problem. Old macOS installers are known to fail when their certificates expire or when the download was incomplete.
A damaged installer may launch successfully but fail when it begins preparing files. This can make the issue look like a disk or hardware problem when the actual cause is the installation package.
To reduce the risk:
- Use a newly downloaded installer whenever possible.
- Avoid installers from unofficial websites or file sharing sources.
- Create a new bootable USB installer if the current one repeatedly fails.
- Use a reliable USB drive with enough capacity and no known errors.
If your Mac supports a newer version of macOS, consider installing a later compatible version instead of Sierra. Newer installers may handle certificates, recovery, and server communication more reliably.
Check Your Internet Connection
If you are using Internet Recovery, the Mac depends on Apple’s servers to download installation files. A weak Wi Fi signal, captive portal, firewall, or interrupted connection can cause the installer to stop with a preparation error.
For best results, connect to a stable network. If possible, use Ethernet instead of Wi Fi. Avoid public hotel, school, or office networks that require web based sign in, because Recovery Mode may not handle those login pages properly.
You can also restart the router, move the Mac closer to the access point, or try another network. If the error changes or the download progresses further on a different connection, the original network was likely part of the problem.
Confirm That the Mac Supports macOS Sierra
Not every Mac can run macOS Sierra. If you are attempting to install it on unsupported hardware, the installation may fail or refuse to continue.
In general, macOS Sierra supports many Macs from late 2009 and later, depending on the model. Before spending time troubleshooting, confirm that the Mac is compatible with Sierra. You can check the Mac model from About This Mac if macOS still boots, or by identifying the model number printed on the device and comparing it with Apple’s compatibility information.
If the Mac is unsupported, the proper fix is not to force the installer. Instead, install the newest officially supported macOS version for that machine.
Consider a Clean Installation
If you have already checked the date, disk, installer, and network, but the error still appears, a clean installation may be necessary. A clean install erases the target drive and installs macOS on a blank volume. This can resolve problems caused by damaged system files, failed previous upgrades, or severe file system issues.
Warning: Erasing the disk will delete the data on it. Before doing this, make sure you have a complete backup. If important files are not backed up, consider professional data recovery or connecting the Mac to another computer before erasing anything.
To perform a clean install:
- Boot into macOS Recovery.
- Open Disk Utility.
- Select the internal drive or target volume.
- Erase it using a suitable format, commonly Mac OS Extended Journaled for Sierra.
- Close Disk Utility.
- Select Reinstall macOS and follow the prompts.
When Hardware May Be the Real Problem
Although the error is usually software related, hardware can also be involved. Older Macs that run Sierra may have aging hard drives, failing SSDs, unstable RAM, or depleted PRAM batteries. These problems can interrupt installation or prevent the Mac from keeping accurate time.
Signs of possible hardware failure include repeated installation failures at different stages, unusual clicking noises from a hard drive, Disk Utility reporting unrepairable errors, frequent freezes, or the Mac failing to detect the internal drive.
If you suspect hardware failure, run Apple Diagnostics if available. Restart the Mac and hold the D key during startup. Follow the on screen instructions and note any reference codes. For older machines, professional inspection may be the safest option.
What Not to Do
When facing an installation error, it is tempting to repeat the same steps many times or download installers from random sources. That can create more risk, especially if the Mac contains important data.
- Do not erase the disk unless you have a backup or are certain the data is no longer needed.
- Do not use unofficial installers from unknown websites.
- Do not ignore disk warnings reported by Disk Utility.
- Do not assume the Mac is permanently broken before checking the date and installer.
Final Thoughts
The message “An error occurred while preparing the installation” on macOS Sierra means the installer cannot complete the checks or setup steps required to continue. In many cases, the cause is simple: the Mac’s date and time are wrong, or the installer is too old to validate properly.
A careful troubleshooting process is the best response. Start by checking the date in Terminal, then verify the disk with Disk Utility, confirm available storage, use a fresh installer, and test the network connection if Recovery is involved. If those steps fail, a clean installation or hardware diagnosis may be necessary.
Handled methodically, this error is often recoverable. The key is to protect your data first, avoid untrusted installation sources, and treat repeated failures as a sign that the disk, installer, or hardware needs closer attention.
