How to Fix the Cydia Error “Could Not Open File /var/lib/dpkg/status” – iOS 10

Here is how you can fix the Cydia Error “Could Not Open file /var/lib/dpkg/status for iOS 10 after jailbreak.

could not open file var lib dpkg status

Apparently the latest iOS 10.1.1 jailbreak tool is in beta state at the moment so after you jailbreak your iOS device, you are bound to encounter several issues that will create problems for you. The major issue of this jailbreak is that Cydia does not support it. Cydia displays crash issues or doesn’t work after installing a Cydia tweak.

 

This appears after you jailbreak your device. The error message appears like this:

 

“Could not open file /var/lib/dpkg/status — open (2: No such file or directory)

This package lists or status file could not be parsed or opened.”

 

A lot of users have reported the Could not open file /var/lib/dpkg/status Cydia problem and so it is common among users, you aren’t the only one. This error prevents you from loading any package in Cydia and that way you cannot download or install any Cydia tweaks.

But here we have a quick fix for the Cydia error Could not open file /var/lib/dpkg/status. This fix easier and quicker and it can be performed on any computer platform suitable for you as in Linux, Windows and Mac.

So read ahead to read the method on how to fix Could not open file /var/lib/dpkg/status Cydia Error.

 

How to fix “Could not open file /var/lib/dpkg/status” Cydia Error

 

Step 1:

First and foremost you will require all the necessary tools and components to get done with this. The tools you require are mentioned below:

  • Download iFunBox for Windows and Mac. This allows you to navigate and edite the iOS file system. You can get it from this link here: iFunBox
  • The second thing you need is necessary Cydia Fix files. You can get them from here. Download them and unzip.
  • The last thing you need is Cydia Impactor tool. You can get it from this link here: Cydia Impactor.

Step 2:

Now that you have all the necessary tools downloaded and installed, we can get to the fixing process. Connect your jailbroken device to your computer using a USB cable.

Step 3:

Now launch iFunBox.

Step 4:

From the sidebar of iFunBox open iBooks

Step 5:

Now from the Cydia Fix folder which you downloaded earlier, drag and drop the entire “lib” folder on to the iBooks directory in iFunBox.

Step 6:

Open Cydia Impactor and check if it has detected your device

Step 7:

Again drag and drop the MobileTerminal.ipa file from the Cydia Fix folder on to Cydia Impactor

Step 8:

Now Cydia will require you Apple ID and password. Enter your ID and password. This is required because it will be sent to Apple to generate certificates required to sign and install MobileTerminal iPA on your iOS device. After you have entered the information Cydia will start installing the iPA file.

Step 9:

When the installation is complete you will be able to see the Mobile Terminal app on your devices home screen. No before anything go to your device Settings then tap on General and then Device Management / Profiles.

Step 10:

There find the profile with your ID and open it. When a pop up appears, tap on the big Trust button.

Step 11:

Now from your devices home screen launch the Mobile Terminal application. Before you open it make sure your device is in a jailbroken state.

Step 12:

The command line interface will be displayed in the back ground. There, type in this command and press Enter / Return after each command that you enter:

Su

Alpine

Cp-R /var/mobile/Media/Books/lib /var

Mkdir /var/log/apt

Step 13:

Once you have entered all the commands mentioned above, reboot your device.

Launch Cydia after putting your device back into the jailbreak state. You will no longer encounter the “Could Not open file /var/lib/dpkg/status”.

Done!

The Could not open file /var/lib/dpkg/status Cydia error is now solved and you can successfully continue installing new Cydia tweaks on to your device error free!

If you encounter an error when using the Mobile Terminal app then try this to resolve the error:

Fix “Not allowed to fork from inside Sandbox” error:

There are two methods that you can fix this error with,

Method 1:

Step 1:

Launch Terminal on Mac

Step 2:

Next, connect your iPhone to Mac and make sure both devices are on the same WiFi connection then enter this command:

Ssh [email protected] iPhone IP address

If you don’t know your iPhones IP address you can find it out from Settings > WiFi. Tap on the “i” next to the WiFi network you are connected to and there you will find the IP address.

Step 3:

Enter this command: yes

Step 4:

Now enter the command: alpine

Step 5:

Next enter this command: cp – R /var/mobile/Media/Books/lib/var

Step 6:

Enter this last command: mkdir /var/log/apt

Step 7:

Reboot your device.

The error will now be resolved. If this method does not work for you, there is a second method as well.

Method 2:

Step 1:

Download these following files on your device: Putty and iFunBox

Step 2:

Using a USB cable, connect your iOS device to your computer and then launch iFunBox

Step 3:

On the top of iFunBox click on Quick Toolbox. There under the Advanced Section click on the USB Tunnel.

Step 4:

Next copy the PC address that is provided

Step 6:

Press the Open button

Step 7:

Type this command “su”

If “su” does not work enter“root”

Step 8:

Enter password to get the root access. Usually the default password is “alpine”

Step 9:

Now enter this command:

cp -R /var/mobile/Media/Books/lib /var

  • Note: if you are getting this error “missing var/log/apt” then type in the command “su” and enter the password when required. Then type the command: mkdir /var/log/apt
  • If you get this error message: ‘trying to overwrite /Library/MobileSubstrate/DynamicLibraries’ then type the command “su” and enter your password when required. Type: cd /Library/MobileSubstrate/DynamicLibraries. And if the folder does not exist repeat Step 8.

Now Type ls -1. Now you will see two files. One of these files should be names “Dynamic Libraries”

Type in: rm DynamicLibraries

Step 10:

Launch Cyida and go on to install any Cydia tweak. For example if you’re installing iCleaner – a Cydia tweak – it will create a directory: /var/stash

ALTERNATIVELY
  • you can use Terminal to enter the command “su”
  • Enter the default password “alpine”
  • And last type in the command “mkdir /var/stash

This will hopefully fix the error you might encounter. Hopefully this article was helpful for you, good luck.

Here are some fixes to other Cydia errors that you might face:

LEAVE A REPLY

Please enter your comment!
Please enter your name here