[Bug 1962678] Re: grub2 fails to install upon ubuntu installation

Marc Savard 1962678 at bugs.launchpad.net
Wed Aug 31 23:49:43 UTC 2022


Hello Nikolai,

I'm having the same issue that your are reporting. Did you managed to
find a fix for that error? Here's the log file:

***


boot-repair-4ppa200                                              [20220831_1928]

============================= Boot Repair Summary
==============================



df: /dev/nvme0n1p2: Aucun fichier ou dossier de ce type
df: /dev/nvme0n1p2: Aucun fichier ou dossier de ce type

Recommended repair:
____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub-efi-amd64-signed of
nvme1n1p2,
using the following options:  nvme1n1p1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file


Mount nvme1n1p1 on /mnt/boot-sav/nvme1n1p2/boot/efi

=============== Reinstall the grub-efi-amd64-signed of nvme1n1p2
===============

chroot /mnt/boot-sav/nvme1n1p2 grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.15+zorin1
chroot /mnt/boot-sav/nvme1n1p2 modprobe efivars

chroot /mnt/boot-sav/nvme1n1p2 efibootmgr -v before grub install
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0003,0000,0004
Boot0000* ubuntu	HD(1,GPT,0c87fef8-cfd9-46ed-8f12-ae0a3b00b37e,0x800,0x100000)/File(EFIUBUNTUSHIMX64.EFI)
Boot0003* Windows Boot Manager	HD(1,GPT,0c87fef8-cfd9-46ed-8f12-ae0a3b00b37e,0x800,0x100000)/File(EFIMICROSOFTBOOTBOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...1................
Boot0004* UEFI:  USB DISK 3.0 PMAP	PciRoot(0x0)/Pci(0x14,0x0)/USB(23,0)/USB(3,0)/USB(0,0)/CDROM(1,0x258,0x8500)..BO

chroot /mnt/boot-sav/nvme1n1p2 uname -r
5.13.0-30-generic

chroot /mnt/boot-sav/nvme1n1p2 grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.
Error: no grub*.efi generated for Zorin OS 16.1 (16). Veuillez indiquer ce message à boot.repair at gmail.com

chroot /mnt/boot-sav/nvme1n1p2 efibootmgr -v after grub install
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0000,0003,0004
Boot0000* ubuntu	HD(1,GPT,0c87fef8-cfd9-46ed-8f12-ae0a3b00b37e,0x800,0x100000)/File(EFIubuntushimx64.efi)
Boot0003* Windows Boot Manager	HD(1,GPT,0c87fef8-cfd9-46ed-8f12-ae0a3b00b37e,0x800,0x100000)/File(EFIMICROSOFTBOOTBOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...1................
Boot0004* UEFI:  USB DISK 3.0 PMAP	PciRoot(0x0)/Pci(0x14,0x0)/USB(23,0)/USB(3,0)/USB(0,0)/CDROM(1,0x258,0x8500)..BO

chroot /mnt/boot-sav/nvme1n1p2 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/zorin/theme.txt
Found linux image: /boot/vmlinuz-5.15.0-46-generic
Found initrd image: /boot/initrd.img-5.15.0-46-generic
Found linux image: /boot/vmlinuz-5.13.0-44-generic
Found initrd image: /boot/initrd.img-5.13.0-44-generic
Found Windows Boot Manager on /dev/nvme1n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings

Unhide GRUB boot menu in nvme1n1p2/boot/grub/grub.cfg

Une erreur est survenue pendant la réparation.
Error: no grub*.efi generated for Zorin OS 16.1 (16). Veuillez indiquer ce message à boot.repair at gmail.com

Vous pouvez maintenant redémarrer votre ordinateur.
N'oubliez pas de faire démarrer votre firmware UEFI sur l'entrée Zorin OS 16.1 (16) (fichier nvme1n1p1) !
Si votre ordinateur redémarre directement dans Windows, essayez de changer l'ordre de démarrage dans votre firmware UEFI.
Si votre firmware UEFI ne permet pas de changer l'ordre de démarrage, changez l'entrée de démarrage par défaut de l'amorceur Windows.


============================ Boot Info After Repair
============================

***

My first attempt corrupted my Windows 11 installation. Did a fresh
install of Windows 11 on my NVME SSD, once everything was setup and
running, I tried to fix the error with Boot Repair and it always end
saying:  Error: no grub*.efi generated for Zorin OS 16.1 (16).Please
report this message to boot.repair at gmail.com

Hoping some help to understand where's the glitch.

TIA

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1962678

Title:
  grub2 fails to install upon ubuntu installation

Status in grub-installer package in Ubuntu:
  Confirmed

Bug description:
  Currently attempting to install ubuntu 20.04 alongside Windows 11 on
  my HP laptop. I have tried the boot-repair service on previous
  installation attempts yet still receive errors when that program
  attempts to repair grub. If it is any help, here is the pastebin of
  the errors from boot-repair from a few weeks ago:

  https://paste.ubuntu.com/p/45dnxkjfHG/

  It seems like these lines are most important:

  *********************************************************************************************

  grub-install --efi-directory=/boot/efi --target=x86_64-efi
  Installing for x86_64-efi platform.
  grub-install: error: cannot open `/boot/efi/EFI/ubuntu/grubx64.efi': Not a directory.
  Exit code: 1
  Refind detected on nvme0n1p1
  Error: no grub*.efi generated for Ubuntu 20.04.3 LTS. Please report this message to boot.repair at gmail.com

  /sbin/grub-install --efi-directory=/boot/efi --target=x86_64-efi --recheck
  Installing for x86_64-efi platform.
  /sbin/grub-install: error: cannot open `/boot/efi/EFI/ubuntu/grubx64.efi': Not a directory.

  /sbin/grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-nvram
  Installing for x86_64-efi platform.
  /sbin/grub-install: error: cannot open `/boot/efi/EFI/ubuntu/grubx64.efi': Not a directory.
  --no-nvram exit code: 1 Please report this message to boot.repair at gmail.com

  *********************************************************************************************

  I will continue to try different fixes on my end to install Grub, but
  it seems like an actual bug in the ubuntu/grub installer for EFI
  systems.

  Thank you!
  Nikolai

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: ubiquity 20.04.15.19
  ProcVersionSignature: Ubuntu 5.13.0-30.33~20.04.1-generic 5.13.19
  Uname: Linux 5.13.0-30-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  CasperMD5CheckResult: pass
  CasperVersion: 1.445.1
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Mar  1 22:25:03 2022
  InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
  LiveMediaBuild: Ubuntu 20.04.4 LTS "Focal Fossa" - Release amd64 (20220223)
  ProcEnviron:
   LANGUAGE=en_US.UTF-8
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   LC_NUMERIC=C.UTF-8
  SourcePackage: grub-installer
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1962678/+subscriptions




More information about the foundations-bugs mailing list