Here is how you can fix the Cydia Error “Could Not Open file /var/lib/dpkg/status for iOS 10 after jailbreak.
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.
How to Fix the Cydia Error “Could Not Open File /var/lib/dpkg/status” – iOS 10
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
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.
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.
Now launch iFunBox.
From the sidebar of iFunBox open iBooks
Now from the Cydia Fix folder which you downloaded earlier, drag and drop the entire “lib” folder on to the iBooks directory in iFunBox.
Open Cydia Impactor and check if it has detected your device
Again drag and drop the MobileTerminal.ipa file from the Cydia Fix folder on to Cydia Impactor
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.
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.
There find the profile with your ID and open it. When a pop up appears, tap on the big Trust button.
Now from your devices home screen launch the Mobile Terminal application. Before you open it make sure your device is in a jailbroken state.
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:
Cp-R /var/mobile/Media/Books/lib /var
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”.
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,
Launch Terminal on Mac
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.
Enter this command: yes
Now enter the command: alpine
Next enter this command: cp – R /var/mobile/Media/Books/lib/var
Enter this last command: mkdir /var/log/apt
Reboot your device.
The error will now be resolved. If this method does not work for you, there is a second method as well.
Using a USB cable, connect your iOS device to your computer and then launch iFunBox
On the top of iFunBox click on Quick Toolbox. There under the Advanced Section click on the USB Tunnel.
Next copy the PC address that is provided
Press the Open button
Type this command “su”
If “su” does not work enter“root”
Enter password to get the root access. Usually the default password is “alpine”
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
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
- 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.
Powered by Android e How