Because is an update from 9 to 10, the best procedure is to wipe Dalvik, Cache, System, Data partitions
1. Copy the .zip for Lineage 17.1 into the SD-card + openGapps (I have used nano version)
2. Go to recovery TWRP (VOL+ & Power). Wipe Dalvik, Cache,System, Data
3. Install the zips
4. Sign...