cydia error database package header

Googled it and found that many have had the same problem. Each person has their own opinion as to what is wrong, but nothing consistent as to how exactly to fix it. Anyone here had this problem and has successfully fixed it? If so, what did you tweak to get it to work again.