Home > Tips & Tricks, Tutorials > FIX for Cydia Error:Database Encountered a section with no Package:header

FIX for Cydia Error:Database Encountered a section with no Package:header

CydiaErro_Database

If you have gotten the most annoying “Error:Database Encountered a section with no Package:header” error while trying to open Cydia you’re at the right place because we have a fix for you…

This error normally comes in if one of the sources go bad or have errors. This error if fairly easy to fix, so without loosing anymore time let’s jump right into it.

You will need to SSH into your iPhone and Navigate to the private/var/lib/apt/lists directory.

If you don’t know what SSH means or if you have never used it please Read This article before going forward with this tutorial.

Start WinSCP and connect to iPhone. In host name field, type in the IP address of your iPhone. Make sure the port number is set to “22” by default this option is already set to 22 but in case it’s not then change it. For user name use “root” and for password use “alpine(NOTE: This user name and password is the same for all iPhones and iTouch iPods ever made by Apple). Don’t worry about any other fields or options.

Once you have logged in to your iPhone, browse to private/var/lib/apt/lists directory.

CydiaErro_Database_2

Once you’re in private/var/lib/apt/lists directory, Files you will see are all the sources you have added and the ones that came with Cydia… Look at the ones that you have added right before you started experiencing the errors and delete those files…

If you remember exactly which SOURCE you have added before the error, then you should be able to see it in the directory… DELETE it and everything will be back to normal…

If you don’t remember which source you have added you can delete all the files except the “Partial” folder… Restart Cydia, This time you should not see the any errors or warnings. Go to Changes and press Refresh and all the changes should be there again!

You’re done… Good Luck!!!

SOMETHING TO THINK ABOUT

Since we have mentioned the Very Well known SSH User Name (root) and Password (alpine), we have to also give you another suggestion / reminder. There have been recorded Viruses, Worms, Attacks, etc. on Jailbroken Devices due to the default SSH password not being changed. Please change it and secure you device.

