Results 1 to 7 of 7

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: How to Reinstall Cydia via SSH!!

  1. #1
    Default How to Reinstall Cydia via SSH!!
    Ok, so the other day I started to have problems with Cydia. Every time I opened it, it would crash.

    Note: Cydia crashes for 3 reasons (that I know of),
    1) bad repository/source,
    2) bad cache folder,
    3) corrupted software

    In this posting I help take care of number 3 WITHOUT having to Re-Jailbreak your phone. If you have a problem with the other 2, click here

    Also note this, if you don't have ssh installed on your iphone, then this fix is not for you. (technically you could do this with mobile terminal, but I wont get into that in this post)


    I kept getting an error when trying to reinstall Cydia (apt-get install Cydia).

    Internal Error, Could not perform immediate configuration (2) on cydia
    This error seems to mean that apt-get is missing dependencies for Cydia, even if you try the .deb files using dpkg (dpkg -i cydia.deb) you will get an error.

    What you need to do is:

    1) apt-get remove cydia (this is how you get to the error to begin with)
    2) get the latest copy of cydia from Saurik.com (make sure you get the cydia_x.x.xxx_iphoneos-arm.deb version)(I also attached the latest as of this posting)
    3) get the file attached here called essential_0-1_iphoneos-arm.deb
    4) sftp the files over to your iphone /var/stash folder
    5) ssh into your phone as root, cd over to the /var/stash folder
    6) run this command:
    Code:
    dpkg -i essential_0-1_iphoneos-arm.deb cydia_x.x.xxxx_iphoneos-arm.deb
    7) run this command
    Code:
    respring
    8) open up cydia, it should now work

    I want to thank StealthBravo and the Admin over at theIphoneWorld, because without their help/posts, I wouldn't have been able to come up with the fix for my problem
    Attached Files Attached Files

  2. The Following 5 Users Say Thank You to ruben00 For This Useful Post:

    eddmecha (09-30-2010), ewokcwalk (11-29-2010), ge0sean (03-22-2011), Nopstnz8 (01-16-2011), scrollup (12-27-2010)

  3. #2
    Thanks!
    I used this to reinstall cydia on my friends 3G that kept saying "loading" forever when clicked on changes, and now it works fine.

    I also used your method to upgrade cydia on the iPhone 2G! I kept getting a message to upgrade but couldn't since it's on 3.1.3 (of course) and not 4.0, but with your method I was able to successfully put the latest Cydia on the iPhone 2G.

    Edit: However it turns out that it isn't compatible with my 2G. Cydia does run, but any app you want to install automatically removes cydia! So I had to redo the steps and install an earlier version. But along the way my cydia disappeared so I had to follow this to get it back.
    Last edited by scrollup; 12-27-2010 at 10:48 PM. Reason: Update

  4. #3
    What's Jailbreak?
    Join Date
    Jul 2009
    Location
    SF Bay Area
    Posts
    6
    Thanks
    0
    Thanked 2 Times in 2 Posts

    This was the first time I decided to try a Cydia reinstall instead of doing a restore (nice to do spring cleaning after months of app installs/upgrade, anyway), and I came across your post in search of the "best way" to reinstall Cydia.

    I essentially did what you did, but I did it all from the command line. For those who may prefer this method (I feel it's more streamlined), here's what I did:

    1. SSH into iPhone
    2. login as root or use su
    3. download the latest .deb files directly from the repo: $ apt-get -d install cydia essential
    4. browse to the apt download folder: $ cd /var/cache/apt/archives
    5. install (press TAB to auto complete the filenames): $ apt-get install cydia...deb essential...deb -y
    6. $ respring


    NOTES:
    1. the ellipsis (...) in the deb filenames above are just me shortening their names. Just press TAB to autocomplete the filenames as you type out the first few letters.
    2. Browsing to the apt archives directory is optional. You may go straight to the next step as long as you input the full path to the deb's (e.g. $ apt-get install /var/cache/apt/archives/PackageNameHere -y)
    3. You may need to do "$ apt-get purge" on either (or both) packages prior to downloading/installing.
    4. You must install both at the same time, otherwise you will have errors.
    5. Doing "$ apt-get update" before any of this wouldn't hurt, either.


    DUMP:
    Code:
    Mr-Marc:~ root# apt-get update
    
    ...SNIP...
    
    Mr-Marc:~ root# apt-get -d install cydia essential -y
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
      cydia essential
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B/636kB of archives.
    After this operation, 1516kB of additional disk space will be used.
    Download complete and in download only mode
    
    Mr-Marc:~ root# cd /var/cache/apt/archives/
    
    Mr-Marc:/var/cache/apt/archives root# dpkg -i essential_0-1_iphoneos-arm.deb cyd
    ia_1.0.3201-71_iphoneos-arm.deb
    Selecting previously deselected package essential.
    (Reading database ... 11767 files and directories currently installed.)
    Unpacking essential (from essential_0-1_iphoneos-arm.deb) ...
    Selecting previously deselected package cydia.
    Unpacking cydia (from cydia_1.0.3201-71_iphoneos-arm.deb) ...
    Setting up essential (0-1) ...
    Setting up cydia (1.0.3201-71) ...
    
    Mr-Marc:/var/cache/apt/archives root# respring

  5. #4
    I NEED HELP ! lst night my springboard crash so I check out some YouTube videos n try to fix it n erase some files n now I can't install or do anything on cydia it saids that it dnt knw Wat version of cydia it's running n something abt some files are corrupted n every time I try to install something I get ERROR RUNNING MSG n won't let me do anything on cydia ????

  6. #5
    What's Jailbreak?
    Join Date
    Jul 2009
    Location
    SF Bay Area
    Posts
    6
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Quote Originally Posted by KILL SWITCH SJRR View Post
    I NEED HELP !
    sometimes I just don't understand people...

    Your issue may be related to the topic of this thread, but it is a separate topic altogether. I suggest you edit your post to point to a new thread that you create describing your problem. You should be sure to provide as much info as you can as well as any and all steps you have attempted to try to rectify the problem thus far.

    Originally wanted to post:
    "no one will help you when you don't provide enough information to even offer any advice other than doing a complete restore. You should then be able to restore your apps and deb packages from any backups you should have been making before installing any new apps/packages."

  7. #6
    Quote Originally Posted by ruben00 View Post
    1) apt-get remove cydia (this is how you get to the error to begin with)
    2) get the latest copy of cydia from Saurik.com (make sure you get the cydia_x.x.xxx_iphoneos-arm.deb version)(I also attached the latest as of this posting)
    3) get the file attached here called essential_0-1_iphoneos-arm.deb
    4) sftp the files over to your iphone /var/stash folder
    5) ssh into your phone as root, cd over to the /var/stash folder
    6) run this command:
    Code:
    dpkg -i essential_0-1_iphoneos-arm.deb cydia_x.x.xxxx_iphoneos-arm.deb
    7) run this command
    Code:
    respring
    8) open up cydia, it should now work

    I want to thank StealthBravo and the Admin over at theIphoneWorld, because without their help/posts, I wouldn't have been able to come up with the fix for my problem

    I followed these directions and was able to reinstall cydia! It's running again w/o issue. Thanks for the help!

  8. #7
    Quote Originally Posted by ruben00 View Post
    Ok, so the other day I started to have problems with Cydia. Every time I opened it, it would crash.

    Note: Cydia crashes for 3 reasons (that I know of),
    1) bad repository/source,
    2) bad cache folder,
    3) corrupted software

    In this posting I help take care of number 3 WITHOUT having to Re-Jailbreak your phone. If you have a problem with the other 2, click here

    Also note this, if you don't have ssh installed on your iphone, then this fix is not for you. (technically you could do this with mobile terminal, but I wont get into that in this post)


    I kept getting an error when trying to reinstall Cydia (apt-get install Cydia).



    This error seems to mean that apt-get is missing dependencies for Cydia, even if you try the .deb files using dpkg (dpkg -i cydia.deb) you will get an error.

    What you need to do is:

    1) apt-get remove cydia (this is how you get to the error to begin with)
    2) get the latest copy of cydia from Saurik.com (make sure you get the cydia_x.x.xxx_iphoneos-arm.deb version)(I also attached the latest as of this posting)
    3) get the file attached here called essential_0-1_iphoneos-arm.deb
    4) sftp the files over to your iphone /var/stash folder
    5) ssh into your phone as root, cd over to the /var/stash folder
    6) run this command:
    Code:
    dpkg -i essential_0-1_iphoneos-arm.deb cydia_x.x.xxxx_iphoneos-arm.deb
    7) run this command
    Code:
    respring
    8) open up cydia, it should now work

    I want to thank StealthBravo and the Admin over at theIphoneWorld, because without their help/posts, I wouldn't have been able to come up with the fix for my problem

    dear sir ,

    1 downloaded both files
    2 i copied both files to iphone i.e Rawfilesystem/Var/Stashfolder
    step 4,5,6, i didnt understand
    how & where to run command in phone or pc
    thanks in advance

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •