Skip to content

Instantly share code, notes, and snippets.

@tjluoma
Created November 27, 2020 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjluoma/bfb9f452b8c469e77227a674615f4f55 to your computer and use it in GitHub Desktop.
Save tjluoma/bfb9f452b8c469e77227a674615f4f55 to your computer and use it in GitHub Desktop.
try various fixes for recent problems with Mac App Store on Mojave: “We could not complete your purchase” / “cancelled”
#!/usr/bin/env zsh -f
# Purpose: Try to get the Mac App Store on Mojave to let Mac App Store apps update without "cancelled" message
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2020-11-25
PATH='/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin'
pgrep -x 'App Store' && killall 'App Store'
sudo rm -rfv "$TMPDIR/../C/com.apple.appstore/"
rm -rfv "$HOME/Library/Caches/com.apple.appstore/"
killall -9 appstoreagent
open -a 'App Store'
exit 0
#EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment