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.