However, based on common community knowledge (XDA Developers, GitHub, etc.):
pip3 install samfirm
The downloaded file will be an encrypted binary (usually ending in .enc4 or .enc2 ). Run the decryption command to turn it into a flashable zip: samfirm tool linux
pip3 uninstall crypto pycrypto pip3 install pycryptodome samfirm tool linux