iOS 10.1/10.1.1 jailbreak for iPhone and iPad
iOS 10/10.1.1 jailbreak: How to fix Cydia ‘Could not open file /var/lib/dpkg/status’ error

Several users, who have jailbroken their device on iOS 10, are apparently facing a bunch of inherent bugs and broken features including an unexpected file error while launching the Cydia app. As the latest iOS 10 jailbreak is still in its beta stage, it is convenient indeed to have relevant fixes and workarounds handy for use.

Folks at Redmond Pie have shared an easy fix to get rid of the file open error with Cydia app after jailbreaking your device on iOS 10 using Yalu. This fix works on all three computing platforms including Windows, Linux and Mac, and hence you don't have to run around searching for a compatible system to run the fix on the affected device.

Jailbreakers are advised to check if they have encountered any of the error messages stated below as the fix is meant only for the specific file errors:

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.

Once you have verified that you are seeing similar or identical error messages with Cydia app, you can go ahead and perform the following steps to resolve the issue:

Step 1: Download and install the iFunBox utility for your computer, which enables you to explore the iOS file system on your computer. The utility is available on i-funbox.com.

Step 2: Download the Cydia Fix files to patch up all known bugs. The fix can be downloaded here.

Step 3: Grab the latest version of Cydia Impactor tool from cydiaimpactor.com for your platform: Windows, Mac or Linux.

Step 4: Plug in your jailbroken device to the computer via USB cable and launch iFunBox. Now go to File Browser and select iBooks in the left-hand column.

Step 5: Extract or unzip all the files from the Cydia Fix compressed package. You will now get a folder named "lib" and an IPA file.

Step 6: Drag and drop the lib folder to the iBooks directory in the iFunBox window.

Step 7: Open Cydia Impactor and drag/drop the MobileTerminal.ipa file into the interface while the device is still connected to the computer. Enter the Apple ID and password to authenticate the necessary certificates for installing the MobileTerminal IPA file. Input all the necessary details and let the Impactor do its job.

Step 8: Once the MobileTerminal app is installed, open Settings > General > Device Management. Choose the Apple ID from the list and tap Trust and then hit Trust again on the certificate to confirm the action.

Step 9: After ensuring that your device is in jailbreak mode, just launch the Mobile Terminal. You will be asked to enter a few commands using the command line interface. Just enter the following commands and hit enter after each line:

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

Step 10: Reboot the device and then reactivate or re-enable the jailbreak mode and then launch Cydia. The file open error should no longer appear if you did the steps correctly.

[Source: Redmond Pie]