iPhone World

Installing Cydia over SSH

by Vaelek on Aug.04, 2009, under Applications, Jailbreaking, Tips & Tricks

This Article is from 2009 and outdated. I do not even own an iPhone anymore. It is here only for historical purposes. I will be providing no further support nor will I be approving or responding to any comments.

In keeping up on the logs for the site I’ve noticed quite a few people arriving here after Googling some variation of ‘install cydia over ssh’. So to all of you out there, what exactly is it that you are looking for? The only conclusion I can draw is that folks are searching for jailbreak instructions using incorrect terms. That, or some of you have managed to remove Cydia and now need to get it back. Based on the fact that you cannot have the ability to SSH without first having Cydia, what other possibilities could there be?

If you are looking for jailbreak instructions, there is a guide in the menu on the right.

If you have managed to remove Cydia, first of all, BAD USER! Go stand in the corner! Why would you do that??

All reasons aside, if you’ve managed to get into this situation, you’ve come to the right place as I have a solution for you. First, download the following file.

Now unzip the file, you will have 2 .deb files. You will need to get them onto your phone using your client of choice (WinSCP, FileZilla, etc).

In an SSH session, change to the folder you put the debs in. Type exactly the following:

  • dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb; respring

If you attempt to install either on it’s own you will get errors and it will not work. Once it has finished, your phone should respring, and if all is well, you should again have Cydia on your springboard.

If the situation is that you simply deleted the Cydia.app folder, I can make that available as well but I’m not going to unless it’s requested you can download it as a zip here. I zipped it directly on the device preserving the permissions, so you can either unzip it on the device, or make sure that after FTP’ing, you right click the Cydia.app folder to edit the permissions, set it to 755 and choose the recursive option.

So there you all go. Hopefully this is what you guys have been looking for, if it is not, be sure to make yourself heard in the comments. As you can see, your questions get answered even if you do not ask them, imagine what might happen if you do!


This last section is mainly for the search engines, but if you attempt to install just Cydia, you will get:

Unpacking cydia (from cydia_1.0.2953-59_iphoneos-arm.deb) …
dpkg: dependency problems prevent configuration of cydia:
cydia depends on essential; however:
Package essential is not installed.
dpkg: error processing cydia (–install):
dependency problems – leaving unconfigured
Errors were encountered while processing:
cydia

likewise, attempting to install just essentials will yield:

Unpacking essential (from essential_0-1_iphoneos-arm.deb) …
dpkg: dependency problems prevent configuration of essential:
essential depends on cydia | com.ripdev.icy; however:
Package cydia is not configured yet.
Package com.ripdev.icy is not installed.
dpkg: error processing essential (–install):
dependency problems – leaving unconfigured
Errors were encountered while processing:
essential

