You tried to install grub to /dev/nvme0, which is not partitioned. Either install grub to /dev/nvme1 or partition nvme0. Also your log is full of errors like this, which indicate something is wrong with your motherboard or a peripheral:
Aug 20 20:48:35 ubuntu kernel: [ 4.884548] pcieport 0000:00:01.1: AER: Corrected error received: id=0000 Aug 20 20:48:35 ubuntu kernel: [ 4.884553] pcieport 0000:00:01.1: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=0009(Transmitter ID) Aug 20 20:48:35 ubuntu kernel: [ 4.884630] pcieport 0000:00:01.1: device [1022:1453] error status/mask=00001000/00006000 Aug 20 20:48:35 ubuntu kernel: [ 4.884698] pcieport 0000:00:01.1: [12] Replay Timer Timeout Aug 20 20:48:35 ubuntu kernel: [ 4.913102] dpc 0000:00:01.1:pcie010: DPC containment event, status:0x1f00 source:0x0000 ** Changed in: grub-installer (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1788041 Title: installing ubuntu crash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1788041/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs