How to Fix “failed in buffer_write(fd) (8, ret=-1)” Cydia Error When Installing Packages

fix cydia error " failed in buffer_write(fd) (8, ret=-1)"

Users have been facing a lot of issues with the recent jailbreak tool released by Pangu for iOS 9.2 – iOS 9.3.3. We already showed how you can fix some of the common issues of Pangu jailbreak but a more troublesome problem that many users are facing is an error in Cydia that prevents packages from being installed on their device.

For some jailbroken users, Cydia is displaying a “failed in buffer_write(fd) (8, ret=-1)” error when installing packages. The reason behind this is that the system partition is being used to install the tweaks on but it doesn’t have enough space. As a result, Cydia terminates the installation by displaying the above error.

To find out how to get rid of this error and fix the problem, read the guide below.

Fix “failed in buffer_write(fd) (8, ret=-1)” Cydia Error

Step 1: On your jailbroken iPhone, iPad or iPod Touch, launch Cydia and go to the Sources tab.

Step 2: Tap on Edit -> Add and enter the following repo URL: https://coolstar.org/publicrepo

Step 3: Wait for Cydia to load all the packages from the repository. Once done, go to the Search tab of Cydia and type “Stashing for iOS 9.2 – 9.3.3”.

Step 4: Open the package, tap on Install followed by confirmation to install the tweak onto your device.

The stashing package basically takes care of installing packages in the right partition. When you install it, all the tweaks and packages will be installed on your device’s data partition rather than the system partition, hence saving a lot of space and allowing Cydia to finish the installation process without any memory space issues.

If the above method doesn’t work, you can try the alternative solution below:

Step 1: Launch Cydia and install “Apple File Conduit 2” onto your device.

Step 2: Download iFunbox on your computer.

Step 3: Connect your iPhone, iPad or iPod Touch to your computer via a USB cable and open iFunbox.

Step 4: From the left sidebar, open ‘Raw File System’.

Step 5: On the right where your device’s files and folders are displayed, find and rename /.cydia_no_stash to /.cydia_no_stash-

Step 6: Disconnect your device from the computer, launch Cydia and it should start preparing the file system. After it’s done, you should be able to install packages and tweaks without any problem.

Let us know how it goes in the comments section below.