Both are handled a little bit differently, but the issue is the same.Before we start: It's crucial that you make sure that your Apple device is connected to the internet when performing this fix.
It's also important that you're connected to a home network, as many company networks might filter out the connection to Apple's servers.
Delete the beta profile Go to Settings | General | Profile (you only get the Profile menu if you’ve got multiple profiles installed, such as joining the beta programme).
Tap the Beta Software Profile option and tap Delete Profile, then tap Delete to remove it. Update your device Go to Settings | General | Software Update and check for a new official update.
When your device has completed the reset, rejoin your Wi-Fi network and try the update again.4.
Delete the update Sometimes a corrupt update can cause a problem, but you can remove and retry.