+14 votes
85.7k views
asked in IOS by (1.9k points)
edited by

 
Hi I have a little problem, I managed to install cydia, but when installing "essential packages" that are the first you should upgrade, I jump an error saying "sub-process/usr/bin/dpkg returned an error code (2)" I searched for some solution, but all need to access via SSH, the problem is that will not let me install anything, nor the Open SHH or iFile or anything, as I can access the iphone so SHH from the computer?
IExplorer use the app, but the iPhone detects me as "Non-Jailbroken"
Any solution? Thank you very much! Greetings!
PD. Do not let me install anything
  • sub-process /usr/bin/dpkg returned an error code (2)
  • Cydia Update - error code (2) 
  • cydia dpkg error code 
  • cydia error code 2 ios 7
  • cydia sub-process /usr/bin/dpkg returned an error code (2)

How to fix cydia subprocess error?

 


6 Answers

+10 votes
answered by (135k points)
edited by
 
Best answer

Solution to sub-process /usr/bin/dpkg returned an error code:

  1. Get your way to the file and directory structure of your iPhone (through SSH or iFile or Mobile ..)
  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. 

 

sub-process usr/bin/dpkg returned an error code 2 cydia

how to fix with terminal cydia dpkg error


commented by
Thanks for posting! I've been trying to solve this problem for days, and this did the trick for me!
commented by
thank you +!!! it work
commented by
How are you meant to get Ifile if you can install on cydia
commented by
Thanks dude, works for me 20-01-2015 on iOS 8.1.2.
commented by
i don't have
commented by
omg, i can't :(
commented by
I cant even install iFile or any other tweaks to try this!!! Help!!!
commented by
Unable to install ifile!!
commented by
Hello, Install ifunbox on your PC you'll be abble to do it
commented by
Easily if u have this problem while you jsut jailbreaked u only need to reboot your iDevices.
commented by
Use I fun box to do it
commented by
iFunbox dosent work! I am jailbroken and i am stinking tired of not being allowed to download anything. Cydia just says Sub-process /user/bin/dpkg returned an error code (2)
commented by
get ifunbox on your mac or pc and u can do the same thing
commented by
THANKYOU SO MUCH!!
commented by
why i dont have "directory"?? help me out!!
commented by
I dont hve the available-old or status-old, cydia is playing up for me now.
commented by
In the dpkg there was only "available" and "status" so if I changed anything it didn't let cydia do anything how do I fix that.
+1 vote
answered by (7k points)
edited by
It should not give you that problem installing essential packages, repeat the jailbreak again, something did not work when you install it.
 
Eye open ssh works, but sharpen, only partially.
 
We would recommend you looked the post to publish on packages that work and those that are giving you trouble.
 
regards
 
error cydia sub process
commented by
i have the same issue, how do i rejailbreak?
commented by
u can download  a similar app to i file throw the appstore just write ifile
commented by
Did not have the -old files and restart did not resolve it, my solution was: I copied those files from another iphone and then it worked.
+3 votes
answered by (135k points)
edited by

Solution to sub-process /usr/bin/dpkg returned an error code (2) cydia

 

reseting Cydia might help as well.

use ifile or ifunbox:

Navigate to /private/etc/apt/sources.list.d

Delete the file "cydia.list" 

Navigate to /var/lib/apt/lists

Delete all of the files in this folder except the one called "lock"

Navigate to /var/lib/apt/lists/partial

Delete all of the files in this folder

Navigate to /var/lib/cydia

Delete the file "metadata.plist"

Restart Cydia. 

 

 

commented by
YOU SAVE MY LIFE :D IT WORKSSSSSSS
+1 votes
answered by (17.1k points)
edited by
Get your way to the file and directory structure of your iPhone (through SSH or iFile or Mobile Terminal ...)
Look for the /var/lib/dpkg/ directory
You should be able to find the following files: available, availble-old, status, status-old
 Rename "available" to "available-bak"
 Rename "status" to "status-bak"
 Rename "available-bak" to "available"
Rename "status-old" to "status"
than 
Start Cydia , 
 
usr bin dpkg error code 2
+8 votes
answered by (3.8k points)
Finally I solved the problem! Just download and install iFile 
 
1. Sign Cydia and download iFile. 
Two. CLOSE Cydia! 
Three. Open iFile. 
Three. Head to the first folder "/". 
April. Slide to the top and you will see a search field. 
May. Search on "Hierarchy" the application you want to uninstall, so in my case was "MyWi" (without the quotes). 
6. deletes all files that contain the phrase you want to delete the application, in my case was "MyWi" 
7. Once deleted all files, Closes Open iFile and Cydia. 
8. Head to Manage> Packages> "uninstall application" in my case was "MyWi"> Modify> Remove 
 
Now remove it completely! 
 
Finally I solved the problem! Just download and install iFile 
 
1. Open Cydia and download iFile. 
2. CLOSE Cydia! 
3. Open iFile. 
4. Navigate to the top (first) folder. 
5. Scroll to the top and you'll see a search field. 
6. Search in "Hierarchy" mode for "MyWi". 
7. Delete all files container containing the phrase "MyWi" 
8 Close iFile and open Cydia. 
9. Go to Manage> Packages> MyWi OnDemand> Modify> Remove 
 
Now it will remove it completely! 
commented by
Hi.. I have same problm after jb using TaiG tool, & try to install ifile on iphone. But cannot.. How can u help me. I cant install anything!!
commented by
Get your way to the file and directory structure of your iPhone (through SSH or iFile or Mobile ..)
Look for the /var/lib/dpkg/ directory
You should be able to find the following files: available, availble-old, status, status-old
Rename "available" to "available-bak"
Rename "status" to "status-bak"
Rename "available-old" to "available"
Rename "status-old" to "status"
Start Cydia , make sure that you allow Cydia to load completely first (just to be on the safe side ), try to install some apps
commented by
Instead of just reposting that thing, tell me how to install iFile or SSH, when i cant install anything!
commented by
Well said I think the best thing to do is rejailbreak
commented by
Wow, what a d... You can't even give the last guy credit
+8 votes
answered by
I am having this same problem. I think it's because I updated over the air instead throu iTunes like it said to. What I would recommend is to backup you device, restor and update throu iTunes, restore from backup, and Rez-jailbreak.
Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.

You can ask a question without registration.

Categories

...