应用未安装,shell 脚本不在 macOS 11.2 中运行

症状

在 macOS Big Sur 11.2 上遇到以下问题。基于 x 的设备:

  • 无法下载和安装应用。
  • 应用安装状态在Microsoft Intune管理中心无限期显示安装挂起
  • Shell 脚本不会运行,因为无法成功安装 Microsoft Intune 管理代理。

注意

这些问题可能会偶尔发生。 并非所有 macOS 11.2。租户中的 x 客户端遇到问题。

发生这些问题时,设备控制台上会记录类似于以下示例的条目:

<Time>  localhost mdmclient[2611]: [com.apple.ManagedClient:ManagedApps] StartInstall using UUID: <ID> for MDM 'Microsoft.Profiles.MDM'
<Time>  localhost mdmclient[2611]: [com.apple.ManagedClient:ManagedApps] Installing with MDM options: {
    ManagementFlags = 0;
    ManifestURL = "https://euprodimedatapri.blob.core.windows.net/macsidecaragent-<ID>/sidecar_2103.013.plist";
    RequestType = InstallApplication;
}
<Time>  localhost mdmclient[2611]: [com.apple.ManagedClient:InstallApplication] InstallApplication (UUID:<ID>) (iOS: no) manifest: no
<Time>  localhost mdmclient[2611]: [com.apple.ManagedClient:AppStore] Calling AppStore -submitManifestRequest.  ID: <ID>  Platform: <macos>  Manifest: no  URL: YES  Certs: no  Pinning: no
<Time>  localhost mdmclient[2611]: [com.apple.ManagedClient:MDMDaemon] [ERROR] submitManifestRequest completed.  ID: <ID> Error: Error Domain=ASDErrorDomain Code=506 "Install request is a duplicate" UserInfo={NSLocalizedDescription=Install request is a duplicate}
<Time>  localhost mdmclient[2611]: [com.apple.ManagedClient:MDMDaemon] [ERROR] Assertion Failed.  File: /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/MCXTools/MCXTools-1430/ConfigProfiles/mdmclient/AppStoreUtil.mm  Line: 578
<Time>  localhost mdmclient[2611]: [com.apple.ManagedClient:MDMDaemon] Logging Manifest request failure.  InstallUUID: <ID>  Error: Error Domain=ASDErrorDomain Code=506 "Install request is a duplicate" UserInfo={NSLocalizedDescription=Install request is a duplicate}
<Time>  localhost mdmclient[2611]: [com.apple.ManagedClient:ManagedApps] Processing install phase 97 for <ID> ==> {
    "__Error__" =     {
        code = 506;
        domain = ASDErrorDomain;
        userInfo =         {
            NSLocalizedDescription = "Install request is a duplicate";
        };
    };
    "__Success__" = 0;
}

注意

出现错误代码 506安装请求是 日志中的重复条目是此问题的证据。

原因

这是 macOS 11.2 中的已知问题。x.

解决方案

若要解决此问题,请将设备升级到 macOS 11.3 或更高版本。