Installation failed. The installer reported: installer: Package name is

HS_Test
New Contributor

Has anybody else seen this error?

Installing xxxxxxx
Installation failed. The installer reported: installer: Package name is xxxxx
installer: Upgrading at base path /
installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

Install works fine when manually executed

41 REPLIES 41

michael-brodt
New Contributor III

Have you checked on the device to see if the installation actually succeeded? I've had a couple of instances where the installer says that it failed, even though it worked (Citrix Receiver 12.4 is a good example).

  1. If it install actually failed, is there anything going on in the policy aside from just the package install? If so, try removing any scripts or other actions other than the package install itself.
  2. Is this a package straight from the source, or did you rebuild it in Composer? Sometimes you may want/need to use Composer to rebuild the package.
  3. Does it fail on multiple devices, or just one? Is it from the App Store or an actual package? These questions should get you going down the right path to resolving it.

HS_Test
New Contributor

Hi Michael- The install actually failed. The package is from the source. It fails on multiple devices. It seems it's expects the package to be a different name

crmeade
New Contributor III

I've been seeing some of the same, mainly with our AutoPkgr built pkgs. If I build them by hand, the issue seems to go away.

thoule
Valued Contributor II

Read /var/log/install.log and it'll tell you the problem.

RobertBasil
Contributor

I've been seeing the exact same error, multiple computers, multiple packages... no rhyme or reason. The pkg installs just fine on most computers, but others not one day and then the next day they install just fine. This has been going on for over a month and support has not been able to answer as to why.

All pkgs are CC pkgs.

RobertBasil
Contributor

@thoule

I am on a hosted JAMF. Turned on full logging and sent them to support, I've also submitted the client logs. No resolution. Support does not know why it's happening.

dpertschi
Valued Contributor

@RobertBasil On the client machine where your getting failures, look at the installer log, /var/log/install.log

With the Adobe CS/CC installers I frequently see intermittent and inconsistant failures (in the install.log) with nonsense like:
"An error occurred while running scripts from the package “name_of_package_here.pkg”
"An error occurred while extracting files from the package “ name_of_package_here.pkg”

Sometimes a re-run works, or a reboot. Sometimes I've found the Adobe Update Manager process is running in the background causing the failure, killing it allows the new install. Sometimes I find an older version of the suite is installed and must be uninstalled (PIA) before the new suite will install. Definitely finding the CC installers more fragile these days. See what's in the install.log

stevevalle
Contributor III

I'm seeing this issue also. Adobe CC 2017 package fails to install during imaging, but installs successfully with Self Service.

Error in the install.log file is:
An error occurred while running scripts from the package "Adobe CC 2017 - Full Installer.pkg"

I'm going to re-create the installer with CCP, see if that resolves the issue!

makander
Contributor

I've started seeing this issue with packages that worked about a week ago.

Packages from both EFI (fiery) and Checkpoint (vpn).

@HS_Test what version of Jamf are you on?

djwojo
Contributor

@HS_Test was this ever resolved?

samsherriff
New Contributor

I just had this issue myself with a tested package (manually installed)....will let you guys know if I find a fix!

isterling_goaaa
New Contributor III

I'm having this issue currently with a package that has worked consistently with all test machines, but now that I'm running it site-wide, the script fails with:

Installation failed. The installer reported: installer: Package name is SEPRemote<br/>installer: Installing at base path /<br/>installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

I'll flush and try again, thinking that maybe it's a networking issue where the package isn't copying over correctly.

donmontalvo
Esteemed Contributor II

Can you confirm if the PKG was signed using an expired Developer ID certificate?

/usr/sbin/pkgutil --check-signature /path/to/package.pkg

We got bit in the butt by McAfee packages the a couple days ago because of this.

--
https://donmontalvo.com

dpratl
Contributor II

Hey guys,

I now have the same problem with Citrix Receiver and McAfee.
Citrix Receiver just tells me:

Installation failed. The installer reported: installer: Package name is Citrix Receiver
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.)

McAfee is telling something about " Certificate used to sign package is not trusted."

Installation failed. The installer reported: **************************
Running GenerateProductConfig
Installation will continue since MA 4.8.0 Patch3 is not already installed
Checking if we have FMP already installed
Checking if we have MSCUI already installed
installer: Package name is McAfee Endpoint Protection for Mac
installer: Certificate used to sign package is not trusted. Use -allowUntrusted to override.

I switched a few days ago to 9.100 is that connected? Or is something different maybe with 10.12.6?

Thank you
BR
Daniel

PUmacTool
New Contributor

We've been bit with expired dev certificates in the CC suite for individual product installs. I usually find the exact errors in /Library/Logs/Adobe/Installers/. The CC installer will create a log for each product in the suite. If one fails it rolls back all of them and the generic install failure message is sent to the JSS. I'll actually watch the logs during an install to pin point which one fails.

If your software developer has separate logs, besides the system wide install.log, it'll be the one to watch.

Frank

gachowski
Valued Contributor II

There are new McAfee installer .pkgs

C

dpratl
Contributor II

Hi @gachowski,

Thank you, the new McAdee pkgs solved that problem :)

I still have the problem with the Citrix Receiver. Version 12.4 and 12.6.
Any clue on that?

Thank you
BR
Daniel

---------------------- EDIT -----------------------

OK, I found the problem.
I was renaming the installation PKG from "Install Citrix Receiver" to "Citrix Receiver 12.6" because it is easier for me to track the packages by name. Now i just changed the "Display Name", not that good for me but if it works its ok for me ;)

---------------------- 2. EDIT -----------------------

Sorry, no. It just was working once. The problem still exists.
Does anyone have a clue?
Thank you

dpratl
Contributor II

Hi all,

I'm sorry, but i don't get it.
I now tried to redownload the Citrix Receiver 12.6.
I used an old package (the first version of Citrix Receiver we installed, which was working).
I created a new Policy
Nothing is working, expect my own Mac.
I will post the jamf.log and install.log here, maybe someone has a clue:

jamf.log:

xxxxxxx:~ xxxxxxxx$ sudo jamf policy -v
Checking for policies triggered by "recurring check-in"...
Executing Policy [36000] Citrix Receiver 12.6
Running script Uninstall.Citrix Receiver...
Script exit code: 0
Script result: rm: Citrix Receiver/: No such file or directory

Mounting xxxxxxxx
Verifying package integrity...
Installing Citrix Receiver 12.6...
Installation failed. The installer reported: installer: Package name is Citrix Receiver
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.)
Retrying using distribution point xxxxxxx...
Downloading Citrix_Receiver_12.6.pkg...
Downloading https://xxx.xxxxxx.xxx/xxxxxxxxx/Packages/Citrix_Receiver_12.6.pkg...
Verifying package integrity...
Installing Citrix Receiver 12.6...
Installation failed. The installer reported: installer: Package name is Citrix Receiver
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.)
Verifying package integrity...
Installing Citrix Receiver Configuration...
Filling user home directories from /Volumes/CitrixCfg/Users/xxx ...
Filling user templates from /Volumes/CitrixCfg/Users/xxx ...
Closing package...
Relaunching dock(s)...
Unmounting file server...
Running Recon...
Retrieving inventory preferences from https://xxx.xxxxxx.xxx/...
Finding extension attributes...
Locating accounts...
Locating applications...
Searching path: /Applications
Locating hard drive information...
Locating package receipts...
Locating software updates...
Locating printers...
Locating hardware information (Mac OS X 10.12.6)...
Gathering application usage information...
Submitting data to https://xxx.xxxxxx.xxx/...
<computer_id>147</computer_id>
Submitting log to https://xxx.xxxxxx.xxx/

install.log:

Sep 20 09:53:03 xxxxxxxxx installer[1970]: Product archive /Library/Application Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg trustLevel=202
Sep 20 09:53:03 xxxxxxxxx installer[1970]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
Sep 20 09:53:03 xxxxxxxxx installer[1970]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg
Sep 20 09:53:03 xxxxxxxxx installer[1970]: Set authorization level to root for session
Sep 20 09:53:03 xxxxxxxxx installer[1970]: Administrator authorization granted.
Sep 20 09:53:03 xxxxxxxxx installer[1970]: Will use PK session
Sep 20 09:53:03 xxxxxxxxx installer[1970]: Using authorization level of root for IFPKInstallElement
Sep 20 09:53:03 xxxxxxxxx installer[1970]: Starting installation:
Sep 20 09:53:03 xxxxxxxxx installer[1970]: Configuring volume "Macintosh HD"
Sep 20 09:53:03 xxxxxxxxx installer[1970]: Preparing disk for local booted install.
Sep 20 09:53:03 xxxxxxxxx installer[1970]: Free space on "Macintosh HD": 476,87 GB (476867665920 bytes).
Sep 20 09:53:03 xxxxxxxxx installer[1970]: Create temporary directory "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.1970uRGjQj"
Sep 20 09:53:03 xxxxxxxxx installer[1970]: IFPKInstallElement (1 packages)
Sep 20 09:53:03 xxxxxxxxx installd[1129]: PackageKit: Adding client PKInstallDaemonClient pid=1970, uid=0 (/usr/sbin/installer)
Sep 20 09:53:03 xxxxxxxxx installer[1970]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
Sep 20 09:53:03 xxxxxxxxx installd[1129]: PackageKit: ----- Begin install -----
Sep 20 09:53:03 xxxxxxxxx installd[1129]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Sep 20 09:53:03 xxxxxxxxx installd[1129]: PackageKit: packages=(
        "PKLeopardPackage <file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg>"
    )
Sep 20 09:53:03 xxxxxxxxx installd[1129]: PackageKit: Session UUID file exists - will not overwrite /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/A043A369-5CB1-49FD-9772-0316AD31FCC9.activeSandbox
Sep 20 09:53:03 xxxxxxxxx installd[1129]: PackageKit: Extracting file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/A043A369-5CB1-49FD-9772-0316AD31FCC9.activeSandbox/Root, uid=0)
Sep 20 09:53:13 xxxxxxxxx installd[1129]: PackageKit: prevent user idle system sleep
Sep 20 09:53:13 xxxxxxxxx installd[1129]: PackageKit: suspending backupd
Sep 20 09:53:13 xxxxxxxxx installd[1129]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.QX0g1x/Scripts/com.citrix.ICAClient.z3D6fN
Sep 20 09:53:13 xxxxxxxxx install_monitor[1981]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Sep 20 09:53:13 xxxxxxxxx installd[1129]: ./preinstall: No receipt for 'com.citrix.ICAClient' found at '/'.
Sep 20 09:53:13 xxxxxxxxx installd[1129]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/A043A369-5CB1-49FD-9772-0316AD31FCC9.sandboxTrash for sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/A043A369-5CB1-49FD-9772-0316AD31FCC9.activeSandbox
Sep 20 09:53:13 xxxxxxxxx installd[1129]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/A043A369-5CB1-49FD-9772-0316AD31FCC9.activeSandbox/Root (3 items) to /
Sep 20 09:53:13 xxxxxxxxx installd[1129]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.QX0g1x/Scripts/com.citrix.ICAClient.z3D6fN
Sep 20 09:53:14 xxxxxxxxx installd[1129]: ./postinstall: Successfully collected Installer CEIP datapoints to file: /var/itadmin/Library/Application Support/Citrix Receiver/CEIP/CEIPInstaller.json
Sep 20 09:53:14 xxxxxxxxx installd[1129]: ./postinstall: Could not find domain for
Sep 20 09:53:14 --- last message repeated 1 time ---
Sep 20 09:53:14 xxxxxxxxx install_monitor[1981]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Sep 20 09:53:14 xxxxxxxxx installd[1129]: PackageKit: releasing backupd
Sep 20 09:53:14 xxxxxxxxx installd[1129]: PackageKit: allow user idle system sleep
Sep 20 09:53:14 xxxxxxxxx installd[1129]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Citrix_Receiver_12.6”." UserInfo={NSFilePath=./postinstall, NSURL=file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg, PKInstallPackageIdentifier=com.citrix.ICAClient, NSLocalizedDescription=An error occurred while running scripts from the package “Citrix_Receiver_12.6”.} {
        NSFilePath = "./postinstall";
        NSLocalizedDescription = "An error occurred while running scripts from the package U201cCitrix_Receiver_12.6U201d.";
        NSURL = "file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg";
        PKInstallPackageIdentifier = "com.citrix.ICAClient";
    }
