Discuss Cydia problem: "Sub-process /usr/bin/dpkg returned an error code (2)". at the General - Hackint0sh.org; I have ultrasn0w installed strictly to fix the one signal strength bar issue on my ...
Cydia problem: "Sub-process /usr/bin/dpkg returned an error code (2)".
I have ultrasn0w installed strictly to fix the one signal strength bar issue on my ip4 (on AT&T with 4.3.3 & 1.59.00 bb) and I frequently run into problems with it when one of my Cydia apps needs updating. When I try to update an app(s), ultrasn0w gets reinstalled even though it's already installed and not in the queue. When that happens I get an error that says "Sub-process /usr/bin/dpkg returned an error code (2)". Sometimes when I go to update an app I get the same error message without the ultrasn0w reinstall happening.
I did some research and thought I found a fix, which was the following:
1- Get your way to the file and directory structure of your iPhone (through SSH or iFile or Mobile Terminal ...)
2- Look for the /var/lib/dpkg/ directory
3- You should be able to find the following files: available, availble-old, status, status-old
4- Rename "available" to "available-bak"
5- Rename "status" to "status-bak"
6- Rename "available-old" to "available"
7- Rename "status-old" to "status"
8- Start Cydia , make sure that you allow Cydia to load completely first (just to be on the safe side ), try to install some apps.
I've fixed this problem several times now but it keeps coming back. I'm not sure if it's related to ultrasn0w or not but it seems like ultrasn0w might be stuck in the queue or something. I don't know if I need to do a complete reinstall of Cydia or if there's a way to just rebuild the Cydia databases but I don't know what to do at this point. It seems like every time I try to update an app or something this error comes back and it's the same error every time. Is there an easy way for me to uninstall Cydia and then reinstall it without having to re-jb and start over? I'm so desperate at this point.
Thanks for the contribution.
Most Cydia issues are due to adding non standard sources (especially the poorer run repos that include badly tested or pirate packages).
It's very unlikely that your problem is due to ultrasn0w. I think this is just a symptom.
Please read the stickies & search forum before posting! How to report an iTunes restore/update fail in a useful manner
iPad 3G 64GB (4.3.3, Redsn0w) oldest SHSH 3.2.2
iPhone 4 32GB (4.2.1, Redsn0w JB-monte) oldest SHSH 4.1
iPhone 3GS 32GB (4.3.3; Pwnagetool) factory unlocked oldest SHSH 3.1
iPhone 8GB (3.1.3; Pwnagetool) AT&T Locked - Unlocked with bootneuter
Did we solve your problem? Got a dollar or two spare ? Donate!
I agree that ultrasn0w is probably not the problem but the only "non-standard" repos I have are beta repos for LockInfo and BiteSMS and the ultrasn0w repo - those are the only three that I added manually. I don't do hacked apps - never have, never will. So do you think I can fix this without doing my jb over again or no?
Originally Posted by Olethros
Hi, hopefully someone still checks this thread.
I just ran into this issue, never seen it before, the solution seems pretty straightforward, the only problem is that I cannot download anything in Cydia, including SSH iFile or Mobile Terminal so I have no way to access the files, the problem is preventing me from getting the solution life sucks. Anyone has any ideas on how can I access the file system to rename the files if I'm unable to download anything through Cydia?
By berger34 in forum iOS 4.x (iPhone OS 4.x)
Last Post: 03-09-2013, 05:23 PM
By tdrag97 in forum iPhone 3GS
Last Post: 09-30-2010, 11:02 PM
By mceyedol in forum iPhone 3G
Last Post: 02-18-2010, 07:19 PM
By ilavu in forum Ultrasn0w (3G(S)/iPhone 4 unlock)
Last Post: 06-25-2009, 06:07 PM
By Brib3 in forum General
Last Post: 12-16-2007, 03:09 AM