Git Product home page Git Product logo

macadmin-scripts's Introduction

Munki

Managed software installation for macOS

Introduction

Munki is an open source project originated by Walt Disney Animation Studios.

Munki is a set of tools that, used together with a webserver-based repository of packages and package metadata, can be used by macOS administrators to manage software installs (and in many cases removals) on macOS client machines.

Munki can install software packaged in the Apple package format and software distributed in "drag-and-drop" disk images.

Additionally, Munki can install many Apple Software Updates on Intel Macs, and can prompt users to install pending Apple updates on both Intel and Apple silicon.

Munki is currently in use at organizations all over the world, managing software for tens of thousands -- perhaps hundreds of thousands of Macs.

Get started

Get started with Munki here: Getting Started with Munki

Check out the Wiki for some notes and documentation, and browse and/or check out the source. See the releases page for pre-built installer packages of supported releases.

Some video learning resources are here.

Get help

The wiki is an in-depth resource: https://github.com/munki/munki/wiki
Frequently Asked Questions are here: https://github.com/munki/munki/wiki/FAQ

If you have additional questions, or need even more help getting started, post a question to munki-discuss. Please don't post support questions as comments on wiki documentation pages, or as GitHub code issues.

Issues with MunkiWebAdmin should be discussed in its group: munki-web-admin.

macadmin-scripts's People

Contributors

aysiu avatar call avatar carlashley avatar craig65535 avatar discentem avatar erikng avatar gregneagle avatar natewalck avatar scheblein avatar shinjukumiku avatar timsutton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

macadmin-scripts's Issues

Issue when trying to download MacOS big sure

Making empty sparseimage... installer: Package name is macOS Beta installer: Installing at base path /private/tmp/dmg.x3jwRS installer: The install was successful. Adding seeding program DeveloperSeed extended attribute to app Product downloaded and installed to /Users/davide/Downloads/macadmin-scripts-main/Install_macOS_10.16-20A4299v.sparseimage Making read-only compressed disk image containing Install macOS Beta.app... ........................................................................ hdiutil: create failed - errore interno Command '[u'/usr/bin/hdiutil', u'create', u'-fs', u'HFS+', u'-srcfolder', u'/private/tmp/dmg.x3jwRS/Applications/Install macOS Beta.app', u'./Install_macOS_10.16-20A4299v.dmg']' returned non-zero exit status 1

High Sierra Build 17G2307

Thanks a lot for your work. I have an issue that the 2018 MacBook Pro I have has been updated to the Supplemental update 2 and now macOS is 10.13.6 Build 17G2307 and I can't find that specific build when I run your script. your help is much appreciated.

Best,
Hazem

Error while running scripts from InstallESDDmg.pkg

Running on Catalina 10.15.5, trying to acquire 10.15.5, getting this failure:

Making empty sparseimage...
installer: Package name is macOS Catalina
installer: Installing at base path /private/tmp/dmg.wgl4HX
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “InstallESDDmg.pkg”.)
Command '[u'/usr/sbin/installer', u'-pkg', u'./content/downloads/22/25/061-70033-A_0AY28AEJF9/am7836x4645ittkll95lsmfk166h9yeivs/061-70033.English.dist', u'-target', '/private/tmp/dmg.wgl4HX']' returned non-zero exit status 1
Product installation failed.

Feature Request: Be able to specify title of OS

I am looking at creating a docker image that would help automate keeping our installers and upgrade scripts to the latest version Apple provides.

I was thinking of a few CLI flags like --os-name Mojave and then --latest would grab the most recent post dated version of that OS.

example: installinstallmacos.py --catalogurl https:/swscan.apple.com/.../.../... --seedprogram CustomerSeed --os-name Mojave --latest
The above command will automatically assume I want Mojave, grab all versions of "Mojave" and not "Mojave Beta" and then compare the post dates for the most recent version and use that.

The whole objective here is for it to be automation friendly.

Error reading catalog

Error reading ./content/catalogs/others/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog: unclosed token: line 4512, column 20

Non-Zero Exit Status: 35 (Catlina 10.15.2 Beta 2)

Command:

sudo ./installinstallmacos.py --catalogurl https://swscan.apple.com/content/catalogs/others/index-10.15customerseed-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz --workdir ./macOS\ Installers/

STDOUT:

Downloading https://swscan.apple.com/content/catalogs/others/index-10.15customerseed-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz...
Downloading http://swcdn.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist...
Could not replicate https://swdist.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist: Command '[u'/usr/bin/curl', u'-sfL', u'--create-dirs', u'-o', u'./macOS Installers/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist', u'-z', u'./macOS Installers/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist', 'https://swdist.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist']' returned non-zero exit status 35
Downloading http://swcdn.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/061-26578.English.dist...
Downloading http://swcdn.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist...
Could not replicate https://swdist.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist: Command '[u'/usr/bin/curl', u'-sfL', u'--create-dirs', u'-o', u'./macOS Installers/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist', u'-z', u'./macOS Installers/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist', 'https://swdist.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist']' returned non-zero exit status 35
Downloading http://swcdn.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist...
Could not replicate https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist: Command '[u'/usr/bin/curl', u'-sfL', u'--create-dirs', u'-o', u'./macOS Installers/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist', u'-z', u'./macOS Installers/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist', 'https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist']' returned non-zero exit status 35
Downloading http://swcdn.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist...
Downloading http://swcdn.apple.com/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/061-44345.English.dist...
Could not replicate https://swdist.apple.com/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/061-44345.English.dist: Command '[u'/usr/bin/curl', u'-sfL', u'--create-dirs', u'-o', u'./macOS Installers/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/061-44345.English.dist', u'-z', u'./macOS Installers/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/061-44345.English.dist', 'https://swdist.apple.com/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/061-44345.English.dist']' returned non-zero exit status 35
Downloading http://swcdn.apple.com/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/041-83630.English.dist...
Could not replicate https://swdist.apple.com/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/041-83630.English.dist: Command '[u'/usr/bin/curl', u'-sfL', u'--create-dirs', u'-o', u'./macOS Installers/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/041-83630.English.dist', u'-z', u'./macOS Installers/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/041-83630.English.dist', 'https://swdist.apple.com/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/041-83630.English.dist']' returned non-zero exit status 35
Downloading http://swcdn.apple.com/content/downloads/16/53/061-45871-A_X87T6CILQ4/d3zi0ag6voifghf4jwvkl0tfosa0b2j86r/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/16/53/061-45871-A_X87T6CILQ4/d3zi0ag6voifghf4jwvkl0tfosa0b2j86r/061-45871.English.dist...
Could not replicate https://swdist.apple.com/content/downloads/16/53/061-45871-A_X87T6CILQ4/d3zi0ag6voifghf4jwvkl0tfosa0b2j86r/061-45871.English.dist: Command '[u'/usr/bin/curl', u'-sfL', u'--create-dirs', u'-o', u'./macOS Installers/content/downloads/16/53/061-45871-A_X87T6CILQ4/d3zi0ag6voifghf4jwvkl0tfosa0b2j86r/061-45871.English.dist', u'-z', u'./macOS Installers/content/downloads/16/53/061-45871-A_X87T6CILQ4/d3zi0ag6voifghf4jwvkl0tfosa0b2j86r/061-45871.English.dist', 'https://swdist.apple.com/content/downloads/16/53/061-45871-A_X87T6CILQ4/d3zi0ag6voifghf4jwvkl0tfosa0b2j86r/061-45871.English.dist']' returned non-zero exit status 35
 #    ProductID    Version    Build   Post Date  Title
 1    041-91758    10.13.6    17G66  2019-10-19  macOS High Sierra
