I was installing Ubuntu by switching off fast boot and secure boot, keeping the mode in UEFI, and then booting into Ubuntu via USB.
But, every time I install it and run this command:
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
It always shows BIOS, please provide some suggestions how to force the installation in UEFI mode.