PKG install error

Getting this error installing a PKG with MDS. I have tried after macOS installation and at first login.

Logs show this:

2019-11-06 14:40:20-05 PeteMDStst04 installer[11157]: Product archive /var/com.twocanoes.mds/packages/20_Al8_Installers.pkg trustLevel=100
2019-11-06 14:40:20-05 PeteMDStst04 installer[11157]: External component packages (1) trustLevel=100 (trust evaluation failed: Error Domain=PKInstallErrorDomain Code=101 “The package “20_Al8_Installers.pkg” is not signed.” UserInfo={NSURL=#payload.pkg – file:///var/com.twocanoes.mds/packages/20_Al8_Installers.pkg#Distribution, PKInstallPackageIdentifier=altiris81ru7cornishinstallers, NSLocalizedDescription=The package “20_Al8_Installers.pkg” is not signed.})
2019-11-06 14:40:20-05 PeteMDStst04 installer[11157]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
2019-11-06 14:40:20-05 PeteMDStst04 installer[11157]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/var/com.twocanoes.mds/packages/20_Al8_Installers.pkg#payload.pkg
2019-11-06 14:40:20-05 PeteMDStst04 installer[11157]: Set authorization level to root for session
2019-11-06 14:40:20-05 PeteMDStst04 installer[11157]: Administrator authorization granted.
2019-11-06 14:40:20-05 PeteMDStst04 installer[11157]: Will use PK session
2019-11-06 14:40:20-05 PeteMDStst04 installer[11157]: Using authorization level of root for IFPKInstallElement
2019-11-06 14:40:21-05 PeteMDStst04 installer[11157]: Starting installation:
2019-11-06 14:40:21-05 PeteMDStst04 installer[11157]: Configuring volume “Macintosh HD”
2019-11-06 14:40:21-05 PeteMDStst04 installer[11157]: Preparing disk for local booted install.
2019-11-06 14:40:21-05 PeteMDStst04 installer[11157]: Free space on “Macintosh HD”: 222.79 GB (222788825088 bytes).
2019-11-06 14:40:21-05 PeteMDStst04 installer[11157]: Create temporary directory “/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.11157hqrvLT”
2019-11-06 14:40:21-05 PeteMDStst04 installer[11157]: IFPKInstallElement (1 packages)
2019-11-06 14:40:21-05 PeteMDStst04 installd[306]: PackageKit: Adding client PKInstallDaemonClient pid=11157, uid=0 (/usr/sbin/installer)
2019-11-06 14:40:21-05 PeteMDStst04 installer[11157]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
2019-11-06 14:40:21-05 PeteMDStst04 installd[306]: PackageKit: ----- Begin install -----
2019-11-06 14:40:21-05 PeteMDStst04 installd[306]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
2019-11-06 14:40:21-05 PeteMDStst04 installd[306]: PackageKit: packages=(
“PKLeopardPackage <id=altiris81ru7cornishinstallers, version=1, url=file:///var/com.twocanoes.mds/packages/20_Al8_Installers.pkg#payload.pkg>”
)
2019-11-06 14:40:21-05 PeteMDStst04 installd[306]: PackageKit: Set reponsibility for install to 11044
2019-11-06 14:40:23-05 PeteMDStst04 installd[306]: PackageKit: Extracting file:///var/com.twocanoes.mds/packages/20_Al8_Installers.pkg#payload.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root, uid=0)
2019-11-06 14:40:29-05 PeteMDStst04 installd[306]: PackageKit: prevent user idle system sleep
2019-11-06 14:40:29-05 PeteMDStst04 installd[306]: PackageKit: suspending backupd
2019-11-06 14:40:29-05 PeteMDStst04 installd[306]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.sandboxTrash for sandbox /Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox
2019-11-06 14:40:29-05 PeteMDStst04 install_monitor[11183]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2019-11-06 14:40:29-05 PeteMDStst04 installd[306]: PackageKit: Shoving /Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root (6 items) to /
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: Error relinking file (primary): /Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root/private/var/at/tabs to /private/var/at/tabs, error = 1
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: srcPath = /Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root/private/var/at/tabs NSFileOwnerAccountID=0 NSFileSystemFileNumber=227097 NSFileExtensionHidden=0 NSFileSystemNumber=16777220 NSFileSize=96 NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root NSFileCreationDate=2019-09-30 17:15:05 +0000 NSFilePosixPermissions=448 NSFileType=NSFileTypeDirectory NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=3 NSFileModificationDate=2019-09-30 17:15:05 +0000
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: dstParentPath = /private/var/at NSFileOwnerAccountID=1 NSFileSystemFileNumber=21913 NSFileExtensionHidden=0 NSFileSystemNumber=16777220 NSFileSize=256 NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=daemon NSFileCreationDate=2019-10-24 00:38:41 +0000 NSFilePosixPermissions=493 NSFileType=NSFileTypeDirectory NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=8 NSFileModificationDate=2019-10-24 00:38:41 +0000
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: Error relinking file (primary): /Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root/private/var/at/tabs/root to /private/var/at/tabs/root, error = 1
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: srcPath = /Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root/private/var/at/tabs/root NSFileOwnerAccountID=0 NSFileHFSTypeCode=0 NSFileSystemFileNumber=227098 NSFileExtensionHidden=0 NSFileSystemNumber=16777220 NSFileSize=203 NSFileGroupOwnerAccountID=0 NSFileHFSCreatorCode=0 NSFileCreationDate=2019-09-30 17:06:38 +0000 NSFileOwnerAccountName=root NSFilePosixPermissions=384 NSFileType=NSFileTypeRegular NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1 NSFileModificationDate=2019-09-30 17:06:38 +0000
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: dstParentPath = /private/var/at/tabs NSFileOwnerAccountID=0 NSFileSystemFileNumber=21914 NSFileExtensionHidden=0 NSFileSystemNumber=16777220 NSFileSize=64 NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root NSFileCreationDate=2019-08-23 23:53:25 +0000 NSFilePosixPermissions=448 NSFileType=NSFileTypeDirectory NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=2 NSFileModificationDate=2019-08-23 23:53:25 +0000
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: [src=unknown] /private/var/at/tabs/root: unable to restore flags to destination (error 2)
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: [source=file] failed _RelinkFile(/Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root/private/var/at/tabs/root, /private/var/at/tabs/root): Operation not permitted
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: srcPath = /Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root/private/var/at/tabs/root NSFileOwnerAccountID=0 NSFileHFSTypeCode=0 NSFileSystemFileNumber=227098 NSFileExtensionHidden=0 NSFileSystemNumber=16777220 NSFileSize=203 NSFileGroupOwnerAccountID=0 NSFileHFSCreatorCode=0 NSFileCreationDate=2019-09-30 17:06:38 +0000 NSFileOwnerAccountName=root NSFilePosixPermissions=384 NSFileType=NSFileTypeRegular NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1 NSFileModificationDate=2019-09-30 17:06:38 +0000
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: dstPath = /private/var/at/tabs/root does not exist
2019-11-06 14:40:29-05 PeteMDStst04 shove[11184]: dstParentPath = /private/var/at/tabs NSFileOwnerAccountID=0 NSFileSystemFileNumber=21914 NSFileExtensionHidden=0 NSFileSystemNumber=16777220 NSFileSize=64 NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root NSFileCreationDate=2019-08-23 23:53:25 +0000 NSFilePosixPermissions=448 NSFileType=NSFileTypeDirectory NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=2 NSFileModificationDate=2019-08-23 23:53:25 +0000
2019-11-06 14:40:29-05 PeteMDStst04 install_monitor[11183]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2019-11-06 14:40:30-05 PeteMDStst04 installd[306]: PackageKit: releasing backupd
2019-11-06 14:40:30-05 PeteMDStst04 installd[306]: PackageKit: allow user idle system sleep
2019-11-06 14:40:30-05 PeteMDStst04 installd[306]: PackageKit: Cleared responsibility for install from 11157.
2019-11-06 14:40:30-05 PeteMDStst04 installd[306]: 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/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root”,
“/”
), NSUnderlyingError=0x7ff78065eb10 {Error Domain=NSPOSIXErrorDomain Code=1 “Operation not permitted”}} {
NSLocalizedDescription = “An unexpected error occurred while moving files to the final destination.”;
NSUnderlyingError = “Error Domain=NSPOSIXErrorDomain Code=1 “Operation not permitted””;
arguments = (
“-f”,
“-s”,
“/Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root”,
“/”
);
}
2019-11-06 14:40:30-05 PeteMDStst04 installd[306]: PackageKit: Running idle tasks
2019-11-06 14:40:30-05 PeteMDStst04 installer[11157]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=120 “An unexpected error occurred while moving files to the final destination.” UserInfo={NSUnderlyingError=0x7f8901c2da80 {Error Domain=NSPOSIXErrorDomain Code=1 “Operation not permitted”}, NSLocalizedDescription=An unexpected error occurred while moving files to the final destination., arguments=(
“-f”,
“-s”,
“/Library/InstallerSandboxes/.PKInstallSandboxManager/AC38BCB0-FE58-4DBB-8A56-90CB4605698F.activeSandbox/Root”,
“/”
)}
2019-11-06 14:40:30-05 PeteMDStst04 installd[306]: PackageKit: Removing client PKInstallDaemonClient pid=11157, uid=0 (/usr/sbin/installer)
2019-11-06 14:40:30-05 PeteMDStst04 installer[11157]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
2019-11-06 14:40:33-05 PeteMDStst04 installd[306]: PackageKit: Done with sandbox removals

It looks like the package is trying to install to /var/at/tabs and that is protected area in catalina.

tim

Thanks. With 2.0, if I set this app to install at login would a APNS pushed profile giving this app full disk access get onto the system before the install starts (non DEP system)

Not sure. Need to look into it and test.

tim