Traceback (most recent call last):
  File "./installinstallmacos.py", line 596, in <module>
    main()
  File "./installinstallmacos.py", line 527, in main
    product_info[product_id]['BUILD'],
KeyError: u'BUILD'```

hdutil: create failed - Resource busy

installmacosinstall.py is giving the following error:

Product downloaded and installed to /Users//Install_macOS_10.15.1-19B88.sparseimage
Making read-only compressed disk image containing Install macOS Catalina.app...
...............................................................................................................................
hdiutil: create failed - Resource busy
Command '[u'/usr/bin/hdiutil', u'create', u'-fs', u'HFS+', u'-srcfolder', u'/private/tmp/dmg.Td0UZK/Applications/Install macOS Catalina.app', u'./Install_macOS_10.15.1-19B88.dmg']' returned non-zero exit status 1

returned non-zero exit status 1

Hello, I have mac os catalina and I want to download high sierra from installinstallmacos.py. When I run it and after choosing the high sierra, it downloads some files and after that it shows

Making empty sparseimage...
installer: Error - ERROR_2062F74259
Command '[u'/usr/sbin/installer', u'-pkg', u'./content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist', u'-target', '/private/tmp/dmg.sb5uza']' returned non-zero exit status 1
Product installation failed.

Could you please help me?

No options for Mojave beta

Currently I see these options output from the installinstallmacos script:

1 041-47723 10.14.4 18E2034 2019-03-25 macOS Mojave 2 091-95155 10.13.6 17G66 2019-01-08 macOS High Sierra 3 041-49229 10.14.4 18E226 2019-03-25 macOS Mojave

I'm looking for 10.14.5 beta. Thoughts?

error?

Traceback (most recent call last):
File "installinstallmacos.py", line 599, in
main()
File "installinstallmacos.py", line 468, in main
'are %s.' % ', '.join(get_seeding_programs()))
File "installinstallmacos.py", line 117, in get_seeding_programs
seed_catalogs = read_plist(SEED_CATALOGS_PLIST)
File "installinstallmacos.py", line 77, in read_plist
with open(filepath, "rb") as fileobj:
IOError: [Errno 2] No such file or directory: u'/System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/SeedCatalogs.plist'

Can't create spare image

Hi,
Executing the script do download latest High Sierra ( 2 091-95774 10.13.6 17G2208 2018-07-30 macOS High Sierra) under Mojave failed with the following error message:

Making empty sparseimage... installer: Error - ERROR_2062F74259 Command '['/usr/sbin/installer', '-pkg', '/Users/Shared/Scripts/content/downloads/07/20/091-95774/awldiototubemmsbocipx0ic9lj2kcu0pt/091-95774.English.dist', '-target', '/private/tmp/dmg.LeF6Ya']' returned non-zero exit status 1

Working Directory looks good.

Manual Execution showing the same issue:
/usr/sbin/installer -pkg /Users/Shared/Scripts/content/downloads/07/20/091-95774/awldiototubemmsbocipx0ic9lj2kcu0pt/091-95774.English.dist -target /private/tmp/dmg.LeF6Ya installer: Error - ERROR_2062F74259

Perhaps you have an idea?

Thanks and BR,
Daniel

Getting Invalid XML & 'UNKNOWN' build numbers

Tried when current working directly as ~ and /Users/Shared/ but in both cases produced the following output.

This is on macOS 10.15.6 (19G2021)

Mac:~ admin$ sudo installinstallmacos.py --compress
Downloading https://swscan.apple.com/content/catalogs/others/index-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog...
Downloading http://swcdn.apple.com/content/downloads/59/18/001-15219-A_EE9FN7UHJA/efuz3h0zlmx4qlinf4bxlguigo9jvhcr55/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/59/18/001-15219-A_EE9FN7UHJA/efuz3h0zlmx4qlinf4bxlguigo9jvhcr55/001-15219.English.dist...
Invalid XML in ./content/downloads/59/18/001-15219-A_EE9FN7UHJA/efuz3h0zlmx4qlinf4bxlguigo9jvhcr55/001-15219.English.dist
Downloading http://swcdn.apple.com/content/downloads/41/56/061-94403-A_5AM6QB8TGK/ijdhki76d4rw19t579eblaqc26ngzlhu1p/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/56/061-94403-A_5AM6QB8TGK/ijdhki76d4rw19t579eblaqc26ngzlhu1p/061-94403.English.dist...
Invalid XML in ./content/downloads/41/56/061-94403-A_5AM6QB8TGK/ijdhki76d4rw19t579eblaqc26ngzlhu1p/061-94403.English.dist
Downloading http://swcdn.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist...
Invalid XML in ./content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist
Downloading http://swcdn.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/061-26578.English.dist...
Invalid XML in ./content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/061-26578.English.dist
Downloading http://swcdn.apple.com/content/downloads/23/45/001-36735-A_IRCLJ5YYKF/z8vka6xfykydycui5b7atpc52btxmbffdn/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/23/45/001-36735-A_IRCLJ5YYKF/z8vka6xfykydycui5b7atpc52btxmbffdn/001-36735.English.dist...
Invalid XML in ./content/downloads/23/45/001-36735-A_IRCLJ5YYKF/z8vka6xfykydycui5b7atpc52btxmbffdn/001-36735.English.dist
Downloading http://swcdn.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist...
Invalid XML in ./content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist
Downloading http://swcdn.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist...
Invalid XML in ./content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist
Downloading http://swcdn.apple.com/content/downloads/01/28/061-86291-A_JPEIWIOZES/enpozvvbmj3mj2dhulhevlt8b429qd5kw0/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/01/28/061-86291-A_JPEIWIOZES/enpozvvbmj3mj2dhulhevlt8b429qd5kw0/061-86291.English.dist...
Invalid XML in ./content/downloads/01/28/061-86291-A_JPEIWIOZES/enpozvvbmj3mj2dhulhevlt8b429qd5kw0/061-86291.English.dist
Downloading http://swcdn.apple.com/content/downloads/10/06/001-36801-A_9MBEQ97Z9M/672a1q4u8978ize3s15ygivp2dqwmk10qb/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/10/06/001-36801-A_9MBEQ97Z9M/672a1q4u8978ize3s15ygivp2dqwmk10qb/001-36801.English.dist...
Invalid XML in ./content/downloads/10/06/001-36801-A_9MBEQ97Z9M/672a1q4u8978ize3s15ygivp2dqwmk10qb/001-36801.English.dist
Downloading http://swcdn.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist...
Invalid XML in ./content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist
Downloading http://swcdn.apple.com/content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/001-04366.English.dist...
Invalid XML in ./content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/001-04366.English.dist
 #      ProductID    Version    Build   Post Date  Title
 1      001-15219    10.15.5  UNKNOWN  2020-06-15  macOS Catalina
 2      001-04366    10.15.4  UNKNOWN  2020-05-04  macOS Catalina
 3      041-91758    10.13.6  UNKNOWN  2019-10-19  macOS High Sierra
 4      041-88800    10.14.4  UNKNOWN  2019-10-23  macOS Mojave
 5      061-26589    10.14.6  UNKNOWN  2019-10-14  macOS Mojave
 6      001-36735    10.15.6  UNKNOWN  2020-08-06  macOS Catalina
 7      061-94403    10.15.6  UNKNOWN  2020-07-15  macOS Catalina
 8      061-86291    10.15.3  UNKNOWN  2020-03-23  macOS Catalina
 9      041-90855    10.13.5  UNKNOWN  2019-10-23  Install macOS High Sierra Beta
10      061-26578    10.14.5  UNKNOWN  2019-10-14  macOS Mojave
11      001-36801    10.15.6  UNKNOWN  2020-08-12  macOS Catalina

Not grabbing full image for Big Sur beta 2

I used this script successfully for beta 1, however now when I attempt to download beta 2 it's only getting a 155 MB .dmg. Opening the installer shows a message saying there's important content missing that can't be downloaded:

Screen Shot 2020-07-08 at 2 23 16 PM

Is it perhaps grabbing the "online" version instead of the full version of the image?

Could not find a default catalog url for this OS version.

Hello
I have downloaded the 22 MB installer of Mac OS High Sierra on my Sierra VM.
And I tried this command:
sudo ./installinstallmacos.py
And I got this error:
Could not find a default catalog url for this OS version.

Is it because the VM is not capable of running High Sierra? Is that why I'm getting this error?
How can I achieve a working full 4.5+ GB installer of High Sierra which I'm gonna use as a VM and also install on my Macbook Pro Late 2011?

Thanks very much :)

Add "--limit-rate " option to curl. Download-only option not needing sudo in installinstallmacos.py

2 really trivial feature requests

  • (1.) Add something like a --download-only option (which also implies sudo is not needed)
    If I just want to download installers, and not create a disk-image, sudo is not needed it seems. I just commented out these lines 493-495 and as non-admin/non-sudo user, all downloads proceed ok. Of course then it bombs out when it trys to create an image but that's ok cause I did not want the disk-image, just the download.
#    if os.getuid() != 0:
#        sys.exit('This command requires root (to install packages), so please '
#                 'run again with sudo or as root.')
  • (2.) Add limit-rate option passed to curl_cme
    Also, for folks like home-users with slow internet, could we add a --limit-rate option to pass to the curl_cmd which seems to slow downloads to 100k/sec in example below.
    curl_cmd = ['/usr/bin/curl', options, '--limit-rate', ' 100k', '--create-dirs',
                '-o', local_file_path]

The curl command used in installinstallmacos.py seems to be able to resume partial-downloads from where it left off. So, with the limit-rate the download of the 6+gig mojave installer could be spread-out over a few days to save bandwidth for zoom, etc.
Finally, If you want me to fork and do a request let me know, but I really don't know python at all ;-). Or maybe I should submit these feature requests to https://github.com/grahampugh/macadmin-scripts

installinstallmacos - Downloading Mojave 18a391 results in device being enrolled in Developer Program

I used the script to download the mojave installer (from both 10.13 and 10.14), then put it into jamf composer to drop into the applications folder for our upgrade process. Everything installs and is fine except that the machines are then enrolled in the developer program. Confirmed on the jamf nation boards that at least one other person is seeing similar behavior.

I downloaded the installed from the mac app store and ran it through jamf composer and then through the upgrade package and the machine was not enrolled in the beta.

screen shot 2018-10-01 at 10 57 59 am

screen shot 2018-10-01 at 10 58 14 am

installinstallmacos.py fails on 10.13.6 with Mojave release

Related to issue #3 (installation failed)

Making empty sparseimage... installer: Error - ERROR_F236DD3E91 Command '['/usr/sbin/installer', '-pkg', './content/downloads/49/44/041-08708/vtip954dc6zbkpdv16iw18jmilcqdt8uot/041-08708.English.dist', '-target', '/private/tmp/dmg.NrDwGz']' returned non-zero exit status 1

Error when building read-only disk image w/ --compress

Have now tried this twice with 10.15.3 on a MacBook Air running 10.15.2 and I get the same error:

sudo python /Users/admin/Downloads/macadmin-scripts-master/installinstallmacos.py --compress
Password:
Sorry, try again.
Password:
Downloading https://swscan.apple.com/content/catalogs/others/index-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog...
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/061-44387.English.dist...
Downloading http://swcdn.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist...
Downloading http://swcdn.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/061-26578.English.dist...
Downloading http://swcdn.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist...
Downloading http://swcdn.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist...
Downloading http://swcdn.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist...
 #    ProductID    Version    Build   Post Date  Title
 1    041-91758    10.13.6    17G66  2019-10-19  macOS High Sierra
 2    041-88800    10.14.4  18E2034  2019-10-23  macOS Mojave
 3    061-26589    10.14.6   18G103  2019-10-14  macOS Mojave
 4    061-44387    10.15.3    19D76  2020-01-28  macOS Catalina
 5    041-90855    10.13.5   17F66a  2019-10-23  Install macOS High Sierra Beta
 6    061-26578    10.14.5  18F2059  2019-10-14  macOS Mojave

Choose a product to download (1-6): 4
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/MajorOSInfo.pkg...
** Resuming transfer from byte position 1904880
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/MajorOSInfo.pkm...
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/InstallESDDmg.pkg...
** Resuming transfer from byte position 7655330578
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/InstallESDDmg.pkm...
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/BaseSystem.dmg...
** Resuming transfer from byte position 496564661
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/InstallInfo.plist...
** Resuming transfer from byte position 1584
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/BaseSystem.chunklist...
** Resuming transfer from byte position 2020
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/OSInstall.mpkg...
** Resuming transfer from byte position 799373
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/RecoveryHDMetaDmg.pkg...
** Resuming transfer from byte position 498263316
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/RecoveryHDMetaDmg.pkm...
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/InstallESDDmg.chunklist...
** Resuming transfer from byte position 26608
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/AppleDiagnostics.dmg...
** Resuming transfer from byte position 3054562
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/AppleDiagnostics.chunklist...
** Resuming transfer from byte position 328
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/InstallAssistantAuto.pkg...
** Resuming transfer from byte position 10817859
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/InstallAssistantAuto.pkm...
Making empty sparseimage...
installer: Package name is macOS Catalina
installer: Installing at base path /private/tmp/dmg.fzHqe8
installer: The install was successful.
*********************************************************
*** Working around a very dumb Apple bug in a package ***
*** postinstall script that fails to correctly target ***
*** the Install macOS.app when installed to a volume  ***
*** other than the current boot volume.               ***
***       Please file feedback with Apple!            ***
*********************************************************
Product downloaded and installed to /Users/admin/Install_macOS_10.15.3-19D76.sparseimage
Making read-only compressed disk image containing Install macOS Catalina.app...
........................................................................
hdiutil: create failed - internal error
Command '[u'/usr/bin/hdiutil', u'create', u'-fs', u'HFS+', u'-srcfolder', u'/private/tmp/dmg.fzHqe8/Applications/Install macOS Catalina.app', u'./Install_macOS_10.15.3-19D76.dmg']' returned non-zero exit status 1

Failing to create sparse image...

Script didn't work several times with the following output:

Making empty sparseimage...
installer: Package name is macOS Mojave
installer: Installing at base path /private/tmp/dmg.T0Ygmn
2019-08-11 07:51:41.692 installer[3344:303436] Package /Volumes/LIB_[1Tb]/OS_X_Archive/content/downloads/16/00/041-94412/t6w6bldyviccosh24jj36g9dy7t7jly9sy/InstallESDDmg.pkg uses a deprecated pre-10.2 format (or uses a newer format but is invalid).
installer: The install failed (The Installer could not install the software because there was no software found to install.)
Command '[u'/usr/sbin/installer', u'-pkg', u'/Volumes/LIB_[1Tb]/OS_X_Archive/content/downloads/16/00/041-94412/t6w6bldyviccosh24jj36g9dy7t7jly9sy/041-94412.English.dist', u'-target', '/private/tmp/dmg.T0Ygmn']' returned non-zero exit status 1
Product installation failed.


Corresponding chunk of '/var/log/install.log' :

Aug 11 07:51:41 german-MacPro51 installer[3344]: -[IFDInstallController(Private) buildInstallPlanReturningError:]: location = file://localhost
Aug 11 07:51:41 german-MacPro51 installer[3344]: -[IFDInstallController(Private) buildInstallPlanReturningError:]: file://localhost/Volumes/LIB%5B1Tb%5D/OS_X_Archive/content/downloads/16/00/041-94412/t6w6bldyviccosh24jj36g9dy7t7jly9sy/InstallAssistantAuto.pkg
Aug 11 07:51:41 german-MacPro51 installer[3344]: -[IFDInstallController(Private) buildInstallPlanReturningError:]: file://localhost/Volumes/LIB%5B1Tb%5D/OS_X_Archive/content/downloads/16/00/041-94412/t6w6bldyviccosh24jj36g9dy7t7jly9sy/InstallESDDmg.pkg
Aug 11 07:51:41 german-MacPro51 installer[3344]: -[IFDInstallController(Private) buildInstallPlanReturningError:]: file://localhost/Volumes/LIB%5B1Tb%5D/OS_X_Archive/content/downloads/16/00/041-94412/t6w6bldyviccosh24jj36g9dy7t7jly9sy/RecoveryHDMetaDmg.pkg
Aug 11 07:51:41 german-MacPro51 installer[3344]: Set authorization level to root for session
Aug 11 07:51:41 german-MacPro51 installer[3344]: Administrator authorization granted.
Aug 11 07:51:41 german-MacPro51 installer[3344]: Package file://localhost/Volumes/LIB
%5B1Tb%5D/OS_X_Archive/content/downloads/16/00/041-94412/t6w6bldyviccosh24jj36g9dy7t7jly9sy/InstallESDDmg.pkg not supported by PK
Aug 11 07:51:41 german-MacPro51 installer[3344]: Unable to use PK session due to incompatible packages. Terminating.
Aug 11 07:51:41 german-MacPro51 installer[3344]: Install failed: The Installer could not install the software because there was no software found to install.


Machine:
Screen Shot 2019-08-11 at 10 06 54
Screen Shot 2019-08-11 at 10 07 18

So, what might be the cause?

Product installation failed installer: Error - ERROR_2062F74259

I get the following error:

installer: Error - ERROR_2062F74259

** Resuming transfer from byte position 2865969
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/12/40/091-95155/piv8296jbzadg8qb5m3gatbllz60d2flsw/InstallESDDmg.pkg...
** Resuming transfer from byte position 4721872697
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/12/40/091-95155/piv8296jbzadg8qb5m3gatbllz60d2flsw/InstallESDDmg.pkm...
Downloading http://swcdn.apple.com/content/downloads/12/40/091-95155/piv8296jbzadg8qb5m3gatbllz60d2flsw/BaseSystem.chunklist...
** Resuming transfer from byte position 1984
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/12/40/091-95155/piv8296jbzadg8qb5m3gatbllz60d2flsw/OSInstall.mpkg...
** Resuming transfer from byte position 673751
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Making empty sparseimage...
installer: Error - ERROR_2062F74259
Command '[u'/usr/sbin/installer', u'-pkg', u'./content/downloads/12/40/091-95155/piv8296jbzadg8qb5m3gatbllz60d2flsw/091-95155.English.dist', u'-target', '/private/tmp/dmg.pZsNLZ']' returned non-zero exit status 1
Product installation failed.

I deleted the content directory and restarted, but it failed again. I am trying to get a version of High Sierra for a bricked machine, and it seems that Apple are making it difficult...

Wrong build number at the end

I've used this script to download 17G2208, mounted the dmg, copied over to /Applications but then when I re-check the build number I get this:
Code:
$ cat /Applications/Install\ macOS\ High\ Sierra.app/Contents/Info.plist | grep -A 1 DTSDKBuild
DTSDKBuild
17G2205

So it seems to be 2205 instead of 2208 after all, what could be the reason?

Crash when setting extended attribute

Ran into the issue below when attempting to download the macOS 11 beta. Download completes, but there's a crash when it attempts to set extended attributes. I installed xattr from pip beforehand.

Making empty sparseimage...
installer: Package name is macOS Beta
installer: Installing at base path /private/tmp/dmg.bePlFP
installer: The install was successful.
Adding seeding program DeveloperSeed extended attribute to app
Traceback (most recent call last):
  File "installinstallmacos.py", line 614, in <module>
    main()
  File "installinstallmacos.py", line 593, in main
    xattr.setxattr(installer_app, 'SeedProgram', seeding_program)
  File "/usr/local/lib/python3.7/site-packages/xattr/__init__.py", line 184, in setxattr
    return xattr(f).set(attr, value, options=options)
  File "/usr/local/lib/python3.7/site-packages/xattr/__init__.py", line 78, in set
    return self._call(_setxattr, _fsetxattr, name, value, 0, options | self.options)
  File "/usr/local/lib/python3.7/site-packages/xattr/__init__.py", line 60, in _call
    return name_func(self.value, *args)
  File "/usr/local/lib/python3.7/site-packages/xattr/lib.py", line 77, in _setxattr
    _check_bytes(value)
  File "/usr/local/lib/python3.7/site-packages/xattr/lib.py", line 25, in _check_bytes
    "Value must be bytes, %s was passed." % type(val).__name__
TypeError: Value must be bytes, str was passed.

Installer .app generated for macOS Catalina Beta 19A512f missing files

When using installinstallmacos.py to create an installer for the 19A512f beta, the following files are missing from Install macOS Catalina Beta.app:

AppleDiagnostics.chunklist
AppleDiagnostics.dmg
BaseSystem.chunklist
BaseSystem.dmg

These files do end up installed to the root_dir "/tmp", but in a duplicate of the target folder that has the string Applications appended:

/tmp$ tree -L 5
.
├── dmg.fBRzpi
│   ├── Applications
│   │   └── Install\ macOS\ Catalina\ Beta.app
│   │       └── Contents
│   │           ├── Frameworks
│   │           ├── Info.plist
│   │           ├── MacOS
│   │           ├── PkgInfo
│   │           ├── PlugIns
│   │           ├── Resources
│   │           ├── SharedSupport
│   │           ├── _CodeSignature
│   │           └── version.plist
│   └── System
│       └── Library
│           └── Receipts
│               ├── com.apple.pkg.InstallAssistantAuto.bom
│               └── com.apple.pkg.InstallAssistantAuto.plist
└── dmg.fBRzpiApplications
    └── Install\ macOS\ Catalina\ Beta.app
        └── Contents
            └── SharedSupport
                ├── AppleDiagnostics.chunklist
                ├── AppleDiagnostics.dmg
                ├── BaseSystem.chunklist
                └── BaseSystem.dmg

17 directories, 9 files

It seems like a / is missing from the generated path for those 4 files, but not sure why this is only the case for 19A512f.

Upgrade MacOS behaviour

Hi,
I'm looking for a script that will upgrade a MacOS 10.13 to 10.14 through ssh.

Does "installinstallmacos.py" script allows me to do so?

According to the Documentation sounds like it will be a clean installation. (which I'm afraid of).
"The tool assembles "Install macOS" applications by downloading the packages from Apple's softwareupdate servers and then installing them into a new empty disk image."

I currently don't have a MacOS machine to run the script and check the "--help" for clarification.
Could you confirm if I can do an "only-upgrade" without losing my current files?

Thanks in advance,

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 121: ordinal not in range(128)

installinstallmacos.py - get macOS installers from the Apple software catalog

This Mac:
Model Identifier : iMac18,2
Bridge ID        : None
Board ID         : Mac-77F17D7DA9285301
OS Version       : 10.13.4
Build ID         : 17E202

Traceback (most recent call last):
  File "installinstallmacos.py", line 1186, in <module>
    main()
  File "installinstallmacos.py", line 827, in main
    catalog, args.workdir, ignore_cache=args.ignore_cache
  File "installinstallmacos.py", line 590, in os_installer_product_info
    board_ids = get_board_ids(dist_path)
  File "installinstallmacos.py", line 486, in get_board_ids
    if "boardIds" in line:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 121: ordinal not in range(128)

Making empty sparseimage... installer: Error - ERROR_2062F74259

I get the following error no matter which OS I elect to download on the latest pull of installmacos.py

Making empty sparseimage...
installer: Error - ERROR_2062F74259
Command '[u'/usr/sbin/installer', u'-pkg', u'./content/downloads/12/40/091-95155/piv8296jbzadg8qb5m3gatbllz60d2flsw/091-95155.English.dist', u'-target', '/private/tmp/dmg.Dev2AM']' returned non-zero exit status 1
Product installation failed.

I've deleted the contents folder numerous times and tried different WIFI networks to download the files

Can not fetch the lastest catalina beta

My mbp 2019 has updated to 10.15.4 beta 19E250c using system update
When I use this script with SeedCatalog to build the lastest beta dmg
It only fetch 10.15.4 19E242d version

ProductID Version Build Post Date Title

1 061-77704 10.15.4 19E242d 2020-02-26 macOS Catalina Beta
2 041-91758 10.13.6 17G66 2019-10-19 macOS High Sierra
3 041-88800 10.14.4 18E2034 2019-10-23 macOS Mojave
4 061-26589 10.14.6 18G103 2019-10-14 macOS Mojave
5 061-44387 10.15.3 19D76 2020-01-28 macOS Catalina
6 041-90855 10.13.5 17F66a 2019-10-23 Install macOS High Sierra Beta
7 061-26578 10.14.5 18F2059 2019-10-14 macOS Mojave
8 061-44345 10.15.2 19C39d 2019-11-15 macOS Catalina Beta

Maybe Apple uses a private sucatalog?

hello

Traceback (most recent call last):
File "installinstallmacos.py", line 593, in
main()
File "installinstallmacos.py", line 509, in main
catalog, args.workdir, ignore_cache=args.ignore_cache)
File "installinstallmacos.py", line 402, in os_installer_product_info
product_info[product_key] = parse_server_metadata(filename)
File "installinstallmacos.py", line 278, in parse_server_metadata
md_plist = read_plist(filename)
File "installinstallmacos.py", line 75, in read_plist
with open(filepath, "rb") as fileobj:
TypeError: coercing to Unicode: need string or buffer, NoneType found

Error when running installinstallmacos.py

I've tried running this script with both --compress and without on different machines and I get the same error when I've selected option 2:

caspermba:~ user$ sudo /Users/user/Downloads/macadmin-scripts-master/installinstallmacos.py --compress
Password:
Downloading https://swscan.apple.com/content/catalogs/others/index-10.13seed-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog...
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/091-62779.English.dist...
Downloading http://swcdn.apple.com/content/downloads/10/36/091-62780/objx55fn5lwnefnetcap2i0c7xg3avoor9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/10/36/091-62780/objx55fn5lwnefnetcap2i0c7xg3avoor9/091-62780.English.dist...
Downloading http://swcdn.apple.com/content/downloads/45/61/091-71284/77pnhgsj5oza9h28y7vjjtby8s1binimnj/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/45/61/091-71284/77pnhgsj5oza9h28y7vjjtby8s1binimnj/091-71284.English.dist...
 #    ProductID    Version    Build  Title
 1    091-62780    10.13.3    17D47  Install macOS High Sierra
 2    091-62779    10.13.3  17D2047  Install macOS High Sierra
 3    091-71284    10.13.4  17E160g  Install macOS High Sierra Beta

Choose a product to download (1-3): 2
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/BaseSystem.dmg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  462M  100  462M    0     0  17.3M      0  0:00:26  0:00:26 --:--:-- 18.1M
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/OSInstall.mpkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  662k  100  662k    0     0  7571k      0 --:--:-- --:--:-- --:--:-- 7612k
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/AppleDiagnostics.chunklist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   328  100   328    0     0  17016      0 --:--:-- --:--:-- --:--:-- 17263
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/BaseSystem.chunklist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1984  100  1984    0     0  70409      0 --:--:-- --:--:-- --:--:-- 70857
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallInfo.plist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1584  100  1584    0     0  53654      0 --:--:-- --:--:-- --:--:-- 54620
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallESDDmg.chunklist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16456  100 16456    0     0   699k      0 --:--:-- --:--:-- --:--:--  730k
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/RecoveryHDMetaDmg.pkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  463M  100  463M    0     0  21.2M      0  0:00:21  0:00:21 --:--:-- 21.8M
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/RecoveryHDMetaDmg.pkm...
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/AppleDiagnostics.dmg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2543k  100 2543k    0     0  9388k      0 --:--:-- --:--:-- --:--:-- 9420k
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallESDDmg.pkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 4485M  100 4485M    0     0  17.5M      0  0:04:15  0:04:15 --:--:-- 26.8M
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallESDDmg.pkm...
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallAssistantAuto.pkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.7M  100 10.7M    0     0  21.0M      0 --:--:-- --:--:-- --:--:-- 21.0M
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallAssistantAuto.pkm...
Making empty sparseimage...
installer: Error - ERROR_60DE9AF0EE
Command '['/usr/sbin/installer', '-pkg', './content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/091-62779.English.dist', '-target', '/private/tmp/dmg.jnCRHG']' returned non-zero exit status 1
Product downloaded and installed to /Users/user/Install_macOS_10.13.3-17D2047.sparseimage
Traceback (most recent call last):
  File "/Users/user/Downloads/macadmin-scripts-master/installinstallmacos.py", line 425, in <module>
    main()
  File "/Users/user/Downloads/macadmin-scripts-master/installinstallmacos.py", line 413, in main
    for item in os.listdir(applications_dir):
OSError: [Errno 2] No such file or directory: '/private/tmp/dmg.jnCRHG/Applications'
caspermba:~ user$ sudo /Users/user/Downloads/macadmin-scripts-master/installinstallmacos.py
Password:
Downloading https://swscan.apple.com/content/catalogs/others/index-10.13seed-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog...
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/091-62779.English.dist...
Downloading http://swcdn.apple.com/content/downloads/10/36/091-62780/objx55fn5lwnefnetcap2i0c7xg3avoor9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/10/36/091-62780/objx55fn5lwnefnetcap2i0c7xg3avoor9/091-62780.English.dist...
Downloading http://swcdn.apple.com/content/downloads/45/61/091-71284/77pnhgsj5oza9h28y7vjjtby8s1binimnj/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/45/61/091-71284/77pnhgsj5oza9h28y7vjjtby8s1binimnj/091-71284.English.dist...
 #    ProductID    Version    Build  Title
 1    091-62780    10.13.3    17D47  Install macOS High Sierra
 2    091-62779    10.13.3  17D2047  Install macOS High Sierra
 3    091-71284    10.13.4  17E160g  Install macOS High Sierra Beta

Choose a product to download (1-3): 2
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/BaseSystem.dmg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/OSInstall.mpkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/AppleDiagnostics.chunklist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/BaseSystem.chunklist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallInfo.plist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallESDDmg.chunklist...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/RecoveryHDMetaDmg.pkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/RecoveryHDMetaDmg.pkm...
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/AppleDiagnostics.dmg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallESDDmg.pkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallESDDmg.pkm...
Downloading http://swcdn.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallAssistantAuto.pkg...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/InstallAssistantAuto.pkm...
Making empty sparseimage...
installer: Error - ERROR_60DE9AF0EE
Command '['/usr/sbin/installer', '-pkg', './content/downloads/16/14/091-62779/frfttxz116hdm02ajg89z3cubtiv64r39s/091-62779.English.dist', '-target', '/private/tmp/dmg.m5lmfd']' returned non-zero exit status 1
Product downloaded and installed to /Users/user/Install_macOS_10.13.3-17D2047.sparseimage

Error while trying to install macOS Beta 11

I tried to install the new beta installer using the installinstallmacos.py script and it keeps failing with the same error.
I tried to redownload the installer multiple times but without any success.
I couldn't find any data that could be of use in the console.app either, the last messages were:

default	15:56:45.919526+0300	authd	Succeeded authorizing right 'system.install.apple-software' by client '/System/Library/PrivateFrameworks/PackageKit.framework/Versions/A/Resources/system_installd' [3520] for authorization created by '/usr/sbin/installer' [25445] (4,0) (engine 565)
default	15:56:45.922580+0300	authd	Succeeded authorizing right 'system.install.software' by client '/System/Library/PrivateFrameworks/PackageKit.framework/Versions/A/Resources/system_installd' [3520] for authorization created by '/usr/sbin/installer' [25445] (4,0) (engine 565)
default	15:56:45.922766+0300	authd	Succeeded authorizing right 'system.install.software.iap' by client '/System/Library/PrivateFrameworks/PackageKit.framework/Versions/A/Resources/system_installd' [3520] for authorization created by '/usr/sbin/installer' [25445] (4,0) (engine 565)

Here's the script's log:

% sudo /usr/bin/python installinstallmacos.py --seedprogram DeveloperSeed
Downloading https://swscan.apple.com/content/catalogs/others/index-10.15seed-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz...
Downloading http://swcdn.apple.com/content/downloads/59/18/001-15219-A_EE9FN7UHJA/efuz3h0zlmx4qlinf4bxlguigo9jvhcr55/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/59/18/001-15219-A_EE9FN7UHJA/efuz3h0zlmx4qlinf4bxlguigo9jvhcr55/001-15219.English.dist...
No server metadata for 001-18401-003
Downloading https://swdist.apple.com/content/downloads/15/52/001-18401-A_I5FFC1VB5J/rrfxkhkf3ykxzj3zjshu1srsh4n74a41n4/001-18401-003.English.dist...
Downloading http://swcdn.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/34/54/041-88800-A_HLMBDM42FL/anrmoj880qkj0lbybqm0c3830p70nawjrv/041-88800.English.dist...
Downloading http://swcdn.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/23/061-26578-A_FF0C6M87LS/ylvl0phx6uy3i444qt9p57n8wz0xnylmd9/061-26578.English.dist...
Downloading http://swcdn.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/17/32/061-26589-A_8GJTCGY9PC/25fhcu905eta7wau7aoafu8rvdm7k1j4el/061-26589.English.dist...
Downloading http://swcdn.apple.com/content/downloads/30/19/061-77704-A_Y6FF2MIFII/6k00g50wn937v0jlyq595e89zthlx01vzs/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/30/19/061-77704-A_Y6FF2MIFII/6k00g50wn937v0jlyq595e89zthlx01vzs/061-77704.English.dist...
Downloading http://swcdn.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist...
Downloading http://swcdn.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist...
Downloading http://swcdn.apple.com/content/downloads/01/28/061-86291-A_JPEIWIOZES/enpozvvbmj3mj2dhulhevlt8b429qd5kw0/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/01/28/061-86291-A_JPEIWIOZES/enpozvvbmj3mj2dhulhevlt8b429qd5kw0/061-86291.English.dist...
Downloading http://swcdn.apple.com/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/30/26/061-44345-A_KESM6DQZ3B/44cdw7ri5cg3bi4ko4pox21ce655pu4f86/061-44345.English.dist...
Downloading http://swcdn.apple.com/content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/37/41/001-04366/a6boefh8b6bee4k2x6v5lwyfjr7od2ica3/001-04366.English.dist...
 #      ProductID    Version    Build   Post Date  Title
 1      061-77704    10.15.4  19E242d  2020-02-26  macOS Catalina Beta
 2      001-15219    10.15.5  19F2200  2020-06-15  macOS Catalina
 3  001-18401-003      10.16 20A4299v  2020-06-22  macOS Beta
 4      001-04366    10.15.4  19E2269  2020-05-04  macOS Catalina
 5      041-91758    10.13.6    17G66  2019-10-19  macOS High Sierra
 6      041-88800    10.14.4  18E2034  2019-10-23  macOS Mojave
 7      061-26589    10.14.6   18G103  2019-10-14  macOS Mojave
 8      061-86291    10.15.3  19D2064  2020-03-23  macOS Catalina
 9      041-90855    10.13.5   17F66a  2019-10-23  Install macOS High Sierra Beta
10      061-26578    10.14.5  18F2059  2019-10-14  macOS Mojave
11      061-44345    10.15.2   19C39d  2019-11-15  macOS Catalina Beta

Choose a product to download (1-11): 3
Downloading http://swcdn.apple.com/content/downloads/15/52/001-18401-A_I5FFC1VB5J/rrfxkhkf3ykxzj3zjshu1srsh4n74a41n4/Info.plist...
** Resuming transfer from byte position 5626
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/15/52/001-18401-A_I5FFC1VB5J/rrfxkhkf3ykxzj3zjshu1srsh4n74a41n4/InstallAssistant.pkg...
** Resuming transfer from byte position 9561650487
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/15/52/001-18401-A_I5FFC1VB5J/rrfxkhkf3ykxzj3zjshu1srsh4n74a41n4/InstallAssistant.pkm...
Downloading http://swcdn.apple.com/content/downloads/15/52/001-18401-A_I5FFC1VB5J/rrfxkhkf3ykxzj3zjshu1srsh4n74a41n4/InstallInfo.plist...
** Resuming transfer from byte position 188
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/15/52/001-18401-A_I5FFC1VB5J/rrfxkhkf3ykxzj3zjshu1srsh4n74a41n4/BuildManifest.plist...
** Resuming transfer from byte position 1148279
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading http://swcdn.apple.com/content/downloads/15/52/001-18401-A_I5FFC1VB5J/rrfxkhkf3ykxzj3zjshu1srsh4n74a41n4/MajorOSInfo.pkg...
** Resuming transfer from byte position 1951525
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Downloading https://swdist.apple.com/content/downloads/15/52/001-18401-A_I5FFC1VB5J/rrfxkhkf3ykxzj3zjshu1srsh4n74a41n4/MajorOSInfo.pkm...
Downloading http://swcdn.apple.com/content/downloads/15/52/001-18401-A_I5FFC1VB5J/rrfxkhkf3ykxzj3zjshu1srsh4n74a41n4/UpdateBrain.zip...
** Resuming transfer from byte position 766672
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Making empty sparseimage...
installer: Package name is macOS Beta
installer: Installing at base path /private/tmp/dmg.crjrAS
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “InstallAssistant.pkg”.)

Specifying `--catalogurl [url]` results in Namespace error

Pulled a fresh copy this morning and ran the command with the --catalogurl [url] argument and had a Namespace exception occur.

bash-3.2# ./installinstallmacos.py --catalogurl https://swscan.apple.com/content/catalogs/others/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz --compress
Traceback (most recent call last):
  File "./installinstallmacos.py", line 528, in <module>
    main()
  File "./installinstallmacos.py", line 427, in main
    su_catalog_url = args.sucatalog_url
AttributeError: 'Namespace' object has no attribute 'sucatalog_url'
bash-3.2# ./installinstallmacos.py --compress --catalogurl https://swscan.apple.com/content/catalogs/others/index-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz
Traceback (most recent call last):
  File "./installinstallmacos.py", line 528, in <module>
    main()
  File "./installinstallmacos.py", line 427, in main
    su_catalog_url = args.sucatalog_url
AttributeError: 'Namespace' object has no attribute 'sucatalog_url'```

