Skip to main content
Solved

Error running script: return code was 2. while running script for ventura update


Forum|alt.badge.img+4

Hi,

Please check and suggest. 

getting the below error while running script for mac os ventura update

Error running script: return code was 2.

Install finished successfully Scanning for 13.0.1 installer Install finished successfully /Library/Application Support/JAMF/tmp/MacOSUpgrade.sh test 2: line 6: /Applications/Install macOS Ventura Beta.app.app/Contents/Resources/startosinstall: No such file or directory /Library/Application Support/JAMF/tmp/MacOSUpgrade.sh test 2: line 7: syntax error near unexpected token `|' /Library/Application Support/JAMF/tmp/MacOSUpgrade.sh test 2: line 7: `echo <password> |'/Applications/Install macOS Ventura Beta.app/Contents/Resources/startosinstall' --agreetolicense --nointeraction --forcequitapps --user <admin> --stdinpass'

Best answer by mickgrant


line 6: /Applications/Install macOS Ventura Beta.app.app/Contents/Resources/startosinstall: No such file or directory

 you probably have an issue here as well 

View original
Did this topic help you find an answer to your question?

4 replies

karthikeyan_mac
Forum|alt.badge.img+17
  • Honored Contributor
  • 281 replies
  • November 23, 2022

echo <password> |<space>'/Applications/Install macOS Ventura Beta.app/Contents/Resources/startosinstall'- try giving space after | in line 7.

Thanks.


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 23 replies
  • November 23, 2022
karthikeyan_mac wrote:

echo <password> |<space>'/Applications/Install macOS Ventura Beta.app/Contents/Resources/startosinstall'- try giving space after | in line 7.

Thanks.


Thanks, will try


mickgrant
Forum|alt.badge.img+12
  • Contributor
  • 140 replies
  • Answer
  • November 23, 2022

line 6: /Applications/Install macOS Ventura Beta.app.app/Contents/Resources/startosinstall: No such file or directory

 you probably have an issue here as well 


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 23 replies
  • December 6, 2022
mickgrant wrote:

line 6: /Applications/Install macOS Ventura Beta.app.app/Contents/Resources/startosinstall: No such file or directory

 you probably have an issue here as well 


thanks. Now i am getting the below error. unable to get authorize. even though entered admin user name password

Install finished successfully Error: failed to authorize for installation. Provide a password with --stdinpass or --passprompt. By using the agreetolicense option, you are agreeing that you have run this tool with the license only option and have read and agreed to the terms. If you do not agree, press CTRL-C and cancel this process immediately.

 

#!/bin/bash
softwareupdate --list-full-installers | grep 'macOS' | awk '{print ++count " " $0}'
softwareupdate --list-full-installers
softwareupdate --fetch-full-installer
softwareupdate --fetch-full-installer --full-installer-version 13.0.1
echo $pass | '/Applications/Install macOS Ventura.app/Contents/Resources/startosinstall' --user $admin --stdinpass --agreetolicense --nointeraction --forcequitapps


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings