How to fix: Cydia Crashing on launch

Problem:

Whenever you try launching Cydia, it either crashes immediately or says “Loading” then crashes similar to the image below:

Solution:

This article is written particularly after the Yalu102 jailbreak but should work in general Cydia crashing senarios.

First things first we will need to establish an ssh session, which is explained here

Once done, we can try a basic solution suggested by the developer of the Yalu102 tool

Basic Solution

QsTX2qK1.jpg-large

However, if that doesn’t work, we will need to perform a deeper solution

Advanced Solution

1) Is cydia Installed

# dpkg -l | grep -i cydia

 

2) Can you use apt-get to install packages?

# apt-get install wget

If you receive the error: “apt-get command not found” then it will have to be installed first which may be tricky, otherwise proceed with step 3

The solution to this is highlighted in the post here

3) Is SBSettings installed?

# dpkg -l | grep -i sbsetting

If the answer to the previous question is “yes” run the command below, otherwise skip to step 4:
# apt-get remove com.modmyi.serioussbsettingshd com.sbsdefaulthdtheme sbsettings

Check that sbsettings has been remove:
# dpkg -l | grep -i sbsetting

4) Does the SBSettings directory exist?

# ls /var/mobile/Library/SBSettings/Themes

If the answer to the previous question is “yes” run the command below, otherwise skip to step 5:
# rm -r /var/mobile/Library/SBSettings

5) Attempt Cydia re-install

# apt-get –reinstall install cydia
# sbreload

Then try pressing on the cydia icon on your device

6) Is AppSync installed?

# dpkg -l | grep -i appsync

7) Remove Cydia metadata

# rm /private/var/mobile/Library/Cydia/metadata.cb0

8) Remove all extra source from cydia.list

# apt-get install vim
# vim /etc/apt/sources.list.d/cydia.list

Final list should be:

deb http://apt.saurik.com/ ios/1348.22 main
deb http://apt.modmyi.com/ stable main
deb http://cydia.zodttd.com/repo/cydia/ stable main
deb http://apt.saurik.com/beta/cydia-arm64/ ./
deb http://getdelta.co/ ./
deb http://apt.thebigboss.org/repofiles/cydia/ stable main
deb http://cydia.dtathemes.com/repo/ ./
deb http://tateu.net/repo/ ./
deb https://apt.alfhaily.me/ ./

9) Run apt-get commands

# apt-get clean
# apt-get check
# apt-get purge

10) Reinstall cydia deb

# dpkg -i /private/cydia_1.1.28~b9_iphoneos-arm.deb

11) Run upgrade

# apt-get upgrade

12) Remove packages

# apt-get remove adv-cmds apr apr-lib
# dpkg -a configure

13) Remove all files except private directory

# cd /var/lib/apt/lists/
# ls
# mkdir backup
# mv !(partial|backup) backup/

14) Remove all files in the dpkg updates

# ls /private/var/lib/dpkg/updates

Remove files inside that dir

# rm -r /private/var/lib/dpkg/updates/*

15) Check that firmware and firmware-bin packages are installed

# dpkg -l | grep -i firmware

BtjkTnka.jpg-large

If it is not installed, it can be done by running:

# apt-get install firmware firmware-sbin

Package can be found here

16) Remove packages

# apt-get remove com.iky1e.swipeselection-pro wget whois xar xml2 top openssh com.chpwn.weeloader org.altervista.exilecom.icleaner sqlite3 sqlite3-lite sqlite3-lib subversion syslogcmdline
# sbreload

17) Check that mobilesubstrate and safemode exist

# dpkg -l | grep -i -e mobilesubstrate -e safemode

If they do not exist, then install mobilesubstrate and safemode by running:

# apt-get install mobilesubstrate safemode

If the above fails, you can download and transfer these file to the base filesystem using ifunbox:

http://apt.saurik.com/debs/mobilesubstrate_0.9.6301_iphoneos-arm.deb
http://apt.saurik.com/debs/com.saurik.substrate.safemode_0.9.6001_iphoneos-arm.deb 

Then install it

# dpkg -i /private/var/mobile/Media/mobile* /private/var/mobile/Media/com.saurik*

18) Check that Install coreutils exists

# dpkg -l | grep -i coreutils

If the above fails, you can download and transfer these file to the base filesystem using ifunbox:

http://apt.saurik.com/debs/coreutils-bin_8.12-9_iphoneos-arm.deb

# apt-get install coreutils-bin

19) Reboot and Rejailbreak using Yalu102

# reboot

20) Remove Cydia Metadata

# rm /private/var/mobile/Library/Cydia/metadata.cb0

21) Remove preferences

# cd /private/var/mobile/Library/Preferences/
# rm com.saurik.Cydia.plist

 

22) Reboot and Jailbreak

23) Retry opening Cydia App from screen icon

If you found this article useful, don’t forget to share it by clicking one of the buttons below. You can also share your thoughts in the comments section below.

You can also follow me on Twitter, add me to your circle on Google+, or like my Facebook page to keep yourself updated on all the latest of Hardware and Software articles.

Found this post useful?

Subscribe to our RSS feed, follow us on Twitter or help us grow by sharing our content using the buttons below

This entry was posted in Apple, Cydia, Jailbreak. Bookmark the permalink.

One Response to How to fix: Cydia Crashing on launch

  1. Gangcho says:

    hi
    when i’m trying to install mobilesubstrate_0.9.6301_iphoneos-arm.deb or com.saurik.substrate.safemode_0.9.6001_iphoneos-arm.deb or any other .deb it it says that E: could not find package. what does it mean?

Leave a Reply