Does anyone know the correct Bash command to upgrade to Big Sur?
I tried using "/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction" but it just hangs.
/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction
Remove your quotes & make sure that you are placing the installer in applications folder- If that is your intention
Sorry, I added the quotes in the post by default. In the actual Policy - Policies > Files and Processes > Execute Command > /Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction
Jamf 10.23.0
Taking jam out of the picture- If you run it manually in an elevated terminal window- what's your output?
when run with /Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction = prompts for password
when run with sudo /Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction = runs (upgrades) with no issues
I find that opening the installer app for the first time takes ages, it’ll just bounce in the dock and terminal command to it also hang.
Not sure if the app on first load does some verification steps to Apple, once it opens I then find terminal commands work instantly.
Looks like that startosinstaller has added flags for --user
, --passprompt
, and --stdinpass
so in the command would be /Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction --user <admin acct> --stdinpass <admin pwd>?
Regarding what @Cayde-6 mentioned, see: https://babodee.wordpress.com/2020/11/05/waiting-for-the-macos-big-sur-installer-to-launch/. That could have something to do with your delay, possibly?
Bold move on the upgrading day after release. Haha
I am using "/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall" --applicationpath "/Applications/Install macOS Big Sur.app" --rebootdelay 0 --nointeraction --agreetolicense &
It works but it does not close Self Service, I had to do that and manually restart
Add in the --forcequitapp flag into your command
Also shouldn't need the --applicationpath
any more, it's use was deprecated in Mojave.
/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --nointeraction --agreetolicense --forcequitapps
@mrorrer That's --forcequitapps
, and when you use that option there's no need to kill Self Service
@sgiesbrecht I follow your steps but had encounter this "Helper Tool Crashed".
Anyone already resolved this error?
@tdcxmanila This is the command I used
/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction
I created 2 policies
Policy 1
- deploy the Staging file (Install macOS Big Sur.app) to the Application
Policy 2
- check to see if the Staging file is there
- if there, run under Files and Process > Execute Command
/Applications/Install macOS Big Sur.app/Contents/Resources/startosinstall --agreetolicense --forcequitapps --nointeraction
Hi @atomczynski ,
What you can do is create a Smart Group that contains the computers with the installer then run a policy to start the install based on that group.
Anyone received this kind of error?
Isn't there a way to upgrade from Catalina to Big Sur via
softwareupdate --fetch-full-installer
?
@j.meister The following should work (now):/usr/sbin/softwareupdate --fetch-full-installer --full-installer-version 11.0.1
@sgiesbrecht In case you haven't already seen @kc9wwh's macOSUpgrade.
Hi Dan,
thanks for the hint but I already tried that and get below error every time.
admin@WILAMAC00 ~ % /usr/sbin/softwareupdate --fetch-full-installer --full-installer-version 11.0.1
Downloading and installing 11.0.1 installer
SUPreferenceManager: Failed to set object of class: __NSCFConstantString for key: LastRecommendedMajorOSBundleIdentifier with error: Error Domain=SUPreferenceManagerErrorDomain Code=1 "(null)"
SUPreferenceManager: Failed to set object of class: __NSCFConstantString for key: LastRecommendedMajorOSBundleIdentifier with error: Error Domain=SUPreferenceManagerErrorDomain Code=1 "(null)"
Install failed with error: Update not available
I am running macOS 10.15.7 (Build 19H15) on the machine and also tried it with sudo but that didn't help either. The machine is an iMac (Mid 2017).
Any more ideas?
@atomczynski
@dan-snelson Thanx for the "@kc9wwh's macOSUpgrade" information. I am going to try for the next upgrade
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.