Lỗi cydia sub-process dpkg retunred an eror code 100 năm 2024

Sau khi bạn jailbreak iOS 7.0.4 Cydia xuất hiện lỗi “sub-process/usr/bin/dpkg returned an error code”. Và một số tinh chỉnh như afc2add không thể cài đặt được.

Bạn làm theo các bước sau đây để sửa lỗi:

1. Cắm thiết bị iOS đã được jailbroken của bạn vào cùng một máy tính mà bạn dùng nó để jailbreak thiết bị của bạn.

2. Mở công cụ Evasi0n 7 và bắt đầu thực hiện lại quá trình jailbreak.

3. Bạn sẽ thấy một dấu nhắc trong cửa sổ của tool Evsi0n “iPhone 4S [iOS 7.0.4] is already jailbroken. Jailbreaking again is NOT recommended.”. [bạn có thể bỏ qua lời cảnh báo này] Lưu ý: Tuỳ thuộc vào mô hình và firmware của điện thoại, tool Evasi0n sẽ đưa ra lời cảnh báo khác nhau: Trong trường hợp này là iPhone 4S và iOS 7.0.4.

4. Bấm vào nút [Jailbreak].

5. Chờ đợi cho đến khi tool evasion7 xuất hiện thông báo “please unlock your device, and tap the evasion icon”. Trong trường hợp này, cẩn thận! Không theo hướng dẫn. Làm theo các bước sau đây: ① Tới màn hình chủ. ② Đừng click vào biểu tượng evasion, nhưng ấn và giữ biểu tượng evasion cho đến khi biểu tượng rung lên. ③ Click vào biểu tượng evasion để xoá bỏ nó. ④ Click Exit trong công cụ jailbreak trên máy tính của bạn. ⑤ Cuối cùng bấm vào Cydia. 6. Chờ đợi Cydia tự động tải dữ liệu xong, bạn có thể cài đặt bất kỳ các chỉnh tương thích với iOS 7, lỗi “sub-process/usr/bin/dpkg returned an error code” đã được giải quyết xong.

Tons of users are reporting a weird “Sub-process returned an error code [100]” message on iOS 11-11.1.2 firmware. Here’s how you can fix this error on your iPhone, iPad, and iPod touch.

Saurik blocks Cydia Installer upgrades on Electra jailbreak

Jay Freeman aka Saurik, the creator of Cydia, has blocked updates for core packages. The package that is breaking the update right now is APT 7.0.

Whenever a user tries to upgrade this essential package, Cydia will throw the “subprocess” error.

Here’s how this error message looks like.

sub-process returned an error code [100] Method /usr/lib/apt/methods/https did not start correctly Method http has died unexpectedly!

Saurik has purposely pushed an update for APT to break users’ devices.

As you already know, Saurik and Coolstar have a long-standing beef that is yet to show any signs of cooling down.

He clearly doesn’t want users to enjoy Electra jailbreak, which is developed by a competitor.

Thankfully, you can fix this error code by downgrading to APT version 0.7.25.3-15 [thanks to Notex for pointing this out]. Here’s how you can do that manually.

  • Update – You can now download a safe update of APT 0.7 Strict version 0.7.25.3.16-coolstar from Electra’s default repository. Don’t install version 0.7.25.3.15 from Saurik’s default repository.
  • Update – Saurik didn’t intend to break Coolstar’s jailbreak. Cydia displayed errors because this update was aimed at iOS 10, not iOS 11.

Requirements

  • An affected iPhone, iPad, or iPod touch
  • Electra jailbreak toolkit
  • Cydia
  • A computer running Windows [optional]
  • Filza file manager [optional]

Fixing Sub-process returned an error code [100] error message on iOS 11-11.1.2

1. Transfer APT 0.7 Strict [lib] package

Step 1 Download the core APT v7.0 Debian package from this .

Step 2 Copy this Debian package to the “/private/var/tmp” folder of your device’s filesystem. You can use WinSCP [recommended] or Filza file manager for this purpose.

  • WinSCP users – Enter your details and press Login to start an SFTP session. Download the Debian package to your computer and drag it from your computer’s filesystem [left section] to your device’s root folder [right section. If you are unable to connect, try using port number 2222.
  • Filza – Simply search for the file using “apt7” and transfer it to the root [/] folder.

Enter “root” as the user name and “alpine” as the password without quotes.

  • Important – Ensure your device is in jailbreak mode before you start an SFTP session.

2 .SSH into your device

Step 3 SSH into your device using iTerminal App Store application. Thankfully enough, Electra comes with OpenSSH so you can use SSH whenever you want to.

Step 4 Enter the following details and tap Connect once everything is ready.

3. Perform the downgrade

Step 5 Run the following command once you are in the terminal. Ensure you press the “return” key after typing to execute it.

cd /var/tmp dpkg -i apt7-lib_0.7.25.3-15_iphoneos-arm.deb killall -9 SpringBoard

That’s pretty much it! The APT package is now successfully downgraded and you can continue installing tweaks with Cydia. The “Sub-process returned an error code [100]” message will no longer bug you.

If you get the following error message, you can safely ignore it.

warning: unable to delete old directory ‘/usr/lib/apt/methods’: Directory not empty

If SSH is not working for you, try using the method laid out in the comments by user Panayiotis C. below.

Automatic removal using shell script [recommended]

This method relies on a shell script and works on-device without a PC or computer.

  • Download the fix.sh shell script developed by Ariel from here. If you are unable to download it, open the link using Safari web browser on your Apple device.
  • Download the Debian package using the link given in the first section above.
  • Launch FilzaEscaped file manager and copy the aforementioned files to /private/var/root.
  • Tap the “i” icon present next to the script file.
  • Scroll down, tap on Sticky, and change the permissions of this file to 0777.
  • Tap on fix.sh to run the shell script.
  • Once the script runs, delete both the files from “step 1” and “step 2” from Filza.
  • Cydia will now start working as usual.

The following steps are optional but highly recommended.

How to protect Cydia from Saurik’s updates

Step 1 Launch Cydia.

Step 2 Go to the Installed section.

Step 3 Tap on APT 0.7 Strict [lib] package.

Step 4 Tap Change Package Settings.

Step 5 Enable Ignore Upgrades.

This will block any future upgrades by Saurik or by anyone else. No one will be able to ruin your jailbreak fun anymore! Once Saurik properly updates Cydia, you can switch on the “upgrades” again.

If you run into errors while trying this tutorial out, leave a comment below.

For more jailbreak tips and tricks, don’t forget to like and follow us on Facebook and Twitter.

About The Author

Gian

Gian is the resident jailbreak expert at Yalu Jailbreak. He has been jailbreaking his iPhone since 2010. Best way to catch his attention? Show him a tweak he hasn't installed.

Chủ Đề