I tried this. But I get this error when executing this line "grub-install /dev/sda".

This errors pops-up:
grub-install: warning: Cannot set EFI variable BootOrder.
grub-install: warning:...