Most modern phones use seamless updates (A/B partitions). If you boot LineageOS before flashing GApps, you will get a "Partition mismatch" error.
: This is the most critical step. After installing the OS, do not boot to the system. Tap Reboot to Recovery gapps for lineage os 191 top
adb sideload filename.zip