I’m trying to install Ubuntu 20.04.1 in a machine for dual boot with Windows 7, via a bootable flash drive. I’ve made the memory partitions for swap, esp, home etc. But, the installation failed for some reason the first time. And every time I try to install overwriting the earlier choosing the option Erase Ubuntu 20.04.1 LTS and reinstall, the installation crashes towards the end with Executing ‘grub-install /dev/sda’ failed. This is a fatal error.
This is the last message before it fails :
ubuntu grub-installer: Installing for x86_64-efi platform.
XDG_RUNTIME_DIR is not owned by us (uid 0), but by uid 999!(This could eg happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don’t do that.)
error: failed to register the EFI boot entry: Operation not permitted.
I have made the partition for EFI and labelled it boot, this is in the partition dev/sda6
This is the partitions created.
Now with that partial(?) installation, in the UEFI Boot menu, there is an option for Ubuntu. But on selection, it just says, no boot device found, press any key to reboot the machine; probably because of incomplete installation.
Unsure what to do from here, any help would be appreciated for a working installation of Ubuntu.