[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Interrible:
Hello. I ran into a problem trying to update my LineageOS to a newer version. I upgraded TWRP to twrp-3.5.2_10-0-beta1-h870.img through the link in the main post. Wiped system, data, dalvik, cache, and flashed the LineageOS zip from sd card in TWRP. However, every time I get TWRP error E1001: failed to update system image.

Output from recovery.log :

I:mke2fs -t ext4 -b 4096 /dev/block/sda15 131072 process ended with RC=0
I:Cannot lookup security context for '/cache'
Done.
I:Recreating /cache/recovery/ folder.
I:Mount: Unable to find partition for path '/etc'
I:Copied file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
Updating partition details...
I:checking for twrp app
I:Data backup size is 0MB, free: 23075MB.
...done
I:Set page: 'action_complete'
I:operation_end - status=0
I:Set page: 'clear_vars'
I:Set page: 'advancedwipe'
I:Set page: 'wipe'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing zip file '/external_sd/lineage.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.
I:Legacy property environment not used in updater.
SELinux: Loaded file_contexts
Extracted file "/tmp/install/bin/backuptool.sh"
Extracted file "/tmp/install/bin/backuptool.functions"
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...
performing update
Patching system image unconditionally...blockimg version is 4
maximum stash entries 0
creating stash /cache/recovery/2bdde8504898ccfcd2c59f20bb8c9c25f73bb524
473251840 bytes free on /cache (0 needed)
/cache/recovery/last_command doesn't exist.
erasing 977704 blocks
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
writing 1024 blocks of new data
Decompression failed with DISTANCE
missing 658577 bytes of new data
failed to execute command [new 2,48747,49771]
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 7 second(s).
Error installing zip file '/external_sd/lineage.zip'
Updating partition details...
I:checking for twrp app
I:Data backup size is 0MB, free: 23075MB.
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 149
I:Set overlay: ''
E:[MTP] request read returned -1, errno: 5E:[MTP] request read returned -1, errno: 5I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'copylog'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'

I've tried every google solution, redownloading and copying the zip etc but nothing seems to work. I'm at my wits end here. Does anyone know what could be causing the problem?

EDIT:

Turns out I was using a faulty usb-c cable that was corrupting my zip copies. Tried with another cable and now flash works and system booted... Wow never expected this to be the problem.