What's new

Tutorial How to Fix Cydia - Could Not Open File | iOS 9/10

  • Thread starter Noobert
  • Start date
  • Views 74,854
Noobert

Noobert

RGH/Flashing Support
VIP
Retired
Trifecta Scaling the Mountain Mythical Veteran
Messages
8,382
Reaction score
4,645
Points
2,315
Sin$
0
This guide is for the people who, after jailbreaking, experience the error:
Could not open file /var/lib/dpkg/status - open (2: No such file or directory)

The reason there are 2 Spoilers below, is because the iOS 9 Fix does not work on iOS 10.
The Yalu iOS 10 Jailbreak comes bundled with OpenSSH, allowing you to fix the issue with WinSCP.

Click Here for iOS 9.X.X
Downloads
Cydia Fix: [Click here to view this link] | Virus Scan
Cydia Impactor: Link
iFunBox 3.0: Link
  1. Download and Install iFunBox.
    Plugin your iDevice when Finished.

  2. Head over to File Browser, and look for iBooks
    1d42c537153c6a45c1b56fa61ff0d501.png


  3. Extract the Cydia Fix.zip, and you'll receive a folder 'lib', and a .IPA file.

  4. Drag the entire 'lib' folder, into the iBooks within iFunBox.
    AO5BANU.gif


  5. Next, download and extract Cydia Impactor, and open the program.

  6. Drag the 'MobileTerminal.ipa' into Cydia Impactor and it'll ask for your Apple Login.
    rEZUWMY.gif


    The reason it asks for your login, is to make a temporary certification.
    This will allow MobileTerminal to actually run.

  7. Once it finishes installing the IPA, you'll see the Terminal Icon on your Device.

  8. Head over to Settings > General > Device Management.
    Hit your Apple ID, then hit Trust, and Trust one more time.

  9. Next, make sure that your Device is in "Jailbroken" mode.
    Then open Terminal that we just installed.

  10. Once the app is open, type in:
    su

    The password is:
    alpine

    If done correctly, terminal will now show '/var/mobile root#'

  11. Next, type in:
    cp -R /var/mobile/Media/Books/lib /var

    When completed, you'll return back to '/var/mobile root#'.

  12. Next, type in:
    mkdir /var/log/apt

    Again, you'll return to '/var/mobile root#'

  13. Now, open Cydia, and go to your Installed Packages.
    If you have the Chinese PP app, uninstall it.
    rt27Y8K.png


    Don't forget to uninstall iFunBox from your PC.
After you complete that last step, you're good to go!
Enjoy Cydia and your Jailbreak :smile:

Click Here for iOS 10.X.X
Downloads
WinSCP: [Click here to view this link] | Virus Scan
Lib Folder: [Click here to view this link] | Virus Scan

Unfortunately this only works on the mach_portal app, for iOS 10 -> 10.1.1.
I'll find a way for 10.2 and update this guide.​
  1. Open the mach_portal app on your iDevice.
    Wait for it bring you back to the Home Screen.

  2. Go to Settings > Wi-Fi.
    Hit the little
    lXTPWa7.png
    to obtain your IP Address.

  3. Download, extract, and open WinSCP.

  4. Leave File Protocol on SFTP, and leave the Port at 22.
    In the Host name box, type your IP Address.
    User name, type in root
    Password, type in alpine

    Once filled out, hit the Login button on the bottom.

    a2ee69f2b1f54b5859ac1aac20d992ef.png


  5. Once connected, you'll be in /private/var/root/
    Hit
    43e08af16fe4703a7352b019920fe2ca.png
    to go back one directory.
    So now, you'll be in /private/var/
    
  6. Download and Extract the lib folder.
    Make sure you do Extract Here, and not Extract to lib.
    Otherwise you'll have a lib folder within a lib folder, and you don't want that.
    dOzhm4Z.png


  7. Now, you'll see in WinSCP you have 2 Browsing Windows.
    On the right is your iDevice, and on the left is your Comuter.

  8. On the left, browse to where you just extracted the lib folder.
    Right-Click the folder, and hit Upload.
    Then hit Ok.

    05ef942ba2cab6fc71f7212ada82ada1.png


  9. If it asks to Overwrite, hit the drop down arrow, and hit Yes to All
    d80ad390e013d7181a7f2e90ef470daf.png


  10. Once it transfers and overwrites, head into the log folder.
    So now you'll be in /private/var/log/.

  11. Within the log folder, you're going to hit F7 on your Keyboard to create a new folder.
    Name the folder apt, and set its permissions to 0755.
    3ee7497bbfb1c3be6966acc721260f4a.png


    Then hit Ok.
From this point, you should be good to go!
I'd recommend rebooting your device once you are finished.

Enjoy your Jailbreak :biggrin:
 
Nagato

Nagato

Se7enVeteran
Stickied Legendary Veteran Forum Addict
Messages
7,634
Reaction score
3,117
Points
1,390
Sin$
7
I've had very few issues with my JB iPhone. The only problem was the battery. So, how does the above happen to people? I haven't had this issue.
 
Noobert

Noobert

RGH/Flashing Support
VIP
Retired
Trifecta Scaling the Mountain Mythical Veteran
Messages
8,382
Reaction score
4,645
Points
2,315
Sin$
0
I've had very few issues with my JB iPhone. The only problem was the battery. So, how does the above happen to people? I haven't had this issue.
To be honest, I'm not sure how often this happens to people.
I had to help 2 people on the site with it, so I figured just make it into something people can follow.
 
J

JablyK

Newbie
Messages
1
Reaction score
0
Points
35
Sin$
7
it worked but when i install tweaks they don't show up on my homescreen
 
F

firhanrizani

Newbie
Messages
1
Reaction score
0
Points
35
Sin$
7
Link is broken! I want the mobileterminal.ipa now! Please post a new link
 
M

malromi92

Newbie
Messages
4
Reaction score
1
Points
45
Sin$
7
i did all steps but when i open cydia show me same problem
Could not open file /var/lib/dpkg/status - open (2: No such file or directory)
please help me
 
Noobert

Noobert

RGH/Flashing Support
VIP
Retired
Trifecta Scaling the Mountain Mythical Veteran
Messages
8,382
Reaction score
4,645
Points
2,315
Sin$
0
i did all steps but when i open cydia show me same problem
Could not open file /var/lib/dpkg/status - open (2: No such file or directory)
please help me

Then you didn't do all the steps, or you didn't do it right.
 
B

Bobby Mitra

Newbie
Messages
1
Reaction score
1
Points
45
Sin$
7
MY GUY! YOU'RE A GENIUS!

FOLLOWED STEP-BY-STEP AND EVERYTHING WORKED OUT GREAT.

Much appreciated
- Dedicated JB user.
 
Top Bottom
Login
Register