[Bug 1904263] Re: Writing GRUB to boot device failed

Lau 1904263 at bugs.launchpad.net
Fri Nov 20 02:15:06 UTC 2020


I am experiencing the same with grub-efi-amd64 2.04-1ubuntu26.7.

```
Setting up grub-efi-amd64-signed (1.142.9+2.04-1ubuntu26.7) ...
Trying to migrate /boot/efi into esp config
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
```

I also happen to have nvidia-drivers.

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

Title:
  Writing GRUB to boot device failed

Status in grub2 package in Ubuntu:
  Confirmed

Bug description:
  Running apt-get update; apt-get upgrade for the first time in a few
  months, I get an error

  ```
  Writing GRUB to boot device failed - continue
  GRUB failed to install to the following devices:

   [*] /dev/nvme1n1p1 (104 MB; /boot/efi) 1000204 MB WDC WDS100T2B0C-00PXH0
  ```

  Retrying fails.

  Running

  ```
  $ sudo dpkg-reconfigure --force grub-efi-amd64
  ```

  Gives the following output:

  ```
  Installing grub to /boot/efi.
  Installing for x86_64-efi platform.
  grub-install: warning: Internal error.
  grub-install: error: failed to register the EFI boot entry: Operation not permitted.
  Installing grub to /boot/efi.
  Installing for x86_64-efi platform.
  grub-install: warning: Internal error.
  grub-install: error: failed to register the EFI boot entry: Operation not permitted.
  Sourcing file `/etc/default/grub'
  Sourcing file `/etc/default/grub.d/init-select.cfg'
  Generating grub configuration file ...
  Found linux image: /boot/vmlinuz-5.4.0-53-generic
  Found initrd image: /boot/initrd.img-5.4.0-53-generic
  Found linux image: /boot/vmlinuz-5.4.0-52-generic
  Found initrd image: /boot/initrd.img-5.4.0-52-generic
  Found Windows Boot Manager on /dev/nvme1n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
  Adding boot menu entry for UEFI Firmware Settings
  done
  ```

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: grub-efi-amd64 2.04-1ubuntu26.6
  ProcVersionSignature: Ubuntu 5.4.0-52.57-generic 5.4.65
  Uname: Linux 5.4.0-52-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.12
  Architecture: amd64
  CasperMD5CheckResult: skip
  Date: Fri Nov 13 21:38:56 2020
  InstallationDate: Installed on 2020-05-23 (175 days ago)
  InstallationMedia: Xubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
  SourcePackage: grub2
  UpgradeStatus: Upgraded to focal on 2020-05-29 (169 days ago)

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



More information about the foundations-bugs mailing list