I had issues installing Ubuntu on a HP laptop. The problem was that the installation stops at installing grub2. I tried it on different Ubuntu versions but it gives me the same error.
I eventually worked around it by following the solution in this forum post . I was able to install ubuntu 18.10 without grub and put the refind files inside the EFI directory. But i can't run this command:
efibootmgr -c -l \\EFI\\refind\\refind_x64.efi -L rEFInd
it is stuck there without outputting anything.
Thank you in advance for any help