For reasons I needed to test a set of osquery rules lately, so I downloaded the official package from https://osquery.io and set about running the installer. For some reason the installation got stuck at a message ‘Waiting for other installation to complete’. The installer hangs for a long time, so I explored my options to unblock the installer.

Open the โ€˜Force Quitโ€™ window

One of the first options you should try is to force quit the installation and try again. This should be no issue because the installation hasnโ€™t actually started, so to interrupt it will not cause any harm whatsoever.

A hung installer on MacOS

Force quit an app on MacOS is relatively simple an requires you to press a key combination on your keyboard: Option+Command+Escape.

The force quit dialogue on MacOS

Select the installer application and choose to ‘Force Quit’ it. You will be prompted with the message: Do you want to force “Installer” to quit? You will lose any unsaved changes. And here you must click ‘Force Quit’.

Manually remove the installation lock

Remove the installation lock via Terminal1 on your Mac has high chances of succes as well. There is a big likelihood that the previous installation has failed, but the lock was not removed. The reason could be that the previous installation failed because your Mac ran out of battery and had to shut down in the middle of the installation process. But other reasons exist as well, including an application which starts during the bootup and tries to install an app on your device.

Here are the steps to follow to manually remove the installer lock:

  1. Open Terminal
  2. Paste the following command: sudo rm /private/var/db/mds/system/mds.install.lock
  3. Reboot your computer, or enter this command instead: sudo killall -1 installd

Boot your Mac in Safe Mode

Booting your Mac in Safe Mode is your final option2. Triggering the Safe Mode option depends on your Mac: the Intel or Apple Silicon chips will have another process to follow.

Apple ‘chip’ silicon

  1. Shut down your Mac.
  2. Turn on your Mac and continue to press and hold the power button until you see the startup options window.
  3. Select your startup disk, then press and hold the Shift key while clicking “Continue in Safe Mode.”
  4. Log in to your Mac. You might be asked to log in again.

Intel processor

  1. Turn on or restart your Mac, then immediately press and hold the Shift key as your Mac starts up.
  2. Release the key when you see the login window, then log in to your Mac.
  3. You might be asked to log in again. On either the first or second login window, you should see โ€Safe Bootโ€ in the upper-right corner of the window.

References


  1. https://thomas.vanhoutte.be/miniblog/mac-installation-stuck-waiting-for-other-installations-to-complete/, Commandline to remove install lock from MacOS ↩︎

  2. https://support.apple.com/en-gb/guide/mac-help/mh21245/mac, Booting MacOS in Safe Mode ↩︎