The 'grub-efi-amd64-signed' package failed to install target/ [duplicate]
Solution 1:
Try this if it makes sense to you:
Boot Ubuntu Live DVD/USB in testing mode and open terminal
-
Run installation process without installing boot loader by:
sudo ubiquity -b
Press Continue testing after installation is over.
-
Mount the newly installed file system into
/mnt
:sudo mount /dev/sda2 /mnt sudo mkdir /mnt/boot/efi sudo mount /dev/sda1 /mnt/boot/efi for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
(Where
sda2
is the root partition andsda1
is the EFI partition.) -
Load the
efivars
module by:sudo modprobe efivars
-
Reinstall
grub-install
for a 64-bit version:sudo apt-get install --reinstall grub-efi-amd64-signed sudo grub-install --no-nvram --root-directory=/mnt
-
Change root to
/mnt
and update Grub:sudo chroot /mnt update-grub
-
Move and rename the installed boot loader:
cd /boot/efi/EFI cp -R ubuntu/* BOOT/ cd BOOT cp grubx64.efi bootx64.efi
Reboot the system.
Solution 2:
Create an EFI file system partition sized 1024mb while installing. I choose custom partition as following and its working fine:
HDD1 (/dev/sda
)
- Device:
/dev/sda1
- Partition type: EFI System (FAT)
- size: 1.0 GB
- Device:
/dev/sda2
- Partition type: Linux swap (Swap)
- size: 16 GB
- Device:
/dev/sda3
- Partition type: Linux File System (Ext4)
- size: Rest of the space available in this HDD
- mount point:
/
HDD2 (/dev/sdb
)
- Device:
/dev/sdb1
- Partition type: Linux File System (Ext4)
- size: All available space in this HDD
- mount point:
/home