1. mac安装Edge浏览器报错
查看报错日志cat /var/log/install.log
2023-03-20 00:44:25+08 debijibndiannao installd[704]: PackageKit: Done with sandbox removals
2023-03-20 00:44:25+08 debijibndiannao Installer[70041]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 "提取软件包“MicrosoftEdge-111.0.1661.44.pkg”的文件时出错。" UserInfo={NSUnderlyingError=0x600000fdcdb0 {Error Domain=PKXARArchiveErrorDomain Code=101 "archive open failed" UserInfo={NSURL=file:///Users/lwg/Downloads/MicrosoftEdge-111.0.1661.44.pkg, NSFileOwnerAccountID=501, NSFileHFSTypeCode=0, NSFileSystemFileNumber=3186709, NSFileExtensionHidden=false, NSFileSystemNumber=16777230, NSFileSize=348373274, NSFileGroupOwnerAccountID=20, NSFileHFSCreatorCode=0, NSFileOwnerAccountName=lwg, NSFilePosixPermissions=511, NSFileCreationDate=2023-03-19 16:22:39 +0000, NSFileType=NSFileTypeRegular, NSFileProtectionKey=NSFileProtectionCompleteUntilFirstUserAuthentication, NSFileGroupOwnerAccountName=staff, NSFileReferenceCount=1, NSFileModificationDate=2023-03-19 16:23:34 +0000, NSLocalizedDescription=archive open failed}}, NSURL=file:///Users/lwg/Downloads/MicrosoftEdge-111.0.1661.44.pkg#MicrosoftEdge-111.0.1661.44.pkg, PKInstallPackageIdentifier=com.microsoft.edgemac, NSLocalizedDescription=提取软件包“MicrosoftEdge-111.0.1661.44.pkg”的文件时出错。}
2023-03-20 00:44:25+08 debijibndiannao installd[704]: PackageKit: Removing client PKInstallDaemonClient pid=70041, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2023-03-20 00:44:26+08 debijibndiannao Installer[70041]: Install failed: 安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。
2023-03-20 00:44:26+08 debijibndiannao Installer[70041]: IFDInstallController 1F8100 state = 8
2023-03-20 00:44:26+08 debijibndiannao Installer[70041]: Displaying 'Install Failed' UI.
2023-03-20 00:44:26+08 debijibndiannao Installer[70041]: 'Install Failed' UI displayed message:'安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。'.
解决办法:
打开安装器的完全磁盘访问权限