local variable 'dist_path' referenced before assignment

091-95155.English.dist']' returned non-zero exit status 92
Traceback (most recent call last):
File "./installinstallmacos.py", line 573, in
main()
File "./installinstallmacos.py", line 491, in main
catalog, args.workdir, ignore_cache=args.ignore_cache)
File "./installinstallmacos.py", line 396, in os_installer_product_info
dist_info = parse_dist(dist_path)
UnboundLocalError: local variable 'dist_path' referenced before assignment
st:macadmin-scripts a123$

Sparse image is empty after Terminal error (MacBook Pro 2018 T2 w/Biometrics)

Trying to download 10.13.6, Build 17G66 (this is the only High Sierra build listed) and I receive this error upon creating the sparse image:

_installer: Error - ERROR_2062F74259
Command '['/usr/sbin/installer', '-pkg', './content/downloads/12/40/091-95155/piv8296jbzadg8qb5m3gatbllz60d2flsw/091-95155.English.dist', '-target', '/private/tmp/dmg.mmQdwz']' returned non-zero exit status 1
Product installation failed._0

When I checked my home folder, it did create a sparseimage but it is empty when mounting it. I checked the install.log and attached the file.
install.log

Failure building 10.15.1 image under High Sierra 10.13.6

Clearly High Sierra is now a significantly older version of macOS but it was able to successfully run the current installinstallmacos.py script to successfully download Catalina 10.15

