The message might say that an error occurred while downloading, preparing, or installing, or that the software is damaged, could not be verified, or failed to personalize. The cause of messages like these can vary, and sometimes they're only temporary.
support.apple.com