you may want or need to flash first an appropriate Stock Vendor Firmware to your device as a sane base :
install in command line withheimdall-flash
or using the graphical interface heimdall-frontend
or with the Samsung Official command line software Odin4linux
Download Samsung Odin v4 1.2.1 for Linux (Official) - Technastic
Don’t miss :
Galaxy-Flasher, the ultimate graphical tool for Samsung devices