However with the recently released 10.15.1 I now get the following errors.

Downloading https://swdist.apple.com/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/MajorOSInfo.pkm...
Making empty sparseimage...
installer: Package name is macOS Catalina
installer: Installing at base path /private/tmp/dmg.pephRb
2019-10-31 14:48:55.000 installer[63099:18468492] Package /Users/Shared/DeployStudio/Files/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/RecoveryHDMetaDmg.pkg uses a deprecated pre-10.2 format (or uses a newer format but is invalid).
installer: The install failed (The Installer could not install the software because there was no software found to install.)
Command '[u'/usr/sbin/installer', u'-pkg', u'./content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/041-83630.English.dist', u'-target', '/private/tmp/dmg.pephRb']' returned non-zero exit status 1
Product installation failed.

I am currently running the same script on a different Mac under Catalina 10.15 itself and it appears to be succeeding.

If it is not possible to 'fix' the script so it continues to work under High Sierra then we will have to live with this but it would be worth noting this in the readme and/or comments.

Error on 10.15.4

Seeing this when i try to download Catalina 10.15.4 from 10.15.3 or 4:

installer: Package name is macOS Catalina
installer: Installing at base path /private/tmp/dmg.QkvqY1
installer: The install was successful.


*** Working around a very dumb Apple bug in a package ***
*** postinstall script that fails to correctly target ***
*** the Install macOS.app when installed to a volume ***
*** other than the current boot volume. ***
*** Please file feedback with Apple! ***


