# Fastboot errors when running flash-all.sh for FP3

**URL:** <https://community.iode.tech/t/fastboot-errors-when-running-flash-all-sh-for-fp3/1518>\
**Category:** System and Apps\
**Tags:** Fairphone3\
**Created:** [9 May 2023 11:42 UTC](https://community.iode.tech/t/fastboot-errors-when-running-flash-all-sh-for-fp3/1518 "2023-05-09T11:42:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABC-talk](https://community.iode.tech/letter_avatar_proxy/v4/letter/a/e8c25b/32.png) [@ABC-talk](https://community.iode.tech/u/ABC-talk)\
**Post date:** [9 May 2023 11:42 UTC](https://community.iode.tech/t/fastboot-errors-when-running-flash-all-sh-for-fp3/1518/1 "2023-05-09T11:42:33Z")

</div>

Trying to install iode OS on a FP3. I have adb and fastboot in the latest version running on linux. I follow this guide.

> **[iodéOS installation - iodé](https://iode.tech/iodeos-installation/)**
>
> iodéOS is a privacy-focused operating system powered by LineageOS and based on Android. iodéOS aims at protecting your privacy with a built-in adblocker and by freeing your smartphone from snitches.

Here’s the erorrs I get when I start the flash-all.sh:

> Sending ‘userdata’ (316 KB) OKAY [0.040s]  
> Writing ‘userdata’ OKAY [0.029s]  
> Finished. Total time: 0.245s  
> fastboot: error: ANDROID\_PRODUCT\_OUT not set  
> fastboot: error: failed to open zip file ‘iode-4.1-20230401-FP3-img.zip’: I/O error  
> Rebooting into fastboot OKAY [0.020s]  
> \< waiting for any device \>

I have downloaded the mentioned file again.  
Any input would be highly appreciated.

Thank you so much.

---

<div class="post-metadata">

**Author:** ![ABC-talk](https://community.iode.tech/letter_avatar_proxy/v4/letter/a/e8c25b/32.png) [@ABC-talk](https://community.iode.tech/u/ABC-talk)\
**Post date:** [9 May 2023 18:27 UTC](https://community.iode.tech/t/fastboot-errors-when-running-flash-all-sh-for-fp3/1518/2 "2023-05-09T18:27:03Z")

</div>

I was obviously in the wrong folder, when I started the .sh  
You may also follow this guide:  
[https://forum.xda-developers.com/t/q-error-neither-p-product-specified-nor-android\_product\_out-set.2969168/](https://forum.xda-developers.com/t/q-error-neither-p-product-specified-nor-android_product_out-set.2969168/)

In general the guide for the installation failed, because my adb and fastboot were too old.  
So what did I do?  
I downloaded the platform tools from here:

> **[SDK Platform Tools release notes  |  Android Studio  | ...](https://developer.android.com/tools/releases/platform-tools#downloads)**
>
> Android SDK Platform-Tools is a component for the Android SDK.

They include the latest versions of adb and fastboot.  
Then I made sure that no legacy versions of the tools were on my system:

> sudo apt-get remove adb fastboot

Then I copied the unzipped files over to my linux system, while being in the folder where the unzipped files were:

> sudo mv \* /usr/local/bin/

Like this you can use the adb and fastboot commands wherever you are on your system.

Might be worth updating the guide.

---

<div class="post-metadata">

**Author:** ![samsmi](https://community.iode.tech/letter_avatar_proxy/v4/letter/s/a9a28c/32.png) [@samsmi](https://community.iode.tech/u/samsmi)\
**Post date:** [11 May 2023 11:19 UTC](https://community.iode.tech/t/fastboot-errors-when-running-flash-all-sh-for-fp3/1518/3 "2023-05-11T11:19:18Z")

</div>

> [@ABC-talk](#):
>
> fastboot: error: ANDROID\_PRODUCT\_OUT not set

Hi, I had this issue too when trying to flash my device - I added the following line to resolve that:  
export ANDROID\_PRODUCT\_OUT=/path/to/the/directory/containing/binary/images/  
with export -p one can list environment variables
