Galaxy A20: “E1001: Failed to update system image” in TWRP

Trying to install lineage-18.1-20211115-UNOFFICIAL-a20.zip on Galaxy A20 (Exynos, A205FN) via TWRP.

Wiped /system, /data, /cache, /vendor.

Error: E1001: Failed to update system image.

I:operation_start: 'Flashing'
Installing zip file '/sdcard/lineage-18.1-20211115-UNOFFICIAL-a20.zip'
Unmounting System...
I:Update binary zip
Verifying package compatibility...
Package doesn't contain compatibility.zip entry
I:Extracting updater binary 'META-INF/com/google/android/update-binary'
I:Zip does not contain SELinux file_contexts file in its root.
SELinux: Loaded file_contexts
Target: google/redfin/redfin:11/RQ3A.211001.001/7641976:user/release-keysTarget: google/redfin/redfin:11/RQ3A.211001.001/7641976:user/release-keys
Extracted file "/tmp/install/bin/backuptool.functions"
Extracted file "/tmp/install/bin/backuptool.sh"
Extracted 2 file(s)
about to run program [/tmp/install/bin/backuptool.sh] with 5 args
Backup/restore is not possible. Partition is probably empty
Patching system image unconditionally...
Patching system image unconditionally...performing update
blockimg version is 4
maximum stash entries 0
creating stash /cache/recovery/749757f9cc3cf4bdef01a64b5d5e761d91131c83
384942080 bytes free on /cache (0 needed)
/cache/recovery/last_command doesn't exist.
 erasing 652631 blocks
BLKDISCARD ioctl failed: Invalid argument
failed to execute command [erase 8,399012,818688,819714,884224,885250,1048064,1049089,1054720]
new data receiver is still available after executing all commands.
script aborted: E1001: Failed to update system image.
E1001: Failed to update system image.error: 1001
Updater process ended with ERROR: 1
I:Install took 0 second(s).
Error installing zip file '/sdcard/lineage-18.1-20211115-UNOFFICIAL-a20.zip'
Updating partition details...
I:Data backup size is 0MB, free: 22611MB.
Failed to mount '/system' (Invalid argument)
I:Actual block device: '/dev/block/mmcblk0p25', current file system: 'ext4'
I:Unable to mount '/system'
I:Actual block device: '/dev/block/mmcblk0p25', current file system: 'ext4'
I:Unable to mount '/external_sd'
I:Actual block device: '', current file system: 'vfat'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done

Read more here: Source link