grahampugh / macadmin-scripts

Scripts of possible interest to macOS admins
Other
366 stars 46 forks source link

The install failed. #40

Closed jajir closed 3 years ago

jajir commented 3 years ago

Hello,

I have problem to run installinstallmacos.py. I see that this mac is not correctly identified. I have MacBook Pro (15-inch, 2016). I report below is MacBookPro13 which is i think different model. At the end whole installation fails. From log I can't say why.

Here is my console log:

Jans-MBP-2:macadmin-scripts jan$ sudo ./installinstallmacos.py --workdir ~/Downloads/macosx/ --version 11.2.3
Password:

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

This Mac:
Model Identifier : MacBookPro13,3

Bridge ID        : X619AP
Board ID         : Mac-A5C67F76ED83108C
OS Version       : 10.15.7
Build ID         : 19H524

 #  ProductID       Version    Build    Post Date   Title                          
 1  001-15219       10.15.5    19F2200  2020-06-15  macOS Catalina                 
 2  001-68446       10.15.7    19H15    2020-11-11  macOS Catalina                 
 3  001-04366       10.15.4    19E2269  2020-05-04  macOS Catalina                 
 4  071-08935       11.2.2     20D80    2021-03-01  macOS Big Sur                  
 5  061-86291       10.15.3    19D2064  2020-03-23  macOS Catalina                 
 6  041-91758       10.13.6    17G66    2019-10-19  macOS High Sierra              
 7  041-88800       10.14.4    18E2034  2019-10-23  macOS Mojave                   
 8  071-14766       11.2.3     20D91    2021-03-08  macOS Big Sur                  
 9  061-26589       10.14.6    18G103   2019-10-14  macOS Mojave                   
10  071-05432       11.2.1     20D75    2021-02-15  macOS Big Sur                  
11  001-51042       10.15.7    19H2     2020-09-24  macOS Catalina                 
12  001-36735       10.15.6    19G2006  2020-08-06  macOS Catalina                 
13  001-57224       10.15.7    19H4     2020-10-27  macOS Catalina                 
14  041-90855       10.13.5    17F66a   2019-10-23  Install macOS High Sierra Beta 
15  061-26578       10.14.5    18F2059  2019-10-14  macOS Mojave                   
16  001-36801       10.15.6    19G2021  2020-08-12  macOS Catalina                 

Build 20D91 selected. Downloading #8...

** Resuming transfer from byte position 5841
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0  5841    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
** Resuming transfer from byte position 5242218140
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6646M  100 6646M    0     0  1247k      0  1:30:56  1:30:56 --:--:-- 1400k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 35607  100 35607    0     0   164k      0 --:--:-- --:--:-- --:--:--  164k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2571k  100 2571k    0     0  1313k      0  0:00:01  0:00:01 --:--:-- 1312k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1935k  100 1935k    0     0  1299k      0  0:00:01  0:00:01 --:--:-- 1299k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   188  100   188    0     0   2540      0 --:--:-- --:--:-- --:--:--  2540
Making empty sparseimage...
installer: Package name is macOS Big Sur
installer: Installing at base path /private/tmp/dmg.m2h8xa
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'/Users/jan/Downloads/macosx/content/downloads/12/32/071-14766-A_Q2H6ELXGVG/zx8saim8tei7fezrmvu4vuab80m0e8a5ll/071-14766.English.dist', u'-target', '/private/tmp/dmg.m2h8xa']' returned non-zero exit status 1
Product installation failed.

Thanks for help.

grahampugh commented 3 years ago

Hi, I don't know about the incorrect identification, but please do not use your Downloads folder as the working directory. See the README for why.

jajir commented 3 years ago

Thanks for quick reply. It works. I have installation image. During next stage of creating image I had not enough space on disk. It fails during execution of /usr/bin/hdiutil with non-zero exit status. But I figured it out. Thanks for this tool.