Install heimdall-flash by entering the following commands in the terminal:
sudo apt update sudo apt install heimdall-flash
Description:
tool for flashing firmware on Samsung Galaxy S devices
Heimdall is a tool for flashing firmware (aka ROMs) onto Samsung Galaxy S devices over a USB connection. It accomplishes this using the same protocol as Odin, Samsung's internal Windows-only firmware updater.
Homepage: http://www.glassechidna.com.au/products/heimdall/
Version: 1.4.1-2
Section: universe/devel