iOS 9 Cydia “Could not open file /var/lib/dpkg/status” I've recently installed Pangu jailbreak where you get Cydia because a friend said it's a good way to customize your iPhone 6 (which I'm using) and other generations of iPhones.

At the end my Cydia and Pangu crashed instantly upon opening so I tried deleting it but Cydia is "impossible" to be deleted because it has no profile or "X" mark on the icon when removing it. 

So I looked up that you can search for "Cydia compactor" (I think that's the name of it) inside of Cydia, but the problem is when I go inside of Cydia there's a database error popping out instantly in "RED":

Could not open file /var/lib/dpkg/status - open (2: no such file or directory)

The package lists or status file could not be parsed or opened.
I really want to un-jailbreak my iOS 9.3.3 iPhone 6 but i need help fixing Cydia so i can search/ download the Cydia compactor (which again i think that's the name of it) which removes and un-jailbreaks your phone / cydia.

I tried every way to get rid of it: restore, reset and other stuff that did not work, Cydia compactor is the only way.

Some people say it's illegal but I just want to remove it because I don't want this kind of stuff on my iPhone anymore, if anyone could help that would be amazing.
The problem here is that Cydia can't find the file "status" in  /var/lib/dpkg. 

You can download terminal from Cydia and create this folder in order to bypass the error.

After installing Terminal, you  type

su


password is alpine by default. After that write these codes in order to create the folder.

cp -R /var/mobile/Media/Books/lib /var
mkdir /var/log/apt


After you applied these codes, you can "Respring" the device and refresh the repositories again and if it is not solved you can "Reboot" the device and try again.