The installation process fails when the installer package attempts to install new binaries into '/usr/bin' path.
Notably the errors:
shove[834]: [src=restricted] /usr/bin: unable to restore flags 0x0 (error 30)
shove[834]: [src=restricted] /usr/bin/indent: unable to restore flags 0x0 (error 30)
shove[834]: [source=file] failed _relinkFile(/Library/Apple/System/Library/InstallerSandboxes/.PKInstallSandboxManager-SystemSoftware/B202ACF2-686D-43B5-8850-B7386CE865D6.activeSandbox/Root/Library/Developer/CommandLineTools/usr/bin/indent, /usr/bin/indent): Directory not empty
..... etc...
After the file privs issue package installation fails.
Question: Do I need to change the rights on '/usr/bin/indent' , or is the package not supposed to contain those?
Question: Should this not work with sudo? (Because I tried that and still no go)
Any enlightenment is appreciated.
Here is the Error log Output:
ERROR Log Text
Jan 5 20:39:06 Ps-Mac-mini Installer[818]: Package Authoring Error: <background> has an unsupported MIME type: image/data
Jan 5 20:39:06 Ps-Mac-mini Installer[818]: Package Authoring Error: <background_scaling> has an unsupported MIME type: X-NSObject/NSNumber
Jan 5 20:39:06 Ps-Mac-mini Installer[818]: Package Authoring Error: <background_alignment> has an unsupported MIME type: X-NSObject/NSNumber
Jan 5 20:39:06 Ps-Mac-mini Installer[818]: Package Authoring Error: <layout-direction> has an unsupported MIME type: X-NSObject/NSNumber
Jan 5 20:39:07 Ps-Mac-mini Installer[818]: Failed to load specified background image
Jan 5 20:39:08 Ps-Mac-mini Installer[818]: Could not load resource readme: (null)
Jan 5 20:39:33 Ps-Mac-mini system_installd[526]: PackageKit: ----- Begin install -----
Jan 5 20:44:40 Ps-Mac-mini shove[834]: [src=restricted] /usr/bin: unable to restore flags 0x0 (error 30)
Jan 5 20:44:40 Ps-Mac-mini shove[834]: [src=restricted] /usr/bin/indent: unable to restore flags 0x0 (error 30)
Jan 5 20:44:40 Ps-Mac-mini shove[834]: [source=file] failed _relinkFile(/Library/Apple/System/Library/InstallerSandboxes/.PKInstallSandboxManager-SystemSoftware/B202ACF2-686D-43B5-8850-B7386CE865D6.activeSandbox/Root/Library/Developer/CommandLineTools/usr/bin/indent, /usr/bin/indent): Directory not empty
srcPath = /Library/Apple/System/Library/InstallerSandboxes/.PKInstallSandboxManager-SystemSoftware/B202ACF2-686D-43B5-8850-B7386CE865D6.activeSandbox/Root/Library/Developer/CommandLineTools/usr/bin/indent NSFileOwnerAccountID=0 NSFileHFSTypeCode=0 NSFileSystemFileNumber=12925784300 NSFileExtensionHidden=0 NSFileSystemNumber=16777224 NSFileSize=234544 NSFileGroupOwnerAccountID=0 NSFileHFSCreatorCode=0 NSFileCreationDate=2020-12-03 22:23:42 +0000 NSFileOwnerAccountName=root NSFilePosixPermissions=493 NSFileType=NSFileTypeRegular NSFileProtectionKey=NSFileProtectionCompleteUntilFirstUserAuthentication NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1 NSFileModificationDate=2020-12-03 22:23:42 +0000
dstPath = /usr/bin/indent NSFileOwnerAccountID=0 NSFileHFSTypeCode=0 NSFileSystemFileNumber=1152921500312782313 NSFileExtensionHidden=0 NSFileSystemNumber=16777224 NSFileSize=137536 NSFileGroupOwnerAccountID=0 NSFileHFSCreatorCode=0 NSFileCreationDate=2020-01-01 08:00:00 +0000 NSFileOwnerAccountName=root NSFilePosixPermissions=493 NSFileType=NSFileTypeRegular NSFileProtectionKey=NSFileProtectionCompleteUntilFirstUserAuthentication NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1 NSFileModificationDate=2020-01-01 08:00:00 +0000
dstParentPath = /usr/bin NSFileOwnerAccountID=0 NSFileSystemFileNumber=1152921500312781601 NSFileExtensionHidden=0 NSFileSystemNumber=16777224 NSFileSize=34816 NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root NSFileCreationDate=2020-01-01 08:00:00 +0000 NSFilePosixPermissions=493 NSFileProtectionKey=NSFileProtectionCompleteUntilFirstUserAuthentication NSFileType=NSFileTypeDirectory NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1088 NSFileModificationDate=2020
Jan 5 20:44:41 Ps-Mac-mini system_installd[526]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=120 "An unexpected error occurred while moving files to the final destination." UserInfo={NSLocalizedDescription=An unexpected error occurred while moving files to the final destination., arguments=(
"-f",
"-s",
"/Library/Apple/System/Library/InstallerSandboxes/.PKInstallSandboxManager-SystemSoftware/B202ACF2-686D-43B5-8850-B7386CE865D6.activeSandbox/Root",
"/"
), NSUnderlyingError=0x7faef4ac11f0 {Error Domain=NSPOSIXErrorDomain Code=66 "Directory not empty"}} {
NSLocalizedDescription = "An unexpected error occurred while moving files to the final destination.";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=66 \"Directory not empty\"";
arguments = (
"-f",
"-s",
"/Library/Apple/System/Library/InstallerSandboxes/.PKInstallSandboxManager-SystemSoftware/B202ACF2-686D-43B5-8850-B7386CE865D6.activeSandbox/Root",
"/"
);
}
Jan 5 20:44:42 Ps-Mac-mini Installer[818]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Jan 5 20:44:43 Ps-Mac-mini Installer[818]: Displaying 'Install Failed' UI.
Jan 5 20:44:43 Ps-Mac-mini Installer[818]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.