ditto: /private/tmp/dmg.QkvqY1/Applications/Install macOS Catalina.app/Contents/SharedSupport/BaseSystem.dmg: No space left on device
Traceback (most recent call last):
File ".../installmacos.py", line 596, in
main()
File ".../installmacos.py", line 563, in main
mountpoint)
File ".../installmacos.py", line 232, in install_product
os.path.join(target_vol, 'Applications')]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '[u'/usr/bin/ditto', u'/private/tmp/dmg.QkvqY1Applications', u'/private/tmp/dmg.QkvqY1/Applications']' returned non-zero exit status 1

Request - Automated mode

Hi - We love this workflow, some of us were discussing how to make it even more friendly by adding in a variable that does the following:

Downloads the latest version of the macOS installer and puts it in /Applications

This would allow for easy additions to and MDM workflow to automatically put the latest full installer on a device somewhere we expect it without having to package and re-push.

Trying to download older versions on 10.11.6

I'm trying to find a way to download older versions of macOS. I tried installinstallmacos.py and saw only High Sierra, Mojave, and Catalina.

Wanting to go further back, I ran it on my 2007 iMac, but it only offers High Sierra and Catalina, which seems odd because neither of those can run on this Mac.

Here's some info I hope might be useful for smarter people who know more about how this works:

