恢复 ubuntu touch 时出错

恢复 ubuntu touch 时出错

我正在尝试将我的手机从 ubuntu touch 恢复回 android。

根据说明,我下载了 adb、fastboot 和官方 rom

我解压了 rom 文件夹,从该文件夹内打开了一个终端,然后执行以下操作

user@pc:~/Downloads/hammerhead-mob30h-factory-2c178ff7/hammerhead-mob30h$ adb devices 
List of devices attached
04cd470f0b3066a0    device

user@pc:~/Downloads/hammerhead-mob30h-factory-2c178ff7/hammerhead-mob30h$ adb reboot bootloader
user@pc:~/Downloads/hammerhead-mob30h-factory-2c178ff7/hammerhead-mob30h$ ./flash-all.sh 
target reported max download size of 1073741824 bytes
sending 'bootloader' (3120 KB)...
OKAY [  0.310s]
writing 'bootloader'...
OKAY [  0.514s]
finished. total time: 0.824s
rebooting into bootloader...
OKAY [  0.100s]
finished. total time: 0.150s
target reported max download size of 1073741824 bytes
sending 'radio' (45425 KB)...
OKAY [  1.640s]
writing 'radio'...
OKAY [  3.134s]
finished. total time: 4.774s
rebooting into bootloader...
OKAY [  0.100s]
finished. total time: 0.150s
extracting android-info.txt (0 MB)...
extracting boot.img (8 MB)...
target reported max download size of 1073741824 bytes
archive does not contain 'boot.sig'
archive does not contain 'dtbo.img'
archive does not contain 'dt.img'
extracting recovery.img (9 MB)...
archive does not contain 'recovery.sig'
extracting system.img (996 MB)...
archive does not contain 'system.sig'
archive does not contain 'vbmeta.img'
archive does not contain 'vendor.img'
wiping userdata...
Couldn't parse erase-block-size '0x'.
Couldn't parse logical-block-size '0x'.
mke2fs 1.44.1 (24-Mar-2018)
/tmp/TemporaryFile-RNGfj5: Unimplemented ext2 library function while setting up superblock
/usr/lib/android-sdk/platform-tools/mke2fs failed with status 1
mke2fs failed: 1
error: Cannot generate image for userdata

user@pc:~/Downloads/hammerhead-mob30h-factory-2c178ff7/hammerhead-mob30h$ 

据我所知,这正是说明所要求的。我尝试搜索错误消息,但只找到各种不相关的东西。

有谁知道这里出了什么问题吗?

答案1

在编辑器中打开flash-all.sh脚本,向下滚动到最后一行,如下所示: fastboot -w update image.zip

删除-w标志,保存脚本,再次运行它,它就应该可以工作了。

相关内容