Grub 2:2.06.r322.gd9b4638c5-1 won't boot and goes straight to the BIOS after update

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
UEFI

its uefi

but same error:

sudo grub-install
Installing for x86_64-efi platform.
grub-install: error: /boot/efi doesn't look like an EFI partition.