% sw_vers
ProductName:	Mac OS X
ProductVersion:	10.11.6
BuildVersion:	15G22010


% sudo installinstallmacos.py
Could not find a default catalog url for this OS version.


% sudo installinstallmacos.py --seedprogram CustomerSeed
Downloading https://swscan.apple.com/content/catalogs/others/index-10.11customerseed-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz...
Downloading http://swcdn.apple.com/content/downloads/41/43/041-91741-A_WA3NXS2ZKX/64427gwv708ya1dixzjp5smau1qzm4acsa/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/43/041-91741-A_WA3NXS2ZKX/64427gwv708ya1dixzjp5smau1qzm4acsa/041-91741.English.dist...
Downloading http://swcdn.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist...
Downloading http://swcdn.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist...
Downloading http://swcdn.apple.com/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/041-83630.English.dist...
 #    ProductID    Version    Build   Post Date  Title
 1    041-83630    10.15.1    19B88  2019-10-29  macOS Catalina
 2    041-90855    10.13.5   17F66a  2019-10-23  Install macOS High Sierra Beta
 3    041-91758    10.13.6    17G66  2019-10-19  macOS High Sierra
 4    041-91741    10.13.6  17G2208  2019-10-13  macOS High Sierra

Choose a product to download (1-4):
Exiting.


