DPKG_LOCKED when trying to update packages in Cydia
What device + iOS version are you on? iPhone 6s Plus + iOS 13.1.2
What checkra1n version are you using? 0.9.5
What are the steps to reproduce the issue?
- Reinstalled checkra1n loader
- Opened cydia to see 11 packages needed to be updated
- Tried to update but got DPKG_LOCKED error ...
What do you expect, and what is happening instead? Expected files to be updated but kept getting errors
Any other info, error logs, screenshots, ...?

did you use a previous jailbreak before?
did you use a previous jailbreak before?
Not for a while. I did use unc0ver on iOS 12. But I think that the problem is when I accidentally downloaded Electra prefrenceloaders it crashed cydia and I had to reinstall checkra1n jailbreak a couple times before I could’ve opened cydia. But now I keep getting DPKG_LOCKED when I try to update the packages.
@UrBaN103 Try method 2 replacing ifile with filza:
Can you elaborate on that?
@UrBaN103
Try this method using filza instead of Ifile:
-
Launch the iFile application from apps drawer and tap the HOME button from bottom bar.
-
tap the back button from top-left corner to open up “var” folder.
-
now search and open “lib” folder > then “dpkg” folder.
-
From inside the dpkg folder open the “updates” folder and delete everything inside it.
-
now go back to dpkg folder and open up each and every folder one by one and search if there is any file name starting with “000” (zero) or “1111” , if you found any – delete them immediately.
-
Now close the iFile app.
-
Reboot your i-device. (Don’t go for respring, make a complete reboot)
After the reboot try opening cydia and I hope now it won’t show any DPKG error. If it still showing the same error then probably you have missed any file to deleted that starts with 000. (copied)
@UrBaN103
Try this method using filza instead of Ifile:
- Launch the iFile application from apps drawer and tap the HOME button from bottom bar.
- tap the back button from top-left corner to open up “var” folder.
- now search and open “lib” folder > then “dpkg” folder.
- From inside the dpkg folder open the “updates” folder and delete everything inside it.
- now go back to dpkg folder and open up each and every folder one by one and search if there is any file name starting with “000” (zero) or “1111” , if you found any – delete them immediately.
- Now close the iFile app.
- Reboot your i-device. (Don’t go for respring, make a complete reboot)
After the reboot try opening cydia and I hope now it won’t show any DPKG error. If it still showing the same error then probably you have missed any file to deleted that starts with 000. (copied)
can i get ifile from a website without using cydia?
you can use tweakbox to download filza. You can also use SSH to do this but I don't know how
Oh and I'm just curious: did you ever press the "erase all content and settings" on your device?
Oh and I'm just curious: did you ever press the "erase all content and settings" on your device?
Yeah I did thinking the cydia icon would go away
@UrBaN103 You should NEVER ever do that. It always creates problems with cydia. I would recommend that you do a full restore in iTunes and re jailbreak with checkra1n
@UrBaN103 You should NEVER ever do that. It always creates problems with cydia. I would recommend that you do a full restore in iTunes and re jailbreak with checkra1n
Ooof i was planning to stay on iOS 13.1.2 for like over jailbreaks lol but I’ll try fully restoring my phone
@UrBaN103 You are waiting for unc0ver? Well it's ok. Just remember from now on not to erase content and settings
@UrBaN103 You are waiting for unc0ver? Well it's ok. Just remember from now on not to erase content and settings
Your method of fully restoring my device worked and now my problem does not exist. Thanks man
yeah this issue is caused by corruption to dpkg files, probably from adding the Electra repo.