Reinstall macOS Mojave fails
Hi,
I'm trying to recover MacBook Pro 2018 model using recovery mode. Recovery offers an option to reinstall macOS Mojave into the computer. When I try to install the OS, it hangs when 2 minutes is left of the installation and finally fails with following error message:
"The file couldn't be opened because it isn't in the correct format.
The file might be corrupted, truncated, or in an unexpected format."
Here's an image (sorry, I had to take it with phone, I wasn't able to screenshot it):
Here's the recovery log. I have made it shorter by removing repeating lines:
There are multiple instances of errors like these:
Jan 18 09:02:05 MacBook-Pro osinstallersetupd[603]: IFJS: Package Authoring Error: access to path "/private/var/db/gkopaque.bundle" requires <options allow-external-scripts='true'>
Jan 18 09:40:37 MacBook-Pro osinstallersetupd[603]: PackageKit: Failed to verify InstallESDDmg.pkg: xar_verify failed
I've tried downloading the same files as installer with cURL in recovery terminal and there has been no problems.
Any suggestions what I should try? Bootable USB is not an option because the Startup Security Utility prevents booting from external media and the computer does not have an administrator account.