• Welcome to the all-new iMore Forums! - We're still moving some things around, so you may see a few quirks here and there, but we're working on getting things fully completed as soon as possible. For now, take a look around, and if you run into any major issues, please let us know in this thread!

How to fix dpkg files Cydia problem


New member
Apr 2, 2014
Recently many people have been having problems in Cydia with it not being able to refresh and instead getting the error such as "couldn't configure pre-depending dpkg for ncursers, probably a dependency cycle" or many other errors.. Here is how to fix it! Running iOS 7!

- Need another jailbroken device that is running with no errors to do this!
- Need iFile on both devices!

1. On your jailbroken device (broken Cydia device) that has iFile, go to /var/lib and delete the file labeled dpkg.
2. Now on your other device that works go to /var/lib press "edit" and select the file named dpkg and then select at the bottom (2nd option) the picture with a file with an arrow pointing down and create the ZIP labeled dpkg.
3. From there, select the new ZIP file you just made and mail it to yourself from iFile by pressing (4th option) the mail logo.. (After the email is sent you may delete the ZIP file.)
5. That's all you need to do with the working jailbroken device...
6. On your non-working device go to your mail and find the email you just sent yourself.. find the ZIP file you sent and hold it down. it will ask what you would want to open it in. Select "iFile".
7. From iFile, select "Unarchiver" and let it do its thing.
8. From there, select the blue file that IS NOT ZIP! (Should be probably be the 5th one down). Select the (6th option) that looks like a clipboard on iFile and select "Cut"
9. From there, go back to /var/lib, press "Edit" then the clipboard again and select "Paste"
10. Done! Now re-boot your device and refresh Cydia.


  • photo 1.PNG
    photo 1.PNG
    61.9 KB · Views: 7
  • photo.PNG
    67.6 KB · Views: 7
  • photo 10.PNG
    photo 10.PNG
    132 KB · Views: 7
  • photo 12.PNG
    photo 12.PNG
    78.1 KB · Views: 7
  • Photo.jpg
    66.3 KB · Views: 7
  • Photo 2.jpg
    Photo 2.jpg
    121.4 KB · Views: 8
  • photo 4.PNG
    photo 4.PNG
    197 KB · Views: 7
  • photo 6.PNG
    photo 6.PNG
    119.7 KB · Views: 7