When I try to install Ubuntu (or any other distro, I've tried Manjaro, Pop!_OS, Debian and Fedora), I get an error with GRUB telling me either that there is not enough space to copy on the ESP in the case of Manjaro, Pop!_OS, etc.., or simply that there is a fatal error in the case of Ubuntu. The system I'm trying to install on is a Dell Vostro 5515 with Bitlocker and Secure boot disabled, a 1.3GB ESP (huge I know, but installers told me there wasn't enough space to copy, so I gave it more...). My CPU is a Ryzen 7 5700U and my current partition layout looks as follows:
https://i.stack.imgur.com/ClP3r.png
My disk is using a GPT partition table and Windows is installed in UEFI mode, as can be seen by the presence of the ESP.
sudo efibootmgr -v
Or you may need chkdsk (if Windows) or dosfsck to repair ESP. https://askubuntu.com/questions/862724/grub2-failed-to-install/86587z682#865872 And make sure Windows fast start up is off. That may be "locking" ESP also. – oldfred Jul 01 '21 at 22:51