macOS Monterey 12.1,I got install error:"Packagekit: PKInformsystemPolicyInstal1operation failed with error:An error occurred while registering installation with Gatekeeper"

PackageKit:

  • Begin install

8 Dec 14 10:33:18 loca lhost installd [51841: Packagekit: PKInformsystemPolicyInstal1operation failed with error:An error occurred while registering installation with Gatekeeper

Answered by DTS Engineer in 701811022

Is this an installer package that you created? Or a package that someone else created and you’re trying to install?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Is this an installer package that you created? Or a package that someone else created and you’re trying to install?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I rebooted the user's computer and the problem was solved.

Bah!

My general advice on this front is that you test things like installer packages in a VM. That allows you to restore the VM to a fresh snapshot, one that’s never seen your product, between each test. If that works, you have a reasonable degree of confidence that your installer package is correct and any problems that show up in the field are with the user’s machine, not your software.

I say “reasonable degree of confidence”, not 100% confidence, because it’s possible that your package has some oddity that’s triggering a problem only on specific machines. If so, you end up playing the statistic game: How often is your package installed, how often does it fail, and are there are common factors in the failures?

But yeah, in this case it sounds like the user’s machine just got itself into a bad way. If you see this crop up again, please grab a sysdiagnose log before restarting. You can then include that in a bug report about this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Huh, we have this happen a lot. I'll get a sysdiagnose and file a feedback.

macOS Monterey 12.1,I got install error:"Packagekit: PKInformsystemPolicyInstal1operation failed with error:An error occurred while registering installation with Gatekeeper"
 
 
Q