Sunday, September 18, 2011

Cydia error: running sub-process /usr/bin/dpkg returned an error code (2)

In certain cases when you installing apps on Cydia you might get following error:
Error: running sub-process /usr/bin/dpkg returned an error code (2)
This error message appears to be related to some file corruption in your Cydia.
To fix it, follow these steps:
  1. Navigate to /var/lib/dpkg/ directory.
  2. Rename "available" to "available-bak".
  3. Rename "status" to "status-bak".
  4. Rename "available-old" to "available".
  5. Rename "status-old" to "status".
  6. Start Cydia and allow it to load everything it needs. Try to install or remove some apps to verify the error is fixed.

2 comments: