Skip to main content
Question

Script result: installer: Error - the package path specified was invalid:

  • August 5, 2021
  • 5 replies
  • 35 views

Forum|alt.badge.img+5

We have been deploying the sdl license adobe pkgs by attaching local USB storage then running a script post imaging. 

#!/bin/sh

/usr/sbin/installer -pkg /Volumes/Deploy/Fa21BaseFTVM1Install.pkg -target /

Not using imaging now but in testing this with jamf remote doesn't work:


Script result: installer: Error - the package path specified was invalid: '/Volumes/Deploy/Fa21BaseFTVM1Install.pkg'

if running the command locally via terminal it works. Any ideas? Do remotely invoked commands not have access to removable storage?

5 replies

junjishimazaki
Forum|alt.badge.img+10

Since all policies from Jamf run as root, it's possible that the script can't be run as root. So, to test this theory out, run the script as the user

To run as a user:

#Get logged in user

curUser="`stat -f%Su /dev/console`"

#run script as user

sudo -u $curUser ENTERYOURSCRIPTHERE


Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 7, 2021

Since all policies from Jamf run as root, it's possible that the script can't be run as root. So, to test this theory out, run the script as the user

To run as a user:

#Get logged in user

curUser="`stat -f%Su /dev/console`"

#run script as user

sudo -u $curUser ENTERYOURSCRIPTHERE


Will try this. However noticed this error only happens on our big sur M1 systems. wondering if it might be an enhanced security setting.

 


junjishimazaki
Forum|alt.badge.img+10

Did you install Rosetta? If I remember correctly, Rosetta is required to install packages


Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 12, 2021

Did you install Rosetta? If I remember correctly, Rosetta is required to install packages


Thanks yes rosetta was installed


Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 12, 2021

Turns out that even after enrollment sshd-keygen-wrapper did not have full disk access.

Changed privacy settings to enable