-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: adb:preparesystemimage: Error: {"error":{"code":1,"cmd":"adb -P 5037 shell mkdir -p /cache/recovery"},"stderr":"mkdir: '/cache/recovery': Required key not available"} #2155
Comments
Hi, did you check the 'wipe' option in tje installer? |
appearent according to https://forum.xda-developers.com/t/im-having-problems-with-twrp-and-orangefox-permission-errors-all-the-time.4203951/ this may be related to an encrypted data partition, perhaps you can boot into recovery and wipe that partition |
same problem on OS Ubuntu 20.04.3 LTS, Device FP3 |
@werA111 So, did you check the "wipe" option in the installer initially? Please answer under my comment and do not always edit yours. |
Yes, I checked the wipe option. |
Ok. Please download the latest Fairphone OS version here: https://fileshare.fairphone.com/link/i0qPDlRAisSkrxibkQyt13/download/FP3-REL-Q-3.A.0129-20210805.135600-user-fastbootimage.7z Then flash it (there is a flash script in it). (For further instructions see: https://support.fairphone.com/hc/en-us/articles/360048050332) Then try Ubports-Installer again with wipe. |
I used this one here last time to get Android 10 back on which worked fine (the link from the ubports-installer): https://androidfilehost.com/?fid=7161016148664787652 (Still have not tried the wipe option though, will do in the coming days) |
I prepared this one to not reflash the userdata partition, so I think it won't help with the "Required key not available" issue. That is why I revommended the original Fairphone OS update package. |
I'v got Fairphone OS and tried UBports again but same issue "Required key not available". |
Grrrr... ok, next try:
then try installer again... |
Thanks everyone for help especially @luksus42 , it worked! |
@strangeli , is it solved for you too? |
@luksus42 Just to save some time: Since I still have /e/ OS now, I need to flash Android anyway before using TWRP? @werA111 did you? |
Yes, you should install latest fairphone OS (Android 10) before installing Ubuntu Touch. Maybe TWRP is not needed then anymore. Only if you run into the same issues like before, you should try the TWRP wipe way. |
Without TWRP I tried several times (with Android 10), I always had that issue. I just wondered if I can skip the Android installation if I wipe with TWRP directly. But I will go the full path then... |
This will be solved by: |
No, it's needed to flash some partitions to it's "original" state. |
looks like this is still happening in
Am i understanding https://github.com/ubports/installer-configs/pull/152/files correctly that the user simply needs to enable wipe and try again? In that case, we could just add some error handling for |
we could also use a handler for this, see ubports/installer-configs#175 |
It depends on how the installer-config is implementing the "wipe" option. In the case of the FP3, a simple reformatting was not sufficent, but a "fastboot:erase" of the userpartition beforehand did the trick... |
UBports Installer
0.8.9-beta
(deb)Environment:
Ubuntu 18.04.6 LTS Bionic Beaver linux 5.4.0-84-generic x64 NodeJS v12.18.3
Device: FP3
Target OS: Ubuntu Touch
Settings:
undefined
OPEN-CUTS run: N/A
Log: N/A
I don't know...
The text was updated successfully, but these errors were encountered: