If you ever have that cydia crash due to a defective source, you do not have any packages or source that appear in cydia, you have an error in cydia such "sub-process bzip2 year Returned error code (2) ", you add a source error, you can try to fix cydia with this tip.
For this you will need:
- Of course a jailbroken iPhone
- Of the Mobile Terminal (cydia) I advise you to have all the time on your iPhone in case.
- WinSCP or equivalent: SSH connection
Initially we will identify the source defective
- Enter in Terminal
- Type su (then press return equivalent to Enter)
- Type your password (default alpine) and press return
- Type apt-get update (and back)
- Wait until all the text scrolling stops. At the end you if you have a defective source, the name of the source causing your problem (on the screen there is no source of marked defective )
- Quit the application
We now had the name of the source defective.
We will now delete all files related to this source SSH for "repair" cydia.
- Connect with SSH with WinSCP or equivalent.
In each case that we will visit you should delete the files related to the faulty source.
For example if the source of David Ashman problem in cydia will remove everything that is related to David Ashman (on file)
To begin,
- Go to private / var / lib / apt / lists and delete all files that have the same name as the source defective
- Go to: private / var / lib / apt / lists / partial as before and delete all files that have the same name as the source defective
- Go to: private / var / lib / dpkg / info and are doing well
- Go to: private / var / lib / cydia and delete the file as on the screen
- Go to: private / etc / apt / sources.list.d, edit the file cydia.list (with a text editor) and remove the faulty source. (Remember back then )
- Make a respring with SBSettings example.
- Start cydia
- It is asking you the user preferences in cydia, you choose the right one.
- Normally more worries with cydia
I had no more source package or displayed in cydia so I was completely blocked. I hope that this will help you
Bookmarks