munki / macadmin-scripts

Scripts of possible interest to macOS admins
Other
2.33k stars 523 forks source link

Failing to create sparse image... #23

Closed GermanGorbachov closed 5 years ago

GermanGorbachov commented 5 years ago

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_XArchive/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_XArchive/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?

gregneagle commented 5 years ago

rm /Volumes/LIB_[1Tb]/OS_X_Archive/content/downloads/16/00/041-94412/t6w6bldyviccosh24jj36g9dy7t7jly9sy/InstallESDDmg.pkg and run the script again. That file is corrupted or incomplete.

GermanGorbachov commented 5 years ago

I tried deleting that file and downloading it again (by restarting the script) and all three sources dropped the connection somewhere after one gigabyte... Guess there might be too much load and I should try again later. Thank you for sharing the script. You did a great job!

On Mon, 12 Aug 2019, 18:07 Greg Neagle, notifications@github.com wrote:

Closed #23 https://github.com/munki/macadmin-scripts/issues/23.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/munki/macadmin-scripts/issues/23?email_source=notifications&email_token=AFZFLX5WZDC7LDQ5MHKA2ADQEF4D7A5CNFSM4IK3FGC2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTADAKBQ#event-2550531334, or mute the thread https://github.com/notifications/unsubscribe-auth/AFZFLX3NC3B4RY224Y4VBWDQEF4D7ANCNFSM4IK3FGCQ .