[Bug 1802309] Re: grub-install: error: cannot find EFI directory. dpkg: error processing package shim-signed (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:

Launchpad Bug Tracker 1802309 at bugs.launchpad.net
Wed Dec 5 10:40:00 UTC 2018


*** This bug is a duplicate of bug 1803031 ***
    https://bugs.launchpad.net/bugs/1803031

Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: grub-installer (Ubuntu)
       Status: New => Confirmed

-- 
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/1802309

Title:
  grub-install: error: cannot find EFI directory. dpkg: error processing
  package shim-signed (--configure):  subprocess installed post-
  installation script returned error exit status 1 Errors were
  encountered while processing:

Status in grub-installer package in Ubuntu:
  Confirmed

Bug description:
  root at ubuntu:/home/ubuntu# mount /dev/sda5 /mnt
  root at ubuntu:/home/ubuntu# mount --bind /dev /mnt/dev
  root at ubuntu:/home/ubuntu# mount --bind /dev/pts /mnt/dev/pts
  root at ubuntu:/home/ubuntu# mount --bind /proc /mnt/proc
  root at ubuntu:/home/ubuntu# mount --bind /sys /mnt/sys
  root at ubuntu:/home/ubuntu# sudo chroot /mnt
  root at ubuntu:/# grub-install  --boot-directory=/boot/ --recheck /dev/sda5
  Installing for x86_64-efi platform.
  grub-install: error: cannot find EFI directory.
  root at ubuntu:/# mount | grep /boot/efi
  root at ubuntu:/# grub-install --efi-directory=/mnt/efi
  Installing for x86_64-efi platform.
  grub-install: error: failed to get canonical path of `/mnt/efi'.
  root at ubuntu:/# grub-install --efi-directory=/boot/EFI
  Installing for x86_64-efi platform.
  grub-install: error: failed to get canonical path of `/boot/EFI'.
  root at ubuntu:/# update-grub2
  Generating grub configuration file ...
  Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
  Found linux image: /boot/vmlinuz-4.15.0-38-generic
  Found initrd image: /boot/initrd.img-4.15.0-38-generic
  Found linux image: /boot/vmlinuz-4.10.0-28-generic
  Found initrd image: /boot/initrd.img-4.10.0-28-generic
  Adding boot menu entry for EFI firmware configuration
  done
  root at ubuntu:/# apt-get install grub-efi-amd64-signed
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  grub-efi-amd64-signed is already the newest version (1.66.18+2.02~beta2-36ubuntu3.18).
  0 upgraded, 0 newly installed, 0 to remove and 514 not upgraded.
  2 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Do you want to continue? [Y/n] Y
  Setting up grub-efi-amd64-signed (1.66.18+2.02~beta2-36ubuntu3.18) ...
  Installing for x86_64-efi platform.
  grub-install: error: cannot find EFI directory.
  dpkg: error processing package grub-efi-amd64-signed (--configure):
   subprocess installed post-installation script returned error exit status 1
  Setting up shim-signed (1.33.1~16.04.1+13-0ubuntu2) ...
  Installing for x86_64-efi platform.
  grub-install: error: cannot find EFI directory.
  dpkg: error processing package shim-signed (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   grub-efi-amd64-signed
   shim-signed
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: ubiquity 2.21.63.4
  ProcVersionSignature: Ubuntu 4.10.0-28.32~16.04.2-generic 4.10.17
  Uname: Linux 4.10.0-28-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.10
  Architecture: amd64
  CasperVersion: 1.376.2
  Date: Thu Nov  8 09:02:06 2018
  InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash ---
  LiveMediaBuild: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
  ProcEnviron:
   LANGUAGE=es_CO.UTF-8
   PATH=(custom, no user)
   LANG=es_CO.UTF-8
   SHELL=/bin/bash
  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/1802309/+subscriptions



More information about the foundations-bugs mailing list