% sudo installinstallmacos.py --seedprogram PublicSeed
Downloading https://swscan.apple.com/content/catalogs/others/index-10.11beta-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz...
Downloading http://swcdn.apple.com/content/downloads/41/43/041-91741-A_WA3NXS2ZKX/64427gwv708ya1dixzjp5smau1qzm4acsa/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/41/43/041-91741-A_WA3NXS2ZKX/64427gwv708ya1dixzjp5smau1qzm4acsa/041-91741.English.dist...
Downloading http://swcdn.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/06/50/041-91758-A_M8T44LH2AW/b5r4og05fhbgatve4agwy4kgkzv07mdid9/041-91758.English.dist...
Downloading http://swcdn.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/08/44/041-90855-A_452WLVQACP/mzfvoi59bljh3w4w4lvwenfk0r1a2f7212/041-90855.English.dist...
Downloading http://swcdn.apple.com/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/InstallAssistantAuto.smd...
Downloading https://swdist.apple.com/content/downloads/61/56/041-83630-A_8RCIBB415Y/7jqh3nh97ood2mjej7hdgpx7fgh5c3fi9g/041-83630.English.dist...
 #    ProductID    Version    Build   Post Date  Title
 1    041-83630    10.15.1    19B88  2019-10-29  macOS Catalina
 2    041-90855    10.13.5   17F66a  2019-10-23  Install macOS High Sierra Beta
 3    041-91758    10.13.6    17G66  2019-10-19  macOS High Sierra
 4    041-91741    10.13.6  17G2208  2019-10-13  macOS High Sierra

