[Bug 1962678] [NEW] grub2 fails to install upon ubuntu installation

Nikolai Gonzales 1962678 at bugs.launchpad.net
Wed Mar 2 04:40:50 UTC 2022


Public bug reported:

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)

** Affects: grub-installer (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal ubiquity-20.04.15.19 ubuntu

-- 
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:
  New

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