AnswerBun.com

Mac App Store: We could not complete your purchase - Unknown Error

Ask Different Asked by Dallin Hagman on January 2, 2022

I am using a Macbook Pro (2018, 13 inch, 2.3ghz i5) from work, and the previous user had installed Xcode and a few other apps through their apple account. I have since deleted Xcode, but whenever I try to download Xcode again through the app store, or any app for that matter, I get the message “We could not complete your purchase – Unknown Error”. I have signed out and in, restarted several times, and looked in the Error Console. The console gives the error “Purchase failed with error: ” and I can’t find more.
error message
Any help would be greatly appreciated so that I can finally get back to work!

3 Answers

Quit your App Store application if it is open. Launch the terminal application and type the following command:

open $TMPDIR/../C/com.apple.appstore/

A folder named com.apple.appstore will open. Move all the files present in it to Trash. Restart your mac and launch the App Store again. Problem solved!

Answered by Haardik Dharma on January 2, 2022

Removing contents of /var/folders and /private/var/folders cache directories fixed this issue for me. Open your terminal and run

sudo rm -fr /var/folders/**
sudo rm -fr /private/var/folders/**

Found this solution there

Do not be afraid to break something by removing contents from /var/folders and /private/var/folders because they are used to store per-user temporary files and caches

Answered by Hirurg103 on January 2, 2022

The reason for this is that:

Your Xcode application was installed previously with a different Apple ID. I would suggest you to check if there is any account active still in @Internet Accounts. Remove it and also go to Profiles and check if there is MDM profile installed or not. If you have an MDM profile, you have to reach out your IT to fix it.

Also, sign out from Mac Store and iTunes, reboot and try to sign in back if there is no MDM profile installed on your Macbook.

Answered by Udhy on January 2, 2022

Add your own answers!

Related Questions

What is this process called?

1  Asked on December 17, 2020 by daikin

 

Macbook Pro 15″ 2017 bluetooth reconnects when mouse is connected

1  Asked on December 12, 2020 by konstantin-bodnia

   

Where does iTerm store user preferences?

1  Asked on December 12, 2020 by syntagma

   

How to play audio in Safe Boot?

1  Asked on December 10, 2020 by theonlygusti

         

Can I tell my Mac to charge to 80% only?

2  Asked on December 10, 2020 by doug

       

Problem updating with old Apple ID

0  Asked on December 9, 2020 by madtexasdaddy

       

Apple Mail adds blank rows to CSV file

0  Asked on December 7, 2020 by 01000101-sh

       

How to copy and paste as plain text on iOS?

4  Asked on December 3, 2020 by marcel-janus

   

How to access locked notes with forgotten password?

1  Asked on December 2, 2020 by brier

     

Client torrent for broadcatching

1  Asked on December 2, 2020 by systempuntoout

     

Macbook doesn’t want an SSD

1  Asked on December 2, 2020 by yaazkal

   

Xcode 7 develop for iOS without developer account

5  Asked on December 1, 2020 by iprogram

     

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir