Skip to main content
Question

Problem while running script for os update 12.6.1


Forum|alt.badge.img+4

Hi 

Getting error while running the below script for getting the macosmonterey installer in applications

Please suggest what i am missing here

#!/bin/bash
softwareupdate --list-full-installers | grep 'macOS' | awk '{print ++count " " $0}'
softwareupdate --list-full-installers
softwareupdate --fetch-full-installer --full-installer-version 12.6.1

 

Install failed with error: Installation failed Error Domain=PKDownloadError Code=8 "(null)" UserInfo={NSUnderlyingError=0x6000032f45a0 {Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://swcdn.apple.com/content/downloads/36/13/012-90254-A_BJQ1VMPD44/z225i7bzise31eo21e4kgfkafz7zq0q9tu/InstallAssistant.pkg, NSErrorFailingURLKey=https://swcdn.apple.com/content/downloads/36/13/012-90254-A_BJQ1VMPD44/z225i7bzise31eo21e4kgfkafz7zq0q9tu/InstallAssistant.pkg, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <F5729777-F5DD-4264-AE21-A87B94ACA121>.<1>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <F5729777-F5DD-4264-AE21-A87B94ACA121>.<1>, NSLocalizedDescription=cancelled}}}

Error running script: return code was 1.

 

 

2 replies

Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • December 1, 2022

Anyone found solution for this?


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

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