Heimdall error: Setting up interface failed! While trying to know the pits available in my phone (Samsung GT-I9082, the Grand Duos) heimdall (in Linux) throwed me this error.

What does it mean?

How to resolve it?
There are a few options here, let's do the easiest first:


Do not boot into Download mode from the "4 way menu" from the device, this will cause issues. Ensure you turn the device off and boot into recovery with the Volume Down + Power buttons. 
Ensure USB Debugging is enabled on the device. 
Ensure samsung-kies has no processes running, or just uninstall it completely. It causes a LOT of issues with USB Drivers. 
Ensure you have the correct USB Drivers installed for your device. 
Try a different USB port, and cable if possible.
Try deleting /System/Library/Extensions/Heimdall.kext and reinstalling Heimdall
Try running this command: sudo kextload /System/Library/Extensions/heimdall.kext if you get an error then point 3 is your error! 
Ensure Heimdall has the correct permissions: sudo chown -R root:wheel /System/Library/Extensions/heimdall.kext
Reinstall your OS (Linux) from scratch (this is a rather nuclear option to be honest)


Finally this is more general for other users. If you are using a Mac OS run the following:

$ sudo kextunload -b com.devguru.driver.SamsungComposite
$ sudo kextunload -b com.devguru.driver.SamsungACMData
$ sudo kextunload -b com.devguru.driver.SamsungACMContro