Error 9 does not occur that often, let's see if we can get thru this.
Normally error 9 relates to security settings etc. But can come about for numerous reasons. Here are several things to try.
•Update iTunes to current version. After update is complete REBOOT COMPUTER.
•Be sure the cable you are using is an Apple Original.
***With all new software comes new coding. If the device cannot authenticate the cable the restore WILL fail! Just because it worked on an older OS does not mean it will work with the new OS. Even though a NON Aplle cable will charge the device does not make it compatible, the biggest reason for failure is DATA TRANSFER RATE this is compromised with lower grade wire used in NON Apple cables. This WILL cause restore failures. Please keep this in mind.
•Try a new USB port. If using a PC try a rear port as some computers front ports are connected like a HUB.
•Be sure your cable is plugged directly into the computer and not into a HUB, keyboard or any other device.
• Temporarily disable any Firewall or Antivirus
•Be sure you can contact the Apple server
**Open your browser and type gs.apple.com into the address bar, hit enter. If you land on any page other than an Apple page e.g. Cydia , the Restore WILL fail.
•Usually Error 9 will take a few Restore attempts to solve. Be sure to Reboot computer and Device before each try.
•Check your internet connection, again slow data transfer will cause restore errors.
**If you have access to your router, connect your PC or Laptop directly into it for a better connection and faster speeds.
Keep me Posted