Error 1013 When Upgrading to iOS 4.2; iPhone Goes into Recovery Mode; Fix

November 22, 2010

Q & A

Some users have reported an issue in which iTunes displays error 1013 when attempting to update iPhones to iOS 4.2. When this error occurs, the iPhone may repeatedly enter recovery mode, getting stuck in a recovery loop.

Try a different computer. If you have access to a second computer with iTunes, try updating to iOS 4.2.1 on it.

Restore instead of update. Backup your iPhone, then perform a restore process instead of using the check for update function. This may allow the iPhone  to successfully receive the iOS 4.0.1 update, after which sync processes should occur at normal speed.

Edit hosts file. Failing the above, try these somewhat tedious processes suggested by Apple Discussions poster C. Castillo:

Mac

1. Go to your “Applications” folder
2. Go to your “Utilities” folder
3. Launch “Terminal”
4. Type “sudo nano /etc/hosts” (without quotes) and hit return
5. Enter your password
6. Use the down arrow key to find the “gs.apple.com” entries. Once the cursor is in front, make sure you comment out the line(s) by entering “#” (no quotes) in front of the text
7. Save the file by pressing CONTROL+O on the keyboard
8. Exit the nano editor by pressing CONTROL+X on the keyboard
9. Restore your iDevice
10. Come back and thank Dave

Windows

1. Go to Start > Programs > Accessories > Notepad
2. Go to File > open
3. Navigate to c:\windows\system32\drivers\etc\
4. Select the “hosts” file and click “open”
5. Delete any line that has “sc.apple.com”
6. Go to File > Save
7. Restore your iPhone

, , , , ,

36 Responses to “Error 1013 When Upgrading to iOS 4.2; iPhone Goes into Recovery Mode; Fix”

  1. Kuberan Marimuthu Says:

    I have a generic solution to the above mentioned problem for the all the operating systems including windows,linux and Mac in the below mentioned link

    http://www.kuberan.me/2010/11/iphone-ios-4-2-1-update-1013-error/

    Reply

  2. Harsha Says:

    Thanks guys, after following these instructions
    iPhone 4 got updated successfully.

    Reply

  3. Louis Says:

    Thank you Dave! You saved my day. Awesome fix.

    Reply

  4. Ahmed Says:

    Thanks Dave!! Brilliant!!

    Reply

  5. Paola Says:

    THANK YOU!!
    After two hours trying, it finally worked. You saved me from going to the Apple Store and deal with the “geniuses” ha!

    Reply

  6. Buck Futt Says:

    Thanks. Also saved me the trouble of a “Genius” visit on Thanksgiving Wednesday.

    Reply

  7. James Harwood Says:

    Thank you soooo much. I actually went to Best Buy and got a new iPhone because they couldn’t do the restore there. I had a problem where when you went to save it said i wasn’t an administrator. This is fixed by running notepad as administrator. FYI.

    Reply

  8. edu Says:

    thanks Dave!!!!
    i was frustrating before..LOL

    Reply

  9. Has Says:

    hi
    i cannot save the file after editing in windows although im the administrator????

    plss help

    Reply

  10. Paul Says:

    Awesome! It works!! Thanks!!

    Reply

  11. Thorsten Says:

    Big thanks!! My iP4 is back to life!

    Reply

  12. ERICDTF Says:

    Thanks Dave, My iPhone4 is back, from Spain :)

    Reply

  13. mh Says:

    thanks sooooooooo much problem resloved

    Reply

  14. Raul Says:

    here still with this ** error

    Reply

  15. Raul Says:

    Oh, sorry, yeah, mine iphone 4 backs !
    =)
    thank you from brazil !

    Reply

  16. M Says:

    Worked!! Thanks Juys!

    Reply

  17. Art Says:

    Thanks – worked like a charm!!

    Reply

  18. Efrain Garcia Says:

    I opened up notepad, then the hosts folder, and nothing has “sc.apple.com” on it…so now what do i do?

    Reply

  19. Persio Says:

    THANK YOU DAVE!!!

    Reply

  20. Stewart Says:

    Thanks, this worked just fine. After three hours of being stuck in an awful Apple Infinity Loop, I finally got my iPhone working again.

    Very much appreciate the information.

    Reply

  21. Sam Says:

    Dave, thank you from Singapore!!!!!

    Reply

  22. Patrick Says:

    I followed the directions, but I don’t see “gs.apple.com” anywhere.

    Reply

  23. samrat Says:

    i cant find gs.apple.com pls help me im very much frustrated…

    Reply

  24. Teddy Bear 125 Says:

    Dear dave,

    Thanks so MUCH!

    Reply

  25. tamarteleco Says:

    Error 1013 Solution:
    Edit hosts file commenting all related to apple.

    My one is as follows:
    ##
    # Host Database
    #
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    ##
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost
    #127.0.0.1 gs.apple.com
    #74.208.10.249 gs.apple.com
    #74.208.105.171 gs.apple.com

    works perfect on iphone 4 fw 4.2.1

    Reply

  26. Thomas Says:

    Dave, you saved my day
    it works perfectly

    thank you from the netherlands

    Reply

  27. Hennessy Says:

    Dave, you saved my day too!
    Thanks!

    Reply

  28. bilal Says:

    Totally Resolved .. thank you

    Reply

  29. Alex Says:

    I’ve done this and nothing has changed, help??

    Reply

  30. Miguel Ferri Says:

    Thanks a lot!!!!
    With this tip I’ve updated my iphone correctly!

    Reply

  31. NoggenFogger Says:

    1st – Thank you Dave. Worked like a charm.

    2nd – Why did it work? In other words, why does REM’ing out the gs.apple.com entries make the restore work? I understand that it is preventing the computer from contacting Apple, but wouldn’t that be a function that is necessary at some point in the future?

    3rd – Should we be re-enabling the gs.apple.com lines after completion of the restore?

    Thanks for all your help.

    Reply

  32. Timinoz Says:

    Dave. One word. Legend.

    Reply

  33. SoulRBL Says:

    Worked great on iOS 4.3, too. Thanks!

    Reply

  34. Ignacio Michel Says:

    Thanks you for your very valuable time, work and expertise that share with us for free
    God Bless You
    Best Regards
    Ignacio Michel

    PS It worked with my iPad 2

    Reply

  35. beckmo Says:

    thank you dave!

    Reply

  36. Carolina Nobre Says:

    Thank youuuuuuuuuuuuuuuuuuuuuuuuuuuu

    i am 2hour without sleep!!!!

    Thak you from bresil!!!!!!You save my life!!!

    Reply

Leave a Reply