Cydia: Sub-process /user/bin/dpkg returned an error code (2)

Discussion in 'Jailbreaks and iOS Hacks' started by iPodJBer, Apr 24, 2012.

  1. macrumors newbie

    Joined:
    Apr 20, 2012
    #1
    Ok, so as you see, i get an error in Cydia when ever i try to install an app.
    And while i was trying to fix it, i accidently deleted the sources and i don't know how to get them back :(
    Thank in advance
     
  2. thread starter macrumors newbie

    Joined:
    Apr 20, 2012
    #2
    Anyone?
     
  3. macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #3
    Do you have MobileTerminal, SSH, or iFile?
     
  4. macrumors 6502

    EngageWithRage

    Joined:
    Jan 30, 2012
    Location:
    Your girlfriend's house
    #4
    1. Run Cydia.
    2. Search for gzip & reinstall.
    3. Search for bzip2 & reinstall.
    4. Cydia goto Changes & click Refresh.
    5. Wait for Cydia to refresh.

    Not sure if you came across this on the net as well..

    Solution:
    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.
     
  5. macrumors 603

    thelatinist

    Joined:
    Aug 15, 2009
    Location:
    Connecticut, USA
    #5
    His Cydia doesn't work. That's the problem.
     

Share This Page