0

I've decided to reinstall Ubuntu system. Ubuntu has been installed properly (I guess), but installation of grub failed. I have tried to run boot-repair, and it said that i should paste the following commands:

sudo chroot "/mnt/boot-sav/sda6" dpkg --configure -a
sudo chroot "/mnt/boot-sav/sda6" apt-get install -fy
sudo chroot "/mnt/boot-sav/sda6" apt-get purge -y --force-yes grub*-common grub-common:i386 shim-signed linux-signed*

Unfortunately, the output of first command was

Setting up shim-signed (1.21.3+0.9+1465500757.14a5905.is.0.8-0ubuntu3) ...
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
Setting up grub-efi-amd64-signed (1.74+2.02~beta2-36ubuntu11) ...
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
Errors were encountered while processing:
 shim-signed
 grub-efi-amd64-signed

As far as I understand the problem is with UEFI, however I do not know how to fix this so that grub will run again.

  • First of all, read and understand this: help.ubuntu.com/community/UEFI – user589808 Feb 26 '17 at 15:36
  • OK, as far as I understand since I have two systems they both should be in BIOS or in UEFI mode at the same time. When i opened UEFI settings, i checked that it has an option Legacy in boot. Hence both systems were installed in BIOS mode. If I installed Ubuntu 16.10 in BIOS version, will my problem disappear? – Adam Glos Feb 26 '17 at 15:52
  • Most UEFIs have 3 options, one, other or both. Any factory installed Windows 10 is in UEFI mode. Any user installed Windows 10 should also be installed in UEFI mode if available. If otherwise, you're right in your assumption. – user589808 Feb 26 '17 at 16:00
  • I am sorry, but accidentally i realized i was wrong, in fact i have both option. By should you mean default option? So what i should do is to install Ubuntu in different version? – Adam Glos Feb 26 '17 at 16:03
  • If you have both at UEFI settings then you can't know what mode Windows was installed just by looking at that. Boot a Ubuntu live session, open GParted and look at the partitions. If there's a small FAT32 partition labeled EFI then it's UEFI mode. Otherwise it's legacy. Boot and install Ubuntu accordingly, i.e., using the same mode the previous OS was installed with. It's that simple! – user589808 Feb 26 '17 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.