How to Fix macOS ‘pkinstallerror 112’ Installation Error

Installing software updates, operating system upgrades, or package installers (.pkg) on macOS can abruptly fail with a cryptic system dialogue: An error occurred while installing the updates (pkinstallerror error 112) or The package could not be installed because of an internal error. This error code originates from Apple’s low-level PackageKit installer framework. It signifies that the installer subsystem failed to extract, verify, or write package payloads to disk due to insufficient APFS snapshot working space, SIP entitlement blocks, or corrupted staging folders.

Fixing pkinstallerror 112 requires freeing critical APFS purgeable disk space, clearing corrupted software update download caches, and running package installations via Terminal or Safe Mode.

What Causes pkinstallerror 112 in macOS?

The PackageKit engine manages secure software distribution across macOS. Error 112 occurs when:

  • Insufficient Contiguous APFS Disk Space: Although macOS reports free disk space, a significant portion is trapped in unreleased ‘Purgeable’ APFS local snapshots that the installer cannot write over.
  • Corrupted SoftwareUpdate Cache Directory: Stale partial downloads or malformed package manifests inside /Library/Updates or /var/folders prevent package assembly.
  • Package Quarantine and Gatekeeper Flags: Downloaded pkg files carry quarantine attributes that trigger signature verification timeouts.
  • Failing Pre-Install / Post-Install Shell Scripts: The installer package contains embedded shell scripts that fail when querying read-only system paths.
  • Permissions Corruption in /tmp or /var: Invalid Access Control Lists (ACLs) or POSIX permissions on system temporary directories.

Step 1: Free True Disk Space and Delete APFS Local Snapshots

macOS updates require up to double their file size in unfragmented free disk space to decompress:

  1. Open Terminal via Spotlight (press Command + Space, type Terminal, and press Return).
  2. List local Time Machine APFS snapshots hogging internal drive storage:
    tmutil listlocalsnapshots /
  3. Delete orphaned local snapshots to reclaim physical disk blocks immediately:
    for d in $(tmutil listlocalsnapshots / | awk -F. '{print $4}'); do sudo tmutil deletelocalsnapshots $d; done
  4. Enter your administrator password when prompted.
  5. Check free space: ensure you have at least 25 GB to 35 GB of truly free space available on your primary startup drive before attempting major updates.

Step 2: Clear Corrupted Software Update Cache Directories

Purging cached package staging containers forces PackageKit to download pristine installer binaries:

  1. Open Terminal.
  2. Remove partial downloads from the system updates folder:
    sudo rm -rf /Library/Updates/*
  3. Clear user temporary cache directories:
    rm -rf ~/Library/Caches/com.apple.SoftwareUpdate
  4. Kill the software update daemon to flush memory state:
    sudo killall -9 com.apple.MobileSoftwareUpdate.CleanupPreparePathService
  5. Open System Settings > General > Software Update and check for updates again.

Step 3: Strip Quarantine Attributes from Problematic .pkg Installers

If error 112 occurs when installing a standalone downloaded third-party package:

  1. Locate the downloaded .pkg file in your Downloads folder.
  2. Open Terminal and execute the xattr command to strip the quarantine security flag:
    xattr -d com.apple.quarantine ~/Downloads/InstallerName.pkg
    (Replace InstallerName.pkg with the authentic file name.)
  3. Double-click the pkg file to run the installation cleanly.

Step 4: Install via Command Line Using the installer Binary

Executing installations directly via root command line bypasses graphical PackageKit GUI thread freezes:

  1. Open Terminal.
  2. Run the installer utility targeting your local startup disk:
    sudo installer -pkg ~/Downloads/InstallerName.pkg -target /
  3. The terminal will print detailed verbose progress indicators: installer: Package name is… installer: Installing at base path /… installer: The install was successful.

Step 5: Run Installation in Safe Mode

Safe Mode prevents third-party kernel extensions and background security daemons from locking disk files:

  1. On Apple Silicon Macs (M1/M2/M3/M4): Shut down, hold the Power button until Startup Options render, select Macintosh HD, hold Shift, and click Continue in Safe Mode.
  2. On Intel Macs: Restart and immediately hold Shift until the login screen renders.
  3. In Safe Mode, run the software update or launch the pkg installer to complete execution without daemon collisions.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.