Choose a product to download (1-4):
Exiting.

Option to download macOS beta builds like Big Sur

Would be nice to be able to download Big Sur betas using this script.

They just released Beta 4 today, and unfortunately in System Preferences -> Software Update, it doesn't state which build I am downloading. I have to download a 12 GB file in hope that it's the new one.

I noticed that in installinstallmacos.py it reads:
Valid seeding programs are: PublicSeed, CustomerSeed, DeveloperSeed

Does this have anything to do with that capability?

big-sur-1

big-sur-2

problem building the installer package

running on an 11.0 beta 2 machine as root after the parts of Big Sur beta 3 download the package build fails with:

Making empty sparseimage...
installer: Package name is macOS Big Sur Beta
installer: Installing at base path /private/tmp/dmg.QofwOG
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “InstallAssistant.pkg”.)
Command '[u'/usr/sbin/installer', u'-pkg', u'./content/downloads/34/37/001-26097-A_OYW4Z0U99Z/gdas3ubse9fasb0217grmmyplfd6o7mqfp/001-26097.English.dist', u'-target', '/private/tmp/dmg.QofwOG']' returned non-zero exit status 1
Product installation failed.

Could not create a preboot volume for APFS install

Hello,

I'm trying to install MacOS Catalina 10.15.4
I ran installinstallmacos.py and created the Install_macOS_10.15.4-19E2269.dmg file
When i open it and run the installer, it gives me an error: Could not create a preboot volume for APFS install
How can I fix this?

Delete download data during disk creation. Free up disk space

Hey there, just a quick question if it might be a good idea to delete the content folder as soon as the sparse image is created. I have very limited disk space and downloading and building an image takes 3x the space of the image. 8GB for the content folder, another 8GB for the sparseimage and an additional 8GB for the final image. So once I run the script my mac starts to complain about disk space sooner or later.

Another thing. Why does the --help command need to be run as root?

Unable to install

This bug appears when I am installing macOS Mojave 10.14.5(18F2058 and 18F2059).

Log:

2019-08-01 21:20:24.970 installer[10403:347005] Package /Users/ti/content/downloads/05/24/041-73257/vwduhuxh3a6z9xeoza6x82b03hwml954kq/InstallESDDmg.pkg uses a deprecated pre-10.2 format (or uses a newer format but is invalid).
installer: The install failed (The Installer could not install the software because there was no software found to install.)

installation failed

I tried to run installinstallmacos.py and ran into this error:

InstallESDDmg.pkg uses a deprecated pre-10.2 format (or uses a newer format but is invalid

I ran sudo installinstallmacos.py and tried to download 3 091-76233 10.13.4 17E199 Install macOS High Sierra

any idea how to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.