I am on BigSur 11.6, I have been lately observing this issue where the installer command is hung while installing package. When observed carefully I see that the last thing executed by the installer is trying to verify the package. Here are the logs, I feel there is a bug either in trustd or installerd where in corner case it waits on a lock forever. Any suggestions to over come this issue?
2021-11-17 18:16:58+01 OSX3-BigSur installer[14815]: Set authorization level to root for session
2021-11-17 18:16:58+01 OSX3-BigSur installer[14815]: Administrator authorization granted.
Other installer log, not sure if relevant
2021-11-17 18:16:58.845713+0100 0x1011c Default 0x0 14815 0 installer: (Security) [com.apple.securityd:SecError] Trust evaluate failure: [leaf ExtendedKeyUsage] [ca1 IntermediateEKU]
2021-11-17 18:16:58.845814+0100 0x1011c Activity 0x1c323 14815 0 installer: (Security) SecTrustEvaluateIfNecessary
2021-11-17 18:16:58.848178+0100 0x1011c Activity 0x1c324 14815 0 installer: (Security) SecTrustEvaluateIfNecessary
2021-11-17 18:16:58.853344+0100 0x1011c Activity 0x1c325 14815 0 installer: (Security) SecTrustEvaluateIfNecessary
2021-11-17 18:16:58.856355+0100 0x1011c Activity 0x1c326 14815 0 installer: (Security) SecTrustEvaluateIfNecessary
2021-11-17 18:16:58.856728+0100 0x10095 Default 0x1c326 151 0 trustd: [com.apple.securityd:policy] cert[0]: ExtendedKeyUsage =(leaf)[]> 0
2021-11-17 18:16:58.857505+0100 0x10095 Activity 0x1c2cb 151 0 trustd: (Security) SecItemCopyParentCertificates_ios
2021-11-17 18:16:58.857583+0100 0x10095 Default 0x1c2cb 151 0 trustd: (Security) [com.apple.securityd:SecCritical] Failed to talk to secd after 4 attempts.
2021-11-17 18:16:58.857614+0100 0x10095 Activity 0x1c2cc 151 0 trustd: (Security) SecItemCopyParentCertificates_ios
2021-11-17 18:16:58.857669+0100 0x10095 Default 0x1c2cc 151 0 trustd: (Security) [com.apple.securityd:SecCritical] Failed to talk to secd after 4 attempts.
2021-11-17 18:16:58.858403+0100 0x10095 Default 0x1c326 151 0 trustd: (CFNetwork) Task <BCFDA3CE-1EE4-4256-A2B2-F53724C36482>.<14> resuming, timeouts(60.0, 3.0) QOS(0x11) Voucher <private>
2021-11-17 18:16:58.858455+0100 0x10095 Default 0x1c326 151 0 trustd: (CFNetwork) [Telemetry]: Activity <nw_activity 12:2 [4E976781-0E22-43BE-B5BE-04422E825834] (reporting strategy default)> on Task <BCFDA3CE-1EE4-4256-A2B2-F53724C36482>.<14> was not selected for reporting
Any help regarding this would be appreciated.