(If you are just here for what fixed it for me, click here.)
I randomly got this problem on my Hackintosh where the system was pretty unresponsive, more so than usual, and I couldn't install any software bundled in .pkg installers. Stuff like Logitech Options, Nvidia Web Drivers