Sep 20 09:53:14 xxxxxxxxx installd[1129]: PackageKit: Running idle tasks
Sep 20 09:53:14 xxxxxxxxx installer[1970]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Citrix_Receiver_12.6”." UserInfo={NSFilePath=./postinstall, NSURL=file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg, PKInstallPackageIdentifier=com.citrix.ICAClient, NSLocalizedDescription=An error occurred while running scripts from the package “Citrix_Receiver_12.6”.}
Sep 20 09:53:14 xxxxxxxxx installd[1129]: PackageKit: Removing client PKInstallDaemonClient pid=1970, uid=0 (/usr/sbin/installer)
Sep 20 09:53:14 xxxxxxxxx installd[1129]: PackageKit: Done with sandbox removals
Sep 20 09:53:15 xxxxxxxxx installer[1970]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Product archive /Library/Application Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg trustLevel=202
Sep 20 09:53:19 xxxxxxxxx installer[2008]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
Sep 20 09:53:19 xxxxxxxxx installer[2008]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Set authorization level to root for session
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Administrator authorization granted.
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Will use PK session
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Using authorization level of root for IFPKInstallElement
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Starting installation:
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Configuring volume "Macintosh HD"
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Preparing disk for local booted install.
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Free space on "Macintosh HD": 476,78 GB (476781916160 bytes).
Sep 20 09:53:19 xxxxxxxxx installer[2008]: Create temporary directory "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.2008nf1hwb"
Sep 20 09:53:19 xxxxxxxxx installer[2008]: IFPKInstallElement (1 packages)
Sep 20 09:53:19 xxxxxxxxx installd[1129]: PackageKit: Adding client PKInstallDaemonClient pid=2008, uid=0 (/usr/sbin/installer)
Sep 20 09:53:19 xxxxxxxxx installer[2008]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
Sep 20 09:53:19 xxxxxxxxx installd[1129]: PackageKit: ----- Begin install -----
Sep 20 09:53:19 xxxxxxxxx installd[1129]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Sep 20 09:53:19 xxxxxxxxx installd[1129]: PackageKit: packages=(
        "PKLeopardPackage <file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg>"
    )
Sep 20 09:53:19 xxxxxxxxx installd[1129]: PackageKit: Session UUID file exists - will not overwrite /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/801AA049-EC2E-4424-8D9A-417038EE9C25.activeSandbox
Sep 20 09:53:20 xxxxxxxxx installd[1129]: PackageKit: Extracting file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/801AA049-EC2E-4424-8D9A-417038EE9C25.activeSandbox/Root, uid=0)
Sep 20 09:53:29 xxxxxxxxx installd[1129]: PackageKit: prevent user idle system sleep
Sep 20 09:53:29 xxxxxxxxx installd[1129]: PackageKit: suspending backupd
Sep 20 09:53:29 xxxxxxxxx installd[1129]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.EvDn8h/Scripts/com.citrix.ICAClient.fQwHC7
Sep 20 09:53:29 xxxxxxxxx install_monitor[2018]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Sep 20 09:53:29 xxxxxxxxx installd[1129]: ./preinstall: No receipt for 'com.citrix.ICAClient' found at '/'.
Sep 20 09:53:29 xxxxxxxxx installd[1129]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/801AA049-EC2E-4424-8D9A-417038EE9C25.sandboxTrash for sandbox /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/801AA049-EC2E-4424-8D9A-417038EE9C25.activeSandbox
Sep 20 09:53:29 xxxxxxxxx installd[1129]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/801AA049-EC2E-4424-8D9A-417038EE9C25.activeSandbox/Root (3 items) to /
Sep 20 09:53:30 xxxxxxxxx installd[1129]: PackageKit: Executing script "./postinstall" in /private/tmp/PKInstallSandbox.EvDn8h/Scripts/com.citrix.ICAClient.fQwHC7
Sep 20 09:53:30 xxxxxxxxx installd[1129]: ./postinstall: Successfully collected Installer CEIP datapoints to file: /var/itadmin/Library/Application Support/Citrix Receiver/CEIP/CEIPInstaller.json
Sep 20 09:53:30 xxxxxxxxx installd[1129]: ./postinstall: Could not find domain for
Sep 20 09:53:30 --- last message repeated 1 time ---
Sep 20 09:53:30 xxxxxxxxx install_monitor[2018]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Sep 20 09:53:30 xxxxxxxxx installd[1129]: PackageKit: releasing backupd
Sep 20 09:53:30 xxxxxxxxx installd[1129]: PackageKit: allow user idle system sleep
Sep 20 09:53:30 xxxxxxxxx installd[1129]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Citrix_Receiver_12.6.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg, PKInstallPackageIdentifier=com.citrix.ICAClient, NSLocalizedDescription=An error occurred while running scripts from the package “Citrix_Receiver_12.6.pkg”.} {
        NSFilePath = "./postinstall";
        NSLocalizedDescription = "An error occurred while running scripts from the package U201cCitrix_Receiver_12.6.pkgU201d.";
        NSURL = "file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg";
        PKInstallPackageIdentifier = "com.citrix.ICAClient";
    }
