Back up important files before any big step such as a reset or restore. Don't download 'repair' programs suggested online; use only official tools from Microsoft, Apple, Google or your device maker. On work or school devices, ask your IT admin first.
Likely causes
- The device disconnected from the computer during the update or restore
- Faulty USB cable, worn port, or a hub/keyboard connection
- Outdated macOS, Apple Devices app or iTunes
- Security software interrupting the process
- A hardware fault in the device if the error persists
Steps you can try
Did that fix it?
Great! If the code comes back, repeat the same steps from the start.
If the steps didn't help, don't push further. See the help section below.
When to get help
If error 9, 4005, 4013 or 4014 keeps appearing after you have tried another cable and another computer, Apple recommends contacting Apple Support; a persistent error can point to a hardware issue that needs repair.
Differences between versions
Apple covers errors 9, 4005, 4013 and 4014 in one article and also lists 4005, 4013 and 4014 under USB connection checks.
Sources
This page is based on official sources from Microsoft, Apple, Google and other makers, written in our own words. Code meanings can differ between versions.