I recently got a new laptop with 300 ssd hard drive. I dual booted the ssd with windows and ubuntu 20.4, everything seemed to work fine until I started getting this grub error minimal bash-like line editing is supported
so I decided to format the hard drive into one partition and install only ubuntu 20.4 on the laptop.Now I can't install ubuntu again I keep getting this error executing grub install dev nvme0n1 failed this is a fatal error uefi.
.
I've tried lots of things on the internet but now seems to work
It's probably also worth noting that I turned off secure boot and switched from UEFI to legacy because the ubuntu installation kept freezing at the purple loading screen on UEFI mode.