Sep 20 09:53:30 xxxxxxxxx installd[1129]: PackageKit: Running idle tasks
Sep 20 09:53:30 xxxxxxxxx installer[2008]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Citrix_Receiver_12.6.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file://localhost/Library/Application%20Support/JAMF/Downloads/Citrix_Receiver_12.6.pkg#com.citrix.ICAClient.pkg, PKInstallPackageIdentifier=com.citrix.ICAClient, NSLocalizedDescription=An error occurred while running scripts from the package “Citrix_Receiver_12.6.pkg”.}
Sep 20 09:53:30 xxxxxxxxx installd[1129]: PackageKit: Removing client PKInstallDaemonClient pid=2008, uid=0 (/usr/sbin/installer)
Sep 20 09:53:30 xxxxxxxxx installd[1129]: PackageKit: Done with sandbox removals
Sep 20 09:53:31 xxxxxxxxx installer[2008]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance

It looks like (for me), the installation is running (the Citrix Receiver is in the Applications folder) but just the postinstall fails. Might that be?

Hopefully someone saw that before.

Thank you.
BR
Daniel

merps
Contributor III

@dpratl We were having this issue with Citrix Receiver 12.4+ also, and I finally had some time to get around to figuring it out.

There is an issue with the logic in the readInstallOptions() function that's part of the postinstall script.

Citrix is using:

INSTALLING_USER=$(stat -f "%Su" "$HOME")

But when it runs via jamf policy as root, the logs (/Library/Logs/ReceiverInstall.log) end up reporting "Installing as user: (0)" - this breaks the postinstall agent setup because the directory /Users/root doesn't exist.

The fix for me was to use:

pkgutil --expand /path/to/flat.pkg /path/to/expandedfolder

Then right click on the .pkg, "show package contents" & open the scripts/postinstall script with your favorite text editor.

Change line 96 (Receiver 12.7) to:

INSTALLING_USER=`python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "
");'`

Save the file. Then use:

pkgutil --flatten /path/to/expandedfolder /path/to/flatfixed.pkg

Now when the installer runs, it picks up on the logged-in user and is able to do all of the postinstall actions because the proper home directory is being used.

I'm sure there is a caveat to this approach for systems with multiple users, or when the install is performed without a user logged on, but the updated postinstall script has been working for our environment.

dpratl
Contributor II

Hi @merps,

That sounds amazing.
And yes, I have the folder /Users/root on my MacBook, thats why it was working on my computer.

It is working! Thank you very much!

BR
Daniel

gskibum
Contributor III

I've run across this a number of times. Adobe installers work perfectly on test boxes but fail with this same error on some production machines.

A 1000-watt light bulb lit up bright for me today when I was encountering this error. What seems to be hanging things up is when the policy is run from Self Service - while other Creative Cloud apps are running. Quit the apps and the policy successfully runs from Self Service.

Before this light bulb lit up, to get around this issue I would shift the policy trigger to Log Out instead of Self Service. Then it would run successfully from the very same install package. Now I see that if other Adobe apps are quit before running from Self Service, it works.

Perhaps there is a process that can be killed that will permit policies to run from Self Service while other Adobe apps are running.

Edit: Not all apps do this I have found. Today I added Lightroom and Animate to Self Service. Lightroom didn't have any issues with other Adobe apps being open when the policy was run, but Animate did.

el2493
Contributor II

Thanks @merps, I was having this problem with Citrix Receiver as well as Adobe Acrobat Reader DC (get the error message during install, even though both applications were installed correctly). I'm going to give this a try and then see if I can interpret it to fix the Adobe Reader issue.

macandcat
New Contributor III

I've been having this issue also - especially with patch management. Support has no idea what's wrong. All of the packages will install if used through normal policies. Absolute nonsense. Jamf is claiming there is no product issue. This needs to be escalated within Jamf ASAP.

jose_gocobachi
New Contributor II

"Installation failed. The installer reported: installer: Error trying to locate volume at /Volumes//" message is being produced when I am compiling a Configurations source via the Jamf Admin 10.1.1 app.

flampel
New Contributor

I can confirm that the issue is still unfixed in version 12.9.1 of Citrix Receiver - the line that needs to be changed is now in line 97 (just to be as precise as possible).

I can also confirm that the fix still works with this version. @merps, thank you again for sharing!

CorpIT_eB
Contributor II

Can confirm that the issue is still unfixed in version 14 of Parallels

Installation failed. The installer reported: installer: Package name is Parallels Autodeploy Package
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.)

Any new, news on this issue?

mhegge
Contributor II

So answer me this, why does it install fine on some computers and no on others?

Installation failed. The installer reported: installer: Package name is Citrix Workspace
installer: Upgrading at base path /
installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

mhegge
Contributor II

Adobe Acrobat

Installation failed. The installer reported: installer: Package name is Adobe Acrobat DC (Continuous)
installer: Upgrading at base path /
installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

taugust04
Valued Contributor

@mhegge: Judging by the fact that it states it's upgrading, it's it could be because the version you are trying to install is the same version, or an older version, than the version currently installed on the computer. I've seen this with Adobe Acrobat due to it's auto-updater running and updating the application, but Jamf Pro not knowing this is the case because a recon hasn't been run to report that update back for policy/patch management scoping purposes.

mhegge
Contributor II

@taugust04 From what I understand, both the Acrobat (download from Adobe Support ticket) and Citrix (download direct from website) packages are full installers, not upgrades, but I will check the machines getting the errors.

mhegge
Contributor II

We are now seeing this randomly on various packages and policies. Installs fin on some computer, but other IDENTICAL computers, we get:

installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

taugust04
Valued Contributor

@mhegge : I don't have any experience with the Citrix installer, but, my experience with the Acrobat installers is that they will fail if they try to install on a system that already has a version of Acrobat that is the same, or later build, than what is being installed. I think this has to do with some poor (or perhaps intended) logic in their install scripts which do much of the heavy lifting during the install process. This includes the full versions of the packages Adobe makes available, not just the upgrades. Ordinary, Apple packages built in a more standard way would just overwrite the files regardless of versions, but there is a lot of customization done by Adobe in their Apple .pkg bundles that can go sideways very quickly.

mhegge
Contributor II

I will see if that data correlated with what I have going on. Will involve a little research. I see it happening with a package created to update the AUSST information on Adobe CC installs. Seems to not like one of the faculty computers.

martenblank
New Contributor III

Thanks for a lot of input !

We're experiences the same problems with our Cirrato package (safe printing system).
Hope someone is coming up with something clever!

:)

rhooper
Contributor III

Greetings all, I am receiving the same error on many new packages, Chrome, FireFox, etc. This one happens to be VLC Player.
Error message in Self Service reads:
"Installation failed. The installer reported: installer: Package name is VLC Player 3.0.8
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.)"

Updating the old VLC from 2.2.4 to this version. Multiple devices, same error. Cleared the var/log/install.log Trust Level = 100 Says package is not signed. This was created with Composer.
I guess I need to ask, where in the process do I "sign" the package. I am thinking this may have something to do with Integrity Protections in the Catalina and Mojave OS's.
Any and all help or ideas are appreciated.
Thanks all

lalitha24
New Contributor II

I have been seeing this lately and there is nothing Jamf could say I have been working with them for over a month now does anyone has any known resolutions for this was anyone able to fix it?

gabester
Contributor III

I was seeing this a lot with pkgs that we install from cache where they get cached by a policy for all Macs in scope, then a smart group scoped to all Macs with the pkg cached should install it... there's naught to go by from the errors, but on a hunch I wrote a script that validates the checksum of the package and I run it on both the cache policy AFTER and the install cached pkg policy BEFORE... in all cases where I got this error the pkg did not successfully transfer as indicated by the script's checksum validation failing. Mind you, you may be experiencing this for different reasons in your environment.

Now if I could only get back the time I spent troubleshooting this and get http transfers working reliably. It seems like every time we get them working the server team upgrades the webserver and no one knows how to force the config to work again.

bobbyjohn
New Contributor II

Same issue. "The package is attempting to install content to the system volume."

canthony
New Contributor

Hi everyone,

I have the same error with Cybereason...only happening on ONE system.

I have a script to remove the existing instance of Cybereason and then install the newer version.
I even tried caching it and then installing the cached pkg but same error.
I also tried caching it and then using a script to execute the pkg from the Waiting Room directory, same error.

All other systems deployed fine with the policy to remove and the install the newer version, its just this one system!

Script result: installer: Package name is Cybereason Active Probe
installer: Upgrading at base path /
installer: The upgrade failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “Cybereason ActiveProbe v19.0.120.0.pkg”.)