[Bug 1934449] Re: failed to write grub to disk. Lenovo tiny AMD pro7

Steve Langasek 1934449 at bugs.launchpad.net
Tue Jul 6 20:18:17 UTC 2021


The precise error is:

> Jul  2 06:15:58 ubuntu grub-installer: grub-install: warning: Internal error.
> Jul  2 06:15:58 ubuntu grub-installer: grub-install: error: failed to register the EFI boot entry: Operation not permitted.
> Jul  2 06:15:58 ubuntu grub-installer: error: Running 'grub-install  --force --target x86_64-efi "/dev/nvme0n1"' failed.

Fundamentally this is an issue with your firmware that grub can't work
around.  The UEFI implementation is denying Ubuntu access to record its
boot entry in the nvram.  While it should still be possible to boot
Ubuntu from disk via the fallback path, your laptop might also have
other boot entries that it prefers over booting from the disk that cause
incorrect behavior.  Best case, boot will be slower because it's going
via the fallback path.  And whatever we happen to do in the installer to
manage this, if you do run Ubuntu with your firmware in this state, each
grub or shim package update will also fail with this error.

I recommend you check your firmware settings for any options that show
that the boot options are locked down, and if there are any, to disable
those settings.

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

Title:
  failed to write grub to disk. Lenovo tiny AMD pro7

Status in ubiquity package in Ubuntu:
  New

Bug description:
  Failed to write grub to disk. Lenovo M715 Tiny, AMD Pro7.

  ProblemType: Bug
  DistroRelease: Ubuntu 21.04
  Package: ubiquity 21.04.19
  ProcVersionSignature: Ubuntu 5.11.0-16.17-generic 5.11.12
  Uname: Linux 5.11.0-16-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu65
  Architecture: amd64
  CasperMD5CheckResult: pass
  CasperVersion: 1.461
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Jul  2 09:17:04 2021
  InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
  LiveMediaBuild: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
  ProcEnviron:
   LANGUAGE=en_IL
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_IL
   LC_NUMERIC=C.UTF-8
  RebootRequiredPkgs:
   linux-image-5.11.0-16-generic
   linux-base
  SourcePackage: ubiquity
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1934449/+subscriptions



More information about the foundations-bugs mailing list