If you are getting the error message "Unable to check for update" when you try an OTA (over the air update)
Change DNS Servers
Settings -> Wi-Fi
Click the blue arrow on your connected network
Delete everything in DNS and replace it with 208.67.222.222, 208.67.220.220
Try again
If this works, you will probably want to remove the WiFi network using "Forget This Network" and then reconnect to it to get your original DNS servers back. Alternatively, make a note of the original DNS servers before deleting them and replace it after you are done.
If you are getting the error message "Unable to check for update" when you try through iTunes
On your Mac
Choose Apple menu > System Preferences, and then click Network.
Select the network connection service you want to use (such as Wi-Fi or Ethernet, unless you named it something else) from the list, and then click Advanced.
Click DNS, and then click Add ➕ at the bottom of the DNS Servers list. Enter the IPv4 address for the DNS server.
You can use OpenDNS
208.67.222.222
208.67.220.220
or
You can Google Public DNS if you want
8.8.8.8
8.8.4.4