While installing Ubuntu using bootable usb, after installation is complete and trying to reboot system and facing error: invalid arch independent ELF magic error is very annoying. This error occurs due to improper selection of booting in boot menu. Instead of selecting USB storage, UFI ELI USB storage has been selected.
In order to solve this error, use the same usb bootable stick and select USB storage from boot menu and start installing. While installation select the same partition which was selected previously but make sure format the partition and make it primary.