Sub topic 10
When an update fails: diagnosis and fixes
This chapter assumes you can open System Settings and Terminal, you have an administrator account, and you have read the chapters on preparation, the install process, and the softwareupdate command. It gives you a method for working out why an update failed and a set of fixes ordered from least to most disruptive.
Start by classifying the failure
An update can fail at four points. Each one has different causes, so identify the stage before you try anything.
| Stage | What you see | Typical causes |
|---|---|---|
| Finding the update | Software Update says "Checking for updates" for a long time, or shows an error about contacting the server | Network, proxy, VPN, DNS, date and time wrong |
| Downloading | Progress stalls, restarts, or ends with "Download failed" | Unstable connection, content filter, low free space |
| Preparing and installing | "Installation failed," "An error occurred while preparing the update," or a restart that returns to the old version | Low space, damaged installer, third-party kernel or system extensions, volume problems |
| After restart | Boot loop, a progress bar that never finishes, or a Mac that starts but behaves badly | Interrupted install, incompatible software, disk errors |
Check the basics first
Most failures come from a short list of conditions. Check these in order, since each takes a minute or less.
- Power. A laptop must be plugged in. An update that starts on battery can stop if the charge runs low.
- Free space. Run
df -h /and compare the available space with what the update needs. A major upgrade often needs more room than the download size suggests, because the installer unpacks and stages files before replacing the system. - Date and time. Certificate checks fail when the clock is wrong. In System Settings, open General, then Date & Time, and turn on automatic setting.
- Network. Try a different network, such as a phone hotspot. If it works there, the problem is your usual network, a proxy, or a content filter.
- VPN and security software. Disconnect any VPN and temporarily pause network filters that inspect traffic. Re-enable them after the update.
df -h /Read the Avail column. If it is below roughly 25 GB before a major upgrade, free space before you retry. Point updates usually need less, but a nearly full disk causes failures there too.
Look at what the system says
The graphical interface shows only a short error message. Two sources give more detail.
The install log
The installer writes entries to /var/log/install.log. This command shows the latest Software Update lines.
grep -i softwareupdate /var/log/install.log | tail -n 20Look for words such as error, failed, timed out, or not enough space. Read the lines just before the first error, since later lines are often consequences. If the output is empty, widen the search.
grep -iE "error|fail" /var/log/install.log | tail -n 40The update history
softwareupdate --history shows what installed successfully and when. If an update you expected is missing, it never completed, even if the interface appeared to finish.
softwareupdate --historyCompare the result with the output of sw_vers. If the product version has not changed, the install did not take effect.
sw_versFixes for failures before the install starts
These fixes address stalled checks and failed downloads.
- Restart and retry. A restart clears a stuck update daemon (a background process). Open System Settings, then General, then Software Update.
- Ask from Terminal. The command line often gives a clearer message than the interface.
softwareupdate --listIf this lists the update, try the install from Terminal. --recommended installs only updates Apple marks as recommended.
sudo softwareupdate --install --recommended- Remove a partial download. A damaged partial download can make every retry fail. In System Settings, Software Update may offer to remove it, or you can delete the cached installer. For a downloaded "Install macOS" application, drag it from the Applications folder to the Trash, then download it again.
- Change the network. Switch from Wi-Fi to Ethernet or to a hotspot. Content filters and some captive portals interrupt large downloads.
Fixes for failures during install
When the download completes but installation fails or reverts, the cause is usually something on the existing system.
Try Safe Mode
Safe Mode starts macOS with a minimal set of extensions and runs basic disk checks. If an update installs in Safe Mode, third-party software was likely interfering.
- Apple silicon: Shut down. Press and hold the power button until startup options appear. Select your startup disk, then hold Shift and click "Continue in Safe Mode."
- Intel: Restart and hold Shift until the login window appears.
Run the update from Safe Mode, then restart normally.
Remove interfering software
Antivirus tools, network filters, disk utilities, and older drivers load kernel or system extensions, which are components that run with high privilege. Incompatible ones can stop an install. Check System Settings under General, then Login Items & Extensions, and uninstall or update tools you no longer need. Install the update, then reinstall what you removed in a current version.
Check the startup volume
Disk problems can stop an install. Open Disk Utility, select the startup volume, and run First Aid. It repairs file system structure errors on that volume. If First Aid reports errors it cannot repair, back up immediately, since the disk may be failing.
Check for local snapshots
Time Machine keeps local snapshots on the startup volume. They are normally released when space is needed, but a failed update can leave low free space until they are removed. You can list them.
tmutil listlocalsnapshots /Do not delete snapshots as a first step. If you decide to, make sure a current backup exists on an external drive first. Confirm it with this command.
tmutil latestbackupFixes when the Mac will not start
If the Mac loops, shows a progress bar that never finishes, or stops at a prohibitory sign, use macOS Recovery.
- Wait first. A major upgrade can show "About a minute remaining" for much longer than expected. Leave a plugged-in Mac for at least an hour before you intervene. Interrupting a real install is worse than waiting.
- Enter Recovery. On Apple silicon, shut down, then press and hold the power button until startup options appear, and choose Options. On Intel, restart and hold Command-R.
- Reinstall macOS. Choose "Reinstall macOS" in the Recovery window. This reinstalls the system and keeps your files and user settings in the normal case. It needs a network connection.
- Restore from backup. If reinstalling fails, use Disk Utility to erase the startup volume only as a last resort, then restore from Time Machine. This is the step that makes the earlier backup essential.
Apple silicon specifics
On Apple silicon Macs, some updates need credentials from a user who is allowed to authorize them. If an install fails with an authorization error, confirm that you are signing in with an administrator account that has a Secure Token (a flag that allows a user to unlock the encrypted disk). Check this with the following command, replacing username with the account's short name.
sysadminctl -secureTokenStatus usernameIf the status is disabled, sign in with another administrator who has it enabled and retry. Macs with FileVault on and no user holding a token are a case for Apple support or your IT team.
Managed Macs
If the Mac belongs to an organization, an update can fail or never appear because a management profile defers it or blocks it. See the chapter on managed Macs. Before troubleshooting further, check System Settings under General, then Device Management, for profiles. Contact your administrator rather than trying to bypass restrictions.
A repeatable procedure
Use the same sequence each time so you do not skip a cheap fix.
- Note the stage and exact error text.
- Plug in power and check free space with
df -h /. - Check date, time, and network. Disconnect any VPN.
- Run
softwareupdate --list, then retry from Settings or Terminal. - Read
/var/log/install.logaround the first error. - Try Safe Mode and remove interfering extensions.
- Run First Aid on the startup volume.
- If the Mac will not start, use Recovery, and restore from backup only if reinstalling fails.
Exercise
A major upgrade downloads fully, restarts the Mac, and then returns you to the old version with no clear message. sw_vers shows the old version. Name the first two places you look for the cause and what you look for in each.
Show answer
First, run softwareupdate --history to confirm the update never recorded as installed. Second, read /var/log/install.log (for example with grep -iE "error|fail" /var/log/install.log | tail -n 40) and look for the first error before the restart, such as insufficient space or an extension failure. Also check df -h / for free space, and then try the install in Safe Mode if third-party software is suspected.
Exercise
Why should you wait before interrupting an update whose progress bar seems stuck, and when is it reasonable to stop waiting?
Show answer
A major upgrade can spend a long time on steps that show no progress, and interrupting the install can leave the system partly written. On a Mac that is plugged in, wait at least an hour. If there is still no change, restart into macOS Recovery and reinstall macOS, and restore from backup only if reinstalling fails.