:, ,
98 comments for this entry:

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

  1. Jack Hale

    Wow… you are the best, my friend. This solution worked absolutely perfectly for me. What happened on my end was this- Cydia kept crashing after failing to install a package properly. I went through instructions on how to re-install it through Mobile Terminal on the iphone itself. The problem was, the terminal wasn't able to re-install Cydia. So the only way was for me to re-install Cydia through SSH. Thats where your post came in- That single command typed through WinSCP re-installed cydia, resprang the springboard and now I am back in business. Thank you VERY much!

  2. grungerabbit

    You are a hero. I had the same issue as Jack; Cydia crashed while attempting to install a package and never recovered. I uninstalled using Icy and couldn't figure out how else to get Cydia back, thanks so much

  3. Marco Moretti

    You're the man!

  4. JackDestripador

    Please help, ive put these *.deb files onto my ipod via filezilla, im a little confused as to where to put them, and secondly, using filezilla, how do i unpackage these? PLEASE PLEASE help!!
    Thank you in advance.

  5. mita

    I touch the Cydia icon and it starts to load (Displays the black top and bottom borders) and then crashes back to the springboard. Trided doing your solution and it did not correct the issue. (iPhone 2G OS3.01)
    Error:
    Command 'dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphones-arm.deb; respring ' failed with return code 127 and error message
    -sh: line 43: respring: command not found.

    Please help!

  6. Vaelek

    It doesn't matter where you put them so long as you remember the location. Once you have transferred them to the phone, connect via SSH with putty or something, go to the folder you put the debs in, and type the dpkg command from the article.

  7. Vaelek

    I would suggest re-jailbreaking. If you do not have respring in your path, then you probably used an earlier version of the 3.0 jailbreak. Along with that you should end up with a working Cydia again. You don't have to start all over, just grab the latest redsn0w and run through it again.

  8. john

    great work. i deleted the Cydia.app. the situation is that O delted the Cydia.app folder, can you make this available if can
    thank you.

  9. Vaelek

    Sure thing, I've added a link to it in the article, enjoy!

  10. Addison

    Thanks so much for the instructions and the files. I updated mobile substrate this morning and I and not sure if it worked or not because my phone reset and then every time I tried to open cydia it just exited but it works now. Thanks a bunch!

  11. Guest

    I followed your instructions to reinstall but Cydia still crashes at the 'Loading Data' screen. The following is what I get when I execute the 'dpkg …' command listed above:

    /$ dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb; respring
    dpkg: serious warning: files list file for package `com.sinfuliphone.snapture' missing, assuming package has no files currently installed.
    (Reading database … 1921 files and directories currently installed.)
    Preparing to replace essential 0-1 (using essential_0-1_iphoneos-arm.deb) …
    Unpacking replacement essential …
    Preparing to replace cydia 1.0.2953-59 (using cydia_1.0.2953-59_iphoneos-arm.deb) …
    Unpacking replacement cydia …
    Setting up essential (0-1) …
    Setting up cydia (1.0.2953-59) …
    2009-08-27 23:01:47.649 respring[236:903] 3.0.1
    —————————————————————–

    Is there anything else I can try?

  12. Vaelek

    If you happen to have syslogd installed I would suggest SSH to your phone, type 'tail -f -n 0 /var/log/syslog' and launch Cydia, see if anything useful is outputted. If you do not, I'm not sure what to tell you. You may be able to simply run redsn0w again just be aware that doing so will likely reset your repo's back to stock default. Depending on where exactly the crash is happening, you could try turning on airplane mode and then launching Cydia. If it survives that then it may be ok after turning airplane mode off again.

    Let me know how it goes.

  13. Mr.A

    I just found this article via Google, I was downloading a Jaguars EDGE/3G icon for my iPhone and the my phone rebooted and ever since then I haven't been able to load up Cydia all day. I open Cydia, the top and bottom bars along with the blackbackground show, but then it closes/crashes and back to the springboard.

    I can't wait to try this out when I get home, I miss Cydia. :)

  14. Vaelek

    Best of luck to you! Come on back if you have any problems and I'll do my best to help.

  15. BKH

    So call me stupid but i dont see how this you explained anything well at all. Where do I put the deb files? "anywhere" how do i unpack the deb files? step by step please!!!! i download the files onto pc, then i take the 2 files and copy them into my ssh then what?????

  16. Vaelek

    Where you put them is not important as long as they get on your phone. You then ssh to the phone, go to the folder you put the debs in, and type the command in the article. When you run dpkg it will unpack and install everything.

  17. Mr.A

    hey man…let me first say I LOVE YOU! haha, jk I'm just happy!…I followed your instructions and installed the debs and it rebooted and now Cydia loads fine. It was the last package I had downloaded (didn't finish all the way prior to the sudden reboot in the middle of the download) that was causing Cydia to hang and crash. Once Cydia loaded up again I got a "Forcibly clear" popup telling me that the previous package was the culprit. So I removed it.

    Man I'm so happy, seriously! Thank you very much for taking the time to show us this and I plan on checking out your site regularly (just got the rss feed).

    A few more questions (i'm a noob):

    On another one of your articles I saw the following…

    ‘dpkg –l’ (that’s an L). This will show everything you’ve installed via Cydia/Icy.

    Can I execute that command on the root of the iPhone when I SSH?

  18. Vaelek

    Glad to hear it helped you! To answer your question yes, you would execute that within an SSH session.

  19. BKH

    Jees. Lets calm down here. First of all i post the comment, in 10 min reload the page and the comment is still sitting there in the white box like i never submitted it. Second of all you do not explain WHERE to type the command for some of us that are noobs to all of this, is fairly confuseing. Either way figured that where i was supposed to type that "command" was in the terminal option on winscp. If that is correct then cydia still does not work. But then again without an explanation as to where i am supposed to type said command then i have no idea whats right or wrong. as for finishing my thought i thought it was pretty clear, i downloaded something from cydia, cydia then crashed, i then went into winscp and deleted cydia, found this article and did what was said. But again it appears that these directions are not as detailed as they should be. No offense!!! But i lost you at type command. theres a part where you say "In an SSH session, change to the folder you put the debs in. Type exactly the following:" so change my root folder's name to that command? then what???

  20. Vaelek

    Allow me to clarify. What you are calling SSH is actually SFTP, which is what WinSCP does. I’m not 100% sure I follow what you said but if you renamed the root folder you need to rename it back asap or you will run into problems.
    SSH is basically a secure version of telnet. I recommend an app called Putty. If you Google ‘putty’ it will be the first link and grab putty.exe. Use that to connect to your phone, again using root/alpine to log in. You will be at a command line so type without quotes “cd /the/dir/you/put/the/debs/in” and hit enter. Then put in the dpkg line from the article. If you have any problems, paste the results of the dpkg command in your response and we’ll take it from there. As far as the reloading goes, I’m not sure what happened there. If it does it again please try going to the home page and making your way back to the article.

  21. Vaelek

    Something is not right with the comment system. I will look into it, ignore any backslashes (\\) in my instructions as they should not be there.

  22. Vaelek

    damnit it didn't display there either if you don't know what backslash is it's the one that is the opposite of /

  23. BKH

    Administrators-iPhone:~ root# Administrators-iPhone:~ root# /private/var/root/Cydia
    -sh: /private/var/root/Cydia: is a directory
    -sh: Administrators-iPhone:~: command not found
    Administrators-iPhone:~ root# dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb; r espring
    dpkg: error processing essential_0-1_iphoneos-arm.deb (–install):
    cannot access archive: No such file or directory
    Administrators-iPhone:~ root# -sh: /private/var/root/Cydia: is a directory
    -sh: -sh:: command not found
    Administrators-iPhone:~ root# Administrators-iPhone:~ root# dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb; r espring
    -sh: Administrators-iPhone:~: command not found
    -sh: r: command not found
    Administrators-iPhone:~ root# dpkg: error processing essential_0-1_iphoneos-arm.deb (–install):
    -sh: syntax error near unexpected token `('
    Administrators-iPhone:~ root# cannot access archive: No such file or directory
    -sh: cannot: command not found
    Administrators-iPhone:~ root# dpkg: error processing cydia_1.0.2953-59_iphoneos-arm.deb (–install):
    -sh: syntax error near unexpected token `('
    Administrators-iPhone:~ root# cannot access archive: No such file or directory
    -sh: cannot: command not found
    Administrators-iPhone:~ root# Errors were encountered while processing:
    -sh: Errors: command not found
    Administrators-iPhone:~ root# essential_0-1_iphoneos-arm.deb
    -sh: essential_0-1_iphoneos-arm.deb: command not found
    Administrators-iPhone:~ root# cydia_1.0.2953-59_iphoneos-arm.deb
    -sh: cydia_1.0.2953-59_iphoneos-arm.deb: command not found
    Administrators-iPhone:~ root# 2009-08-29 00:59:52.321 respring[841:903] 3.0
    -sh: 2009-08-29: command not found
    Administrators-iPhone:~ root# Administrators-iPhone:~ root#
    -sh: Administrators-iPhone:~: command not found
    Administrators-iPhone:~ root#

  24. Vaelek

    you forgot to type cd before the folder name to start off and that hosed up everything else because you were not in the folder. also, respring should not have a space in it at the end. Past that it looks like you discovered that selecting text with the left mouse button automatically copies it and right clicking automatically pastes. So give it another shot, including cd before the folder name, and taking the space out of respring.

  25. BKH

    Administrators-iPhone:~ root# cd/private/var/root/Cydia
    -sh: cd/private/var/root/Cydia: No such file or directory

    Administrators-iPhone:~ root# cd/private/var/root/Cydia
    -sh: cd/private/var/root/Cydia: No such file or directory

    Administrators-iPhone:~ root# Administrators-iPhone:~ root# /private/var/root/Cydia
    -sh: /private/var/root/Cydia: is a directory

    Administrators-iPhone:~ root# /private/var/root/cdCydia
    -sh: /private/var/root/cdCydia: No such file or directory
    -Tried every way i could think of and still nothing

  26. BKH

    so i figured out that there had to be a SPACE between "cd" then i found out that cydia was crashing because of a "krystalcalc" theme so i had to do this……

    /$ com.modmyi.krystalcalc
    -sh: line 7: com.modmyi.krystalcalc: command not found
    /$ apt-get remove cydia
    Reading package lists…
    Building dependency tree…
    Reading state information…
    E: The package com.modmyi.krystalcalc needs to be reinstalled, but I can't find an archive for it.
    /$ apt-get install com.codmyi.krystalcalc
    Reading package lists…
    Building dependency tree…
    Reading state information…
    E: The package com.modmyi.krystalcalc needs to be reinstalled, but I can't find an archive for it.
    /$ dpkg –remove –force-remove-reinstreq webmin
    dpkg – warning: ignoring request to remove webmin which isn't installed.
    /$ dpkg –remove –force-remove-reinstreq com.modmyi.krystalcalc
    dpkg – warning, overriding problem because –force enabled:
    Package is in a very bad inconsistent state – you should
    reinstall it before attempting a removal.

    dpkg: serious warning: files list file for package `com.modmyi.krystalcalc' missing, assuming package has no files currently installed.
    (Reading database … 7868 files and directories currently installed.)
    Removing com.modmyi.krystalcalc …

    Now it works…..thanks for your pacience!!

  27. Michael

    F***ing awesome I was about to throw a fit thank you soooooooo much for the help that was awesome. ok so for those who don't get it I took the 2 files (not the folder) and placed them in /var/root make sure you are on the right side then run the command and the bottom of winscp issue resolved Vaelek I have read some of our posts on other sites and you should be considered an Iphone god. Thanks again!!!!!

  28. Belinda

    You will need to get them onto your phone using your client of choice (WinSCP, FileZilla, etc). Do I just drag them to the root directory?

    In an SSH session, change to the folder you put the debs in. Type exactly the following: I'm confused about this part….

    dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb; respring where do I type this?

    I'm not computer savvy AT ALL….but I managed to gather everything I need to make an attempt of putting Cydia on my iphone.

    Any assistance would be greatly apppreciated.

  29. Belinda

    /private/var/root$ dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb;respring
    (Reading database … 1786 files and directories currently installed.)
    Preparing to replace essential 0-1 (using essential_0-1_iphoneos-arm.deb) …
    Unpacking replacement essential …
    dpkg: regarding cydia_1.0.2953-59_iphoneos-arm.deb containing cydia, pre-dependency problem:
    cydia pre-depends on dpkg (>= 1.14.25-8)
    dpkg is installed, but is version 1.14.25.
    dpkg: error processing cydia_1.0.2953-59_iphoneos-arm.deb (–install):
    pre-dependency problem – not installing cydia
    Selecting previously deselected package cydia.
    Setting up essential (0-1) …
    Errors were encountered while processing:
    cydia_1.0.2953-59_iphoneos-arm.deb
    2009-09-04 11:08:32.727 respring[600:903] 3.0.1

    ok. why am i getting this?

  30. Vaelek

    That is a new one. Basically it means Cydia wants a newer version of dpkg than you have installed. I am at work currently but I will do my best to provide you with a deb of dpkg as soon as I can as well that you will have to install prior to Cydia. Kudos on getting this far without help based on your first comment.

    If I may ask, what happened that drove you to this method?

  31. Vaelek

    The comment system for some reason likes to mangle links, if you have problems with it and can't figure it out, please remove everything after .deb in the link and you should be good to go.

  32. Belinda

    Vaelek,

    I used to say I couldn't do this stuff without even attempting….but I've been able to unlock hoards of iphones, and reputable people have been telling me if I have the patience to read and unlock those iphones, this should be easy for me…..Considering how far I've gotten, it's really not so hard, thanks to people like you who render assistance at the drop of a hat. I'll try anything once. Thanks for everything. I have to wait til get off from work at 7am before I try out your suggestion.

    Belinda

  33. marsbarbabe

    Hi – thanks for your efforts. I thought this was the answer to my problems.

    After installing SBSettings, Cydia stopped working for me. It just goes to the 'loading data' bit and then returns to the spring board :(

    I tried your files and commands as above and all seemed to process as it should BUT I still have the problem with Cydia ending and going back to the SB.

    Is there a safe way of removing SBSetting without Cydia?

    I am loathe to re jailbreak and reunlock – and read your notes a few 2 weeks ago above which says ..
    "I would suggest re-jailbreaking. If you do not have respring in your path, then you probably used an earlier version of the 3.0 jailbreak. Along with that you should end up with a working Cydia again. You don't have to start all over, just grab the latest redsn0w and run through it again."
    .. Surely that IS starting all over? I'll have to re jailbreak AND re unlock it and then resynch everything won't I?

    Thanks for your time.
    MBB

  34. Vaelek

    Actually no. Re-running Redsn0w will re-copy the jailbreak files to the device, along with Cydia. Everything you have already installed will still be there and you don't need to do a restore before you can re-run Redsn0w. The only thing I have not yet confirmed is whether or not it will reset your repos to the default list or not, but you should not have to re-unlock or re-sync anything afterwards. One thing I would suggest is looking at crash logs for anything useful. On iPhone they are at /private/var/mobile/Library/Logs/CrashReporter/MobileDevice/. Look for files with Cydia in the filename. Sometimes there is nothing usable but often it will clue you in to permissions errors or other easily fixable problems. If you find these but they don't mean anything to you, you can either post the contents or attach the file(s) to a post in the forums. The comment system will not do nice things to it if you try to paste it into here, and I'd be happy to take a look and offer any suggestions I can.

    If when you SSH (not sftp) and type respring, if the command is not found, then you did use an older version of the jailbreak and I would recommend re-running it as I did have a lot of Cydia crashes with the first couple releases.

  35. Belinda

    /private/var/root$ dpkg -i dpkg_1.14.25-9_iphoneos-arm.deb
    (Reading database … 1938 files and directories currently installed.)
    Preparing to replace dpkg 1.14.25-9 (using dpkg_1.14.25-9_iphoneos-arm.deb) …
    Unpacking replacement dpkg …
    dpkg: dependency problems prevent configuration of dpkg:
    dpkg depends on coreutils-bin; however:
    Package coreutils-bin is not installed.
    dpkg depends on lzma; however:
    Package lzma is not installed.
    dpkg: error processing dpkg (–install):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:
    dpkg

    ? I can't began to understand what this error is saying….

  36. marsbarbabe

    Hi – thanks very much for taking the time to answer.
    OK I re-ran redsnow and you were right in that I didn't need to install anything else again – everything was still there :)
    Unfortunately so was the Cydia crashing problem. It still crashed when trying to load.

    Another thing it did that scared me was the sad iphone screen after closing TomTom down.

    I've only just used the latest 0.8 redsnow yesterday when I decidede to upgrade to fw 3.0 so it should be the latest one (from iclarified tutorial) but I ran the command respring anyway from the terminal using WinSCP – it DID respring the iPhone but also came up with an error – "failed with return code 0 and error message 2009-09-005 20:08:28.565 respring(383:903) 3.0" – not sure what that means.

    I have also copied the contents of my crashreporter and uploaded it it here –

    http://rapidshare.com/files/276092931/iPhone_cras...

    I did have a little peek using notepad but it all seemed not to make much sense to me. If you do have the time to have a peek that might be interesting.

    Do you think I'd be best at this stage to bite the bullet and restore the firmware and start over? I think after reading other comments I'll try it without the 5 column and 5 icon dock thingys this time.

    I'm also wondering if there's a specific order I should be doing things in? I will probably do them in this order..

    restore firmware
    jailbreak
    unlock
    add source cydia.hackulo.us to cydia
    add installous
    add winterboard
    add appsync 3.0
    add SBSettings
    then restore the music and apps using iTunes backup
    then try again to add some themes and lockscreen.

    Does that sound like a reasonable plan?

    Thanks again for your help :D

    MBB

  37. Vaelek

    I am in my car so I only have a short response for now, if you restored a backup after updating to 3.0 that could be the problem. If you did not, then I would strongly advise against it in the future. I will look at the logs in about an hour or so and respond proper.

    Sent from my iPhone

  38. Vaelek

    After all that I totally ignored your question also. As far as the order that you install things, if you take my suggestion i would put syslog/apt/sbsettings high on the list. Unlocking is important so that should be first, but i would then install those before continuing further in the event that something goes wrong and you end up in the same situation, you will be much better equipped to deal with it. Other than that it is really a matter of preference as far as the order goes. Though I also like to recommend installing a free app store app right after AppSync just to avoid any potential side effects of putting it off.

  39. marsbarbabe

    Hi ya. Thanks again for your promt help again. :)
    I tried running in safe mode = same problem.
    I tried turning off ALL the substrate addons = same problem

    I didn't realise that restoring your contacts and music etc via iTines from a v2.2 backup to a fresh v3.0 wasn't recommended. Do'h! This is definately what I had done. And perhaps is the cause of my problems.

    Bearing all the above in mind I think I'll do it all again – a little more in the know so to speak (thanks to you) and will def install Apt 0.7 Strict and syslog as well as syslog sbsettings toggle. And will set it up as a new phone within iTunes.

    I'm most impressed with your knowledge and helpfulness – thank you :D

    EDIT: 1hr later.. OK I've re done it all and it seems to be good. Cydia works along side SBSettings OK and I've installed most other things too. :)

    I just can't work out how to get lock screen working :( but I won't bother you with that one – you've helped enough already.

    Thank You Vaelek
    MBB

  40. Belinda

    Vaelek, I finally got around to trying what was suggested and VOILA! thx bunches! you're the man.

  41. Tomas

    I accidentally deleted the /usr/bin/dpkg package and now I am not able to do anything in Cydia. What should I do?

  42. TheDoost

    I have a jb phone (redsn0w) but my wifi is broken. How do I install ultrasn0w without Cydia? Can you please give hand?

  43. just4funuk

    I have read that cydia will remove the BSD Subsytem when installed. As I am a Newbie I am not sure what impact this will have. At this present time the iphone is running firmware 1.1.1 and installer 3.11. The phone is open to all networks. Is there any chance that running a cydia installation would remove the any network sim unlock. I have read that the phone side is say like an external modem so it has its own settings and OS structure is this correct. Don't want to end up with a paper weight. Thanks to anyone that supplis any advice

  44. Vaelek

    If you are relying on ultrasn0w for the unlock, it will work up to 3.0.1 currently. The BSD subsystem is not removed, but rather replaced with a more stable version. To be honest I can't say what effect this would have on a phone still running a 1.x firmware. I do not believe much if anything available via Cydia would even run on 1.x these days, and I'm rather amazed that you've stuck with it for so long without upgrading. What you say about the phone side, is called the baseband. It is like its own little firmware for the modem. Not all OS updates also come with a baseband update, but as I said ultrasn0w is able to unlock a phone up to 3.0.1. Also you say you run Installer, which has been discontinued and any remaining repositories for it will likely start to disappear.

  45. aaa

    Thank you so much, i would have never figured out that i needed to install essentials at the same time. I did however need to download the latest cydia deb inorder for it to work.

  46. Vaelek

    Glad to hear you got it working!

  47. RemoBrian

    Hi,

    I try to run it but my Cydia still crash at start up. Please help. Here was the execution:

    I am using WinCSP and I had installed Icy and enabled OpenSSH for this.

    /$ dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb; respring
    (Reading database … 770 files and directories currently installed.)
    Preparing to replace essential 0-1 (using essential_0-1_iphoneos-arm.deb) …
    Unpacking replacement essential …
    Preparing to replace cydia 1.0.2948-58 (using cydia_1.0.2953-59_iphoneos-arm.deb) …
    Unpacking replacement cydia …
    Setting up essential (0-1) …
    Setting up cydia (1.0.2953-59) …
    -sh: line 7: respring: command not found

  48. Vaelek

    It looks like you used an earlier version of the jailbreak, older releases didn't have the respring command. I would try running the latest redsn0w. Though you might get lucky if you respring w/ sbsettings or just reboot the device after reinstalling the debs if you haven't already.

  49. Vaelek

    Do you have SSH installed? What files did you delete? Did you remove any folders? have you tried the method from the article?

  50. Shiva

    Hi , I have a problem with my I phone 3g Jailbreaked using redsonow .Today morning i installed ibluetooth from cydia and then installed a new repository after that when ever i am trying to go in to cydia it says loading and gets back to the spring board.
    Please help me in solving this as i am a new iphone user.

  51. Vaelek

    If you have ssh installed just follow the steps in the article. If you do not, the options are limited. I would try running redsnow again and see if that fixes it. You could also try reinstalling Cydia from icy or rock if you have them installed. Otherwise the only option would be to restore and start over. To safeguard yourself in the future, also check out the article (here) on a faster way to install cydia apps. Love to hear your results!

  52. connermcd

    You… are… AWESOME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  53. kayyg

    .yyur tha best man….lol…worked like a charm…..

  54. LBW

    I am trying to find a way to install openssh but do not have Cydia or dpkg installed. 3GS with 3.1.2 jailbroken with Pwnage without Cydia. Can use iPhoneBrowser to copy files over, but cannot find any tool to CHMOD. Clearly I could generate new .ipsw with Cydia but prefer to not have Cydia etc on the phone.

  55. Vaelek

    Without Cydia, and the packages it installs, I am not entirely sure what would be required to be performed manually and what it not being done would affect. My first suggestion, if you really don't want to have Cydia on your phone it can always be removed once it's served it's purpose. If that is not something you want to do, do you have any way of extracting files on your phone? (zip, tar) If you do, I can provide any files you need in an archive with permissions already set. As long as they're still preserved when extracted that should do the trick.

  56. LBW

    No, but I guess I could try to install zip, but still have problem of setting permissions. Would also have to have autostart script to unzip the file…. but I guess that needs permissions as well. So hence I am stuck. If you could post zip that would be great.
    Thanks.

  57. Vaelek

    What I actually meant is if you have an app that can unzip. If you can't set execute permissions then providing you with the zip binary wouldn't do much good. I'm not really sure what you mean about autostart scripts and such. If you can explain the whole issue perhaps I can help better.

  58. dexter412

    recently i deleted some of the files in cydia..accidently ofcourse..i was using diskaid to get into the iphone files and all…as it turns out cydia doesnot show the packages nothing…previously also it didnot show the packages after i installed appulous…it was giving an error repo666 source was added two times..that was why i went to use diskaid..but as it turns out more problems…so can anyone help me with the problem solving thing and help me get me cydia back on track…

  59. dexter412

    the following are my errors:
    (1)Error Database:Lists directory /var/lib/apt/lists/partial is missing
    (2)Could not open lock file /var/apt/lists/lock – open (2 No such file or directory)

    help me with it.so that i can display all of my packages in cydia.

  60. kud0gfx

    Another Thankful comment, it worked! Love you!

  61. andre

    The link didnt work 4 me………is it another 1??? I really need that file again.thanks

  62. mriphone

    Hey bud,
    THanks for saving me a ton of time. Nice blog too btw. Happy New Year.

  63. Vaelek

    Excellent, Glad to hear it helped you out!

  64. Vaelek

    Please try again, I just tested it and the download link is still working.

  65. manu

    hi, i tried your solution on my iphone 3.1.2. i don't know why but i deleted cydia by mistake. blackra1n doesn't appear to work with my phone [after the reboot blackra1n isn't installed on my iphone] & I attempted your solution using terminal on mac & got the following result with no cydia app installed after the respring:

    Manus-iPhone:/var/cyd root# dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb; respring
    (Reading database … 2156 files and directories currently installed.)
    Preparing to replace essential 0-1 (using essential_0-1_iphoneos-arm.deb) …
    Unpacking replacement essential …
    Unpacking cydia (from cydia_1.0.2953-59_iphoneos-arm.deb) …
    Setting up essential (0-1) …
    Setting up cydia (1.0.2953-59) …
    2010-01-16 04:16:44.127 respring[398:903] 3.1.2
    Manus-iPhone:/var/cyd root#

    is there anyway you can help me get cydia back on my phone? thanks.

  66. Neoxavious

    Vaelek,

    I found this entry while searching for alternate Cydia install methods and since you’ve been so helpful answering people’s questions, I figured I’d pose you this conundrum. I have a unique reason for needing to manually install Cydia not covered in your guesses above as to why someone would need this information.

    My iPod Touch 3G, as it currently stands, seems to be “half-jailbroken.” I used blackra1n to jailbreak it, and got through all the steps leading up to the Cydia installation. I access blackra1n from my springboard, but the available installers fail to load, and I am stuck here–this is almost definitely because I currently live in China, where many websites are blocked. On my computer, I just use Tunnelblick to proxy around this, but this is impossible on my iPod touch. I am unable to install Cydia by conventional means because whatever website hosting the files linked through the blackra1n app is blocked in China. Because of this, I have no access (that I know of) to SSH, or any other means of installing Cydia. Are there any other methods of getting Cydia on my iPod Touch? Thanks!

  67. Victor G

    OMG after searching running deleting some of my crapola trying to follow all of the different tips which by the way taught me a few things about Terminal so thanks guys nothing was working for me UNTIL!!!!! ( I want to slap myself and everyone else like me ) If you were lucky enough to install ROCK, Go into it and search for Cydia….. What do you know there it was staring at me right in the face "Cydia installer" son of a bi*@h. clicked it and it worked like a charm… Please pass this on

    Victor G

  68. Hans Wiggers

    Hi, Being totally new to the iPhone world, I deleted the Cydia app using Cydia itself (how dumb can you get). Fortunately It did not destroy the SSH connection, so I followed your installation instructions, including restoring the cydia.app after installing the .deb files. All went without a hitch except .. I see no Cydia icon on my phone. Also apt-get deos not seem to be there. Any suggestions? I am loath to re-jailbreak because i am not quite sure how this phone was jailbroke in the first place. I bought it on eBay. Any help would be appreciated.
    Cheers,
    Hans Wiggers

  69. James

    Glad I wasn't the only one standing in the corner. Thanks alot!

  70. CoolGuy

    U da Man!! : )
    Thx alot!

  71. nathan

    i followed the deb installation. but cydia continues to crash on startup/

  72. jujinz

    Hello Vaelek,
    Thank you for providing support for resurrecting Cydia. I've read through the blog comments trying to resolve this myself but my device is not responding as expected. It's likely that I'm blowing it somewhere along the way and any help would be greatly appreciated.

    Here is my scenario:

    • Installed SBSettings Vibrate Toggle through Cydia with no problems or errors.
    • Tried the Toggle and realized that it's completely useless.
    * Opened Cydia in an attempt to uninstall the Toggle.
    * Cydia crashed identically to the way many others here have described:
    Begins to load, shows default screen for half a second,
    fails to load and snaps quickly back to the spring board

    Here is what I've done to resolve the problem:

    • Downloaded and unzipped the 2 deb files from your site.
    essential_0-1_iphoneos-arm.deb
    cydia_1.0.2953-59_iphoneos-arm.deb
    • Uploaded both of them to /var/mobile via SSH (Cyberduck – A Mac SFTP Client)
    • Opened the /var/mobile folder containing the newly uploaded files in an SSH session
    • Copied the code string directly from your instructions
    dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb; respring
    • Chose GO > SEND COMMAND from Cyberducks menu bar
    • A window opened displaying a TERMINAL icon, input field and results pane.
    • I pasted the code string into the command line input field and clicked SEND
    • The sent command returned these errors in the results pane

    dpkg: error processing essential_0-1_iphoneos-arm.deb (–install):
    cannot access archive: No such file or directory
    dpkg: error processing cydia_1.0.2953-59_iphoneos-arm.deb (–install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    essential_0-1_iphoneos-arm.deb
    cydia_1.0.2953-59_iphoneos-arm.deb
    2010-02-17 00:59:55.642 respring[527:903] 3.1.2

    • The phone did a respring but Cydia still crashes

    I'm doubtful this solution is going to work for me after reading how simple and effective it has been for others but like I said before, maby I'm missing something. Any obvious mistakes in my process that you can recognize?

    SIDE NOTE:
    You mentioned in one reply that the jailbreak can be, "re-run" using redsn0w. Will doing a re-run that way allow me to keep all of my jailbreak apps, tweaks and themes in tact? I've only used Pwnage Tool which requires a complete wipe and restore of the entire phone.
    Thanks

  73. jujinz

    The files seem to have installed correctly after using the absolute path names like you suggested. Unfortunately Cydia still crashes.

    (Reading database … 2908 files and directories currently installed.)
    Preparing to replace essential 0-1 (using …/essential_0-1_iphoneos-arm.deb) …
    Unpacking replacement essential …
    Preparing to replace cydia 1.0.2953-59 (using …/cydia_1.0.2953-59_iphoneos-arm.deb) …
    Unpacking replacement cydia …
    Setting up essential (0-1) …
    Setting up cydia (1.0.2953-59) …
    2010-02-18 10:17:12.596 respring[293:903] 3.1.2

    Looks like my problem runs deeper than just the Cydia app. I'll give redsn0w a try before I restore with my CustomISPW. Hopefully a re-run of the jailbreak will resolve the issue. I'm getting weary of restoring the entire phone as this will be the 4th time it's happened. Not sure why my phone is so unstable with the jailbreak. Maby I got a lemon…

    Thanks SO much for your suggestions and timely response, I appreciate it.

  74. Vaelek

    Do you have syslog installed? If not I would either install it and then from an SSH session, before you launch Cydia, type 'tail -f -n 0 /var/log/syslog' and watch for something useful
    or
    Re-run redsn0w or reinstall it via blackra1n depending on how you jb'd

  75. Vaelek

    I've held off on responding because I've been trying to figure out a solution for you. I am not familiar with the methods you guys have to use to get around all the blocking, but for you I would probably recommend using redsn0w or pwnagetool instead of blackra1n.

  76. Vaelek

    Your comment seems to have gotten lost in the mix, sorry about that. Have you been able to get past this yet?

  77. Vaelek

    Sorry your comment seems to have fallen through the cracks. Have you worked out the problems?

  78. @FitosMizah

    I deleted Cydia using Cydelete because it could not load.Tried Blackra1n to reinstall Cydia-after re-springing, the Cydia icon does not appear but all apps I downloaded thru Cydia still present and working on my iPhone running 3.1.2 , Can I use Cyberduck to try to SSH and install Cydia? Thank you.

  79. stpidfck

    ok, here's the deal, I messed up cydia AND i dont have mobile terminal. All the guides that I saw said you need cydia to install mobileterminal to install cydia. is there a way around this

  80. Vaelek

    If you had installed SSH you do not need mobileterminal to install Cydia. If you have not, then the plot thickens… If you jailbroke via blackra1n, I would try re-installing cydia from there first. If you used another method other than pwnagetool, you should be able to just re-run the jailbreak and in most cases it will repair whatever is causing Cydia to crash. Most people don't think of it, but if you can also install Cydia via RockApp if you have that as well. If none of those solutions work for you, unfortunately about your only option is going to be to start again.

  81. @gavcuk

    I have used Blackra1n to complete a tethered JB on my 3GS 3.1.2 but Cydia and Rock will not install (as either install and then respring the iPhone locks and then there is no app icon)

    I cannot seem to connect to the iPhone using WinSCP, FileZilla or PuTTy using the ip address, port 22 and root/alpine. Am I missing something? I do not have open SSH as I've never managed to get Cydia installed.

  82. Vaelek

    Without cydia, icy, or rock, there is no way to install openssh to be able to connect to it unfortunately. If you are not, I would try on wifi, it's possible at$t is blocking them now. If it still won't go, you may have to use redsn0w or pwnagetool

  83. none

    Been having the same issue-Ok, so here's what i did. Went to my blackra1n app. Installed Rock, searched and installed Cydia installer and was able to open up Cydia after that. You can remove the Rock app directly from Cydia if you wish. Only thing is once you open up the manage folder in Cydia the installed packages don't show up but they still seem to be working fine on the springboard. Hope this helps

  84. Greg

    I'm in a similar situation. the iphone has a VPN function. You need to sign up for a VPN (preferably L2TP) and set this up on your iphone. I've tried many but find 12vpn (www.12vpn) to be the most convenient as it allows several different protocols and unlimited changes between UK and US servers. Connect to the VPN before you download Cydia from blackrain and then also before you use Cydia as some of the repositories are also blocked.

  85. Disallusioned

    Everything went just as instructed but cydia still crahes right at it starting up

  86. Vince

    THANK YOU! Someone called me while I was updating the essential software on cydia and I guess it didn't install properly. This fixed it!

  87. Rushood

    /private/var/lib/apt/lists$ “dpkg -i cydia_1.0.3044-65_iphoneos-arm.deb”
    -sh: line 33: “dpkg: command not found
    /private/var/lib/apt/lists$ •dpkg -i essential_0-1_iphoneos-arm.deb cydia_1.0.2953-59_iphoneos-arm.deb; respring
    -sh: line 35: •dpkg: command not found
    2010-05-11 03:02:35.817 respring[428:903] 3.1.3
    plz help

  88. Mark

    My Cydia was crashing so I figured I would re install it which caused a ton of issues… ALL I HAD TO DO WAS INSTALL THE TWO PACKAGES AT THE SAME TIME!!!! OMG!! Thanks for the thread and posting the dependency output!!!

    I think my issues started when using the sinfuliphonerepo , as I have now reinstalled all the files using debs from elsewhere.. YOUR THE MAN!

  89. tonton22

    Worked like charm, thanks a lot

  90. AlphaRayz

    Perfect. Thank you for taking the time to create this tutorial. I installed something through Cydia which did not take. Usually, I simply need to exit out of and restart Cydia. This time however, no good. Of course as luck would have it, I did not have open SSH installed and hence could not remote in with WINScp. I was fortunate to find a software called iFunBox which let me access the iPhone directory. Dropped the 2 files specified in the varmobileroot directory of my phone and (fortunately I DID have mobile terminal installed) was able to run the command successfully. Thanks again!

  91. REVIEW IT BEFORE YOU BUY IT!!!

    **YOUTUBE VIDEO REVIEWS ON THE HOTTEST ELECTRONICS OUT**…

    #1 SITE FOR THE LATEST REVIEWS ON THE HOTTEST TECHNOLOGY HITTING THE MAINSTREAM!…

  92. SHOP ELECTRONICS!!!

    MOST INFORMATIVE SITE FOR ELECTRONICS….

    **YOUTUBE VIDEO REVIEWS ON THE HOTTEST ELECTRONICS OUT**…

  93. Daniel

    To author if this article,
    Did you not consider that people are arriving at this article because they are trying to UPDATE Cydia?

    Cydia is imperfect. In fact, it's oftentimes a god damn catastrpohe. A recent bug in Cydia causes it to crash under certain circumstances, and because of the giant fuckup by the dev-team over baseband 6.15, they are unable to update to 4.2.1 or 4.3.

    Therefore, people are arriving here to update Cydia without updating iOS. Why is that so hard to grasp? Moron.

  94. Vaelek

    To the ass-hat commenter. This post is from 2009. I have not owned an iPhone for almost a year now. This blog has not had any posts in almost a year. Put 2&2 together before you start calling people morons, you moron. And no, your reply to this will never be moderated so save your breath. All you iFanboys are all the same. Sit and spin dude.

    Use your fucking brain before you type next time asshole.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...