Posted on 07-05-2018 09:48 AM
Just upgraded to Jamf Pro 10.5. When I run a quickadd.pkg or enroll via Jamf Recon, everything works perfectly except running jamf commands from the terminal. I run any of the following commands the terminal returns with "sudo: jamf: comand not found":
sudo jamf recon
sudo jamf policy
sudo jamf enroll -prompt
sudo jamf manage
Solved! Go to Solution.
Posted on 07-05-2018 12:29 PM
This may be linked to the issue in the link below. We ran into this in 10.4 and now 10.5. Editing the postinstall script that is built into the QuickAdd resolved the issue for us.
https://www.jamf.com/jamf-nation/discussions/28097/jamf-pro-10-4-and-quick-add-package-bug
Posted on 07-06-2018 04:57 AM
@MTurnerFMRCO Your method is the solution. I couldn't get this to work at first because the framework from the corrupted installation was still there. Once I manually removed the framework from the corrupted installation, the Quickadd.pkg started working. The Quikadd.pkg works every time on fresh 10.13.5 installations.
Posted on 07-05-2018 09:51 AM
you have to add the path to the binary: sudo usr/local/bin/jamf recon
Posted on 07-05-2018 11:11 AM
@Sandy is this new in 10.5? I've never had to run any Jamf commands in that manner.
Posted on 07-05-2018 11:34 AM
Have you confirmed that the jamf binary is installed correctly on the devices where you're seeing this happening?
Posted on 07-05-2018 11:36 AM
haver you tried
which jamf
this will let you know if it's installed.
Posted on 07-05-2018 12:08 PM
I had the same issue, because this directory did not exist:
/usr/local/bin/
Just run this command as root user and it will fix this issue:
mkdir -p /usr/local/bin/ && /usr/local/jamf/bin/jamf policy
The jamf binary will then be linked again to
/usr/local/bin/jamf
Posted on 02-06-2024 09:28 AM
I have tried but no help.
Posted on 07-05-2018 12:29 PM
This may be linked to the issue in the link below. We ran into this in 10.4 and now 10.5. Editing the postinstall script that is built into the QuickAdd resolved the issue for us.
https://www.jamf.com/jamf-nation/discussions/28097/jamf-pro-10-4-and-quick-add-package-bug
Posted on 07-05-2018 02:31 PM
@anverhousseini your method worked. The quick add seems to be having trouble creating the /usr/local/bin/ directory for some reason. I've tried @MTurnerFMRCO 's fix, but the QuickAdd.pkg seems to create an alias for /usr/local/bin instead of a directory. I'm going to try to combine the two methods to resolve the issue. Thanks for pointing me in the right direction.
Posted on 07-06-2018 04:57 AM
@MTurnerFMRCO Your method is the solution. I couldn't get this to work at first because the framework from the corrupted installation was still there. Once I manually removed the framework from the corrupted installation, the Quickadd.pkg started working. The Quikadd.pkg works every time on fresh 10.13.5 installations.
Posted on 07-11-2018 10:24 AM
This is really not good, Jamf. I am on a deadline, and a JSS that WAS working now doesn't.
I can't get the above to work, and I don't understand how this has carried over from prior rev's to 10.5.0?
Going to have to open a ticket if I can't get it resolved.
Posted on 07-11-2018 10:45 AM
@scottb Of course, you should open a ticket!
Posted on 09-17-2018 11:45 AM
I just ran into this issue. Running the latest Quickadd we had did not fix it until I removed the bad link bin link at /usr/local/bin using the RM command. After that I re-ran Quickadd and it was re-created correctly. We are currently on 10.5.0.
Posted on 09-28-2018 10:12 AM
This is still an issue with 10.7.1. I was able to fix it with @anverhousseini 's suggestion.
Posted on 09-28-2018 12:33 PM
We had the same issue when we upgraded our Test JSS to 10.5 (along with Self Service not being installed). We upgraded our Test JSS to 10.7.1 and both issues were fixed. JAMF support is aware of the issue, apparently no one does final quality control anymore.