Remember, we have warned your about the SSH password and the vulnerability of the Jailbroken Devices… If you what to change your SSH Root Password (You should) follow these tutorials.

  1. kyle
    November 26th, 2009 at 19:32 | #1

    thx it works now :cool:

  2. December 1st, 2009 at 14:00 | #2

    Guys, this method did not work for me. What did work was I tried to install a mod from Icy. It gave me an error and gave me the file location of the error and line number in the file. I have a lot of mods installed through cydia, so it was like line number 2270 or something – in my private/var/lib/apt/dpkg/ folder and edited the status file in ftp or bbedit or text edit (windows). bbedit is preferred because it gives you line numbers. Anyway, each line break usually starts with a package header nomenclature. That one at line 2270 did not. I just deleted the that entry from line break to next line break and it worked. Then I reinstalled that mod. Worked for me! Good luck.

  3. heavenman88
    December 14th, 2009 at 01:27 | #3

    Hey Guys everywhere i go , the only solution for this problem is to use some kind of cydia app ( Open SSH or ifile) well , what if we do not have those installed? is there a way to go around it?

  4. roland
    December 15th, 2009 at 15:35 | #4

    i do i download openssh on my ipod touch if cydia doesnt work?

  5. Jack
    December 19th, 2009 at 08:55 | #5

    Hay I just jailbroke my iPod an the error popes up can I just rejailbreake my iPod plz some1 help

  6. Jack
    December 19th, 2009 at 08:55 | #6

    Can I just rejailbreake my iPod

  7. Bob
    December 27th, 2009 at 14:24 | #7

    Help! When I do it, it tells me connection refused. What do I do? Thanks!

  8. Simone
    December 27th, 2009 at 14:29 | #8

    Thanks a lot!!

    Cydia on my Jailbroken iPhone 3.1.2 works again!
    And….. i did it myself!

    Come on guys, if i can do it, every one can :-) (i’m blond and a woman LOL :-) )

  9. dodadodada
    December 29th, 2009 at 11:09 | #9

    tnx dude
    imine work 300% again

  10. sambayou
    January 3rd, 2010 at 11:33 | #10

    i can’t get my phone to jailbreak i always get error 1604 or 1600 on my itune i did folow all the steps any time

  11. Cooldread
    January 12th, 2010 at 10:42 | #11

    Worked like a charm! Cheers mate. :cool:

  12. Ohboynotagen
    January 18th, 2010 at 13:59 | #12

    Hi! I already know all the SSH stuff but I have a problem. My iPod doesn’t have SSH and I can’t access Cydia to get OpenSSH. Any other way I can SSH into it without Cydia? Please help, thanks.

  13. the_k
    January 20th, 2010 at 03:49 | #13

    great job.
    thx

  14. ofek
    January 21st, 2010 at 21:02 | #14

    It worked
    i love you!

  15. jbird124
    January 23rd, 2010 at 13:59 | #15

    @Bob
    i had the same problem for a lil bit… u must have accidentally turned ssh off so go into sbsbettings n turn it on

  16. January 24th, 2010 at 17:22 | #16

    Download iphone explorer on your pc and use your usb cable to get access to the root of your iphone. Search in google for iphone explorer!@Ohboynotagen

  17. Epix
    February 1st, 2010 at 23:00 | #17

    If you can not use cydia or get into cydia and used blackra1n to jailbreak. Then with the app blackrain on you pod or touch install rock. It’s about the same as cydia. To download the apps you need to fix cydia. I will try this fix tonight. I had quick reply and when it updated it messed my cydia up.

  18. Epix
    February 2nd, 2010 at 00:34 | #18

    very nice after trying this it worked. thank you so much!!! props

  19. meanboy454
    February 8th, 2010 at 01:23 | #19

    WOW U SAVED MY CYDIA SO I DONT NEED TO RESTORE IT THANX!!!

  20. Johan
    February 20th, 2010 at 10:47 | #20

    Dude thanks it works now, i was about to restore thanks again! ;-)

  21. nobody
    February 25th, 2010 at 01:44 | #21

    If you do not have OpenSSH installed you can use this: http://www.iphone-explorer.com/ to accomplish the same result.

  22. Das
    March 4th, 2010 at 23:31 | #22

    Hi guys,
    just follow this guy,

    for ppl who have problems with SSH method or winscp like i did,
    gave me stupid messages like “connection failed” and s**h like that,

    use this software, http://www.iphone-explorer.com/
    then navigate to that location,

    delete all the repo’s, restart cydia,

    do a full upgrade, it will ask u to,
    ur all done

  23. Kate
    March 6th, 2010 at 04:50 | #23

    phew!thanks soo much!it really works!!!

  24. Sean
    April 22nd, 2010 at 13:12 | #24

    If I do this will I loose my unlock? If I delete all of these source files I’ll be deleting repo666.ultrasn0w will that have an effect on my unlock?

  25. zach
    May 25th, 2010 at 14:48 | #25

    thanks alot

  26. noob
    June 28th, 2010 at 12:31 | #26

    What if I dont have Wi-fi connetion? can I fix it? I have 3G network on my iPhone, but I cant do it with openSSH

  27. July 26th, 2010 at 01:36 | #27

    thanks alot

  28. December 21st, 2010 at 01:52 | #28

    After using the method of modifying the cydia plst file and the problem comming back when I try to install new sources I came upon this method which worked like a charm http://surreystore.com/Forums/tech-help/how-to-fix-error-refreshing-data-problem-in-cydia/msg122/#msg122

    I think it is the easiest way and using the terminal client for the first time makes me feel like I am really getting to use my iPhone in a cool way

  29. Casper
    December 26th, 2010 at 06:36 | #29

    You’re God sent!!!

    Go to: private/var/lib/apt/lists and delete all files EXCEPT THE “PARTIAL” FOLDER and boom everything will come back to normal!!!

    It works!!

    God bless you!!!

    Just do it!

  30. sushi
    March 11th, 2011 at 16:51 | #30

    before my cydia got screwed up it said that i needed to get more memory….i have 3gb left and i deleted a bunch of apps….and i tried your way and it STILL didnt work….its kinda stupid…PLZ help me

  31. mdc31997
    April 8th, 2011 at 20:25 | #31

    @Ohboynotagen use iPhone explorer

  32. Anon
    September 3rd, 2011 at 00:59 | #32

    Great fix man, so many other fixes require ubitu or some bogus shit, yours was a great and fast fix!

  1. April 19th, 2010 at 08:39 | #1
  2. August 28th, 2011 at 05:52 | #2