Solution to sub-process /usr/bin/dpkg returned an error code:
1Get your way to the file and directory structure of your iPhone (through SSH or iFile or Mobile ..)
Look for the /var/lib/dpkg/ directory
2You should be able to find the following files: available, availble-old, status, status-old
3Rename "available" to "available-bak"
4Rename "status" to "status-bak"
5Rename "available-old" to "available"
6Rename "status-old" to "status"
7Start Cydia , make sure that you allow Cydia to load completely first (just to be on the safe side ), try to install some app