I got a new HP-Pavilion laptop with Windows 10 installed and I am trying to install Ubuntu 18.04 as dualboot. However, when trying to install Ubuntu, during the installation of GRUB (as part of the automatic installation process) I get the message: Executing 'grub-install/dev/nvme0n1' failed.
I disabled the fast boot option as well as the secure boot option in BIOS. System uses UEFI. This happens if I select "Install Ubuntu alongside Windows Boot Manager" as well if I try to configure it myself using the "Something else" option.
My partition table looks like the following:
/dev/nvme0n1
free space 1MB
/dev/nvme0n1p1 efi 272MB unknown Windows Boot Manager
/dev/nvme0n1p2 16MB unknown
/dev/nvme0n1p3 ntfs 125911MB (this is the windows partition)
/dev/nvme0n1p4 ntfs 262144MB (this is an empty partition for data)
free space 123207 (this shall be the ubuntu partition - tried it with formatted as ext4)
/dev/nvme0n1p5 ntfs 547MB 477MB (don't know what this partition is)
free space 8MB
/dev/nvme1n1
/dev/sda (not sure what these last two partitions are, maybe something hidden by HP)
Now my questions are: any suggestions why this error would happen, and is there a (preferably easy) workaround? Does it make sense to choose the "Device for boot loader installation:" as /dev/nvme0n1p1 (Windows Boot Manager)? Or would that be a bad idea? Would it break something in the windows startup? I tried it with /dev/nvme0n1 (the top partition - this is where is failed before)
I will try to add a screenshot of the Gparted and the install menu. Install partition table and Gparted partition table
Any help is highly appreciated, as I don't really know how to continue from here.
Have a good day,
Phil