Posted on 03-09-2020 07:31 AM
All,
I have been tasked with installing a program on all my Mac's. There are 2 files, one is the .pkg file and one is a .json file (this is the software license) The Json file must be in the same folder as the pkg file when installing.
I am looking at composer but there must be something I am missing. I used the snapshot process to create the new ,pkg file but am getting this error Executing Policy Arctic Wolf Install
Downloading ArcticWolf.pkg...
Downloading https://use1-jcds.services.jamfcloud.com//download/e3f790a936a24e9bbe4e0d92335887be/ArcticWolf.pkg?token=de2d2236b0ee4ff297bbf280f002e26fdtaoupbhlkyxfqxfjij68o3ob5bxe9fk...
Verifying package integrity...
Installing ArcticWolf.pkg...
Installation failed. The installer reported: installer: Package name is ArcticWolf
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. The package is attempting to install content to the system volume.)
I have never used composer before so I am a bit lost at this point.
Any thoughts of why I am getting this error, or how to accomplish the goal of repackaging the pkg file and the .json file into a new package that can be installed?
Posted on 03-09-2020 07:34 AM
you would need to provide the installer.log output to get any good feedback on what the underlying issue may be.
Posted on 03-09-2020 07:43 AM
First I am not a composer expert, so someone else will have to help out there. However I would do the following:
Download WhiteBox Packages. It is a good basic packager for macOS:
http://s.sudre.free.fr/Software/Packages/about.html
Then use this to create a package putting the JSON license key where you need it.
Create a jamf policy that installs two packages, the ArcticWolf Software and the JSON license.
The other thing you could do is, if the license is just a short string you could use the Files and Process option to run a command and create the JSON on the fly.
Posted on 03-09-2020 07:52 AM
here is the install.log
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Product archive /Library/Application Support/JAMF/Downloads/ArcticWolf.pkg trustLevel=100
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: External component packages (1) trustLevel=100 (trust evaluation failed: Error Domain=PKInstallErrorDomain Code=101 "The package “ArcticWolf.pkg” is not signed." UserInfo={NSURL=#payload.pkg -- file:///Library/Application%20Support/JAMF/Downloads/ArcticWolf.pkg#Distribution, PKInstallPackageIdentifier=arcticwolf, NSLocalizedDescription=The package “ArcticWolf.pkg” is not signed.})
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Library/Application%20Support/JAMF/Downloads/ArcticWolf.pkg#payload.pkg
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Set authorization level to root for session
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Administrator authorization granted.
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Will use PK session
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Using authorization level of root for IFPKInstallElement
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Package Authoring Error: Package contains system volume install location content. Installation cannot proceed since installing to the system volume is not possible.
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Package Authoring Error: Package contains system volume install location content, and installation will fail: Error Domain=IFInstallErrorDomain Code=-6000 "This package is incompatible with this version of macOS." UserInfo={NSLocalizedRecoveryOptions=(
Quit
), IFReadOnlyPathsKey={(
"/.VolumeIcon.icns"
)}, NSLocalizedRecoverySuggestion=The package is trying to install content to the system volume. Contact the software manufacturer for assistance., NSLocalizedDescription=This package is incompatible with this version of macOS.}
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Starting installation:
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Configuring volume "MacintoshHD"
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Preparing disk for local booted install.
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Free space on "MacintoshHD": 28.71 GB (28709048320 bytes).
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Create temporary directory "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.23985VqOH1D"
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: IFPKInstallElement (1 packages)
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: Adding client PKInstallDaemonClient pid=23985, uid=0 (/usr/sbin/installer)
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: ----- Begin install -----
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: packages=(
"PKLeopardPackage <id=arcticwolf, version=1, url=file:///Library/Application%20Support/JAMF/Downloads/ArcticWolf.pkg#payload.pkg>"
)
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: Set reponsibility for install to 23861
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: Read Only Install Locations Found:{(
"/.VolumeIcon.icns"
)}
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: Cleared responsibility for install from 23985.
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=501 "The package is attempting to install content to the system volume." UserInfo={NSLocalizedDescription=The package is attempting to install content to the system volume.} {
NSLocalizedDescription = "The package is attempting to install content to the system volume.";
}
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: Running idle tasks
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: Removing client PKInstallDaemonClient pid=23985, uid=0 (/usr/sbin/installer)
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=501 "The package is attempting to install content to the system volume." UserInfo={NSLocalizedDescription=The package is attempting to install content to the system volume.}
2020-03-09 10:43:57-04 Johns-MacBook-Pro installd[2566]: PackageKit: Done with sandbox removals
2020-03-09 10:43:58-04 Johns-MacBook-Pro installer[23985]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Posted on 03-09-2020 07:55 AM
"2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Package Authoring Error: Package contains system volume install location content. Installation cannot proceed since installing to the system volume is not possible."
When using composer , ensure ArcticWolf is installed in the /Applications folder before packing. From the install logs i can infer you packaged with composer from the DMG /Volume
Posted on 03-09-2020 08:04 AM
Like @rwinfie said above, these lines from your log stick out at me:
2020-03-09 10:43:57-04 Johns-MacBook-Pro installer[23985]: Package Authoring Error: Package contains system volume install location content, and installation will fail: Error Domain=IFInstallErrorDomain Code=-6000 "This package is incompatible with this version of macOS." UserInfo={NSLocalizedRecoveryOptions=( Quit ), IFReadOnlyPathsKey={( "/.VolumeIcon.icns" )}, NSLocalizedRecoverySuggestion=The package is trying to install content to the system volume. Contact the software manufacturer for assistance., NSLocalizedDescription=This package is incompatible with this version of macOS.}
This indicates you are installing this package on Catalina systems and the installation is trying to put things in now restricted locations. You may need to post some images of what your Composer source looks like so we can help determine what adjustments you should make.
Posted on 03-11-2020 11:16 AM
Hi, can you elaborate more on what restrictions there are on packages on Catalina pls? I have tried to look myself but can't see any KBs about this.
Posted on 07-14-2021 12:47 AM
I see the same issue here with latest Composer (10.30.x) packaging M1 software (Firefox, VLC) for M1 MacBook Airs. All packages are correctly dropped into the Applications folder when Composer asks to perform the installation. This is very annoying. It's quite disappointing to see that the issue is still existing and that I haven't received any reply from JamF on this since I filed the bug-report. If anyone has an idea about it how to address this, please post your workaround.
Alex