Ubuntu 16.04: grub-efi-amd64-signed failed to install into /target/ error

I have Dell Inspiron 5567 laptop (i-7, 8GB) with Windows-10 OS installed on it. I am trying to install ubuntu 16.04 as a dual boot OS on Windows10. I have disabled fast boot and secure boot options also. I am facing this error while installing Ubuntu 16.04:

grub-efi-amd64-signed failed to install into /target/. Without GRUB boot loader,
the installed system will not boot

The target partition is /dev/sda1.

I have created three partitions:

20GB-ext4- Root mounted
18.9GB-ext4- /home
4GB Swap area

Launchpad link for the log files: https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1703167

Pastebin link for boot-repair: https://pastebin.com/raw/u4LSP0V4

Output of sudo fdisk -l:

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F87D48DF-F3FF-429E-8F0B-558F81712A60

Device          Start        End    Sectors   Size Type
/dev/sda1        2048    1026047    1024000   500M EFI System
/dev/sda2     1026048    1288191     262144   128M Microsoft reserved
/dev/sda3     1288192 1843265535 1841977344 878.3G Microsoft basic data
/dev/sda4  1927151616 1928073215     921600   450M Windows recovery environment
/dev/sda5  1928073216 1951281151   23207936  11.1G Windows recovery environment
/dev/sda6  1951281152 1953523711    2242560   1.1G Windows recovery environment
/dev/sda7  1843265536 1851078655    7813120   3.7G Linux swap
/dev/sda8  1851078656 1890140159   39061504  18.6G Linux filesystem
/dev/sda9  1890140160 1927151615   37011456  17.7G Linux filesystem

Partition table entries are not in disk order.

Output of sudo parted -l:

Model: ATA TOSHIBA MQ01ABD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  525MB   524MB   fat32           EFI system partition          boot, esp
 2      525MB   660MB   134MB                   Microsoft reserved partition  msftres
 3      660MB   944GB   943GB   ntfs            Basic data partition          msftdata
 7      944GB   948GB   4000MB  linux-swap(v1)
 8      948GB   968GB   20.0GB  ext4
 9      968GB   987GB   18.9GB  ext4
 4      987GB   987GB   472MB   ntfs                                          hidden, diag
 5      987GB   999GB   11.9GB  ntfs                                          hidden, diag
 6      999GB   1000GB  1148MB  ntfs                                          hidden, diag


Model: SRT USB (scsi)
Disk /dev/sdb: 32.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
1      1049kB  32.5GB  32.5GB  primary  fat32        boot, lba

Please guide me how to resolve this problem.

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

The EFI System Partition was corrupt. I rectified this error with the following steps:

On Windows, I used DISKPART to assign the EFI System partition a letter. Fired up DISKPART, and typed LIST DISK to find the disk, followed by SELECT DISK <N> (where is the drive number). Followed the same steps to find the proper partition (i.e. LIST PARTITION followed by SELECT PARTITION <N>), and then simply typed ASSIGN LETTER = X to have Windows mount the partition to letter X.

Then opened CMD with administrative access. Ran CHKDSK X: /f /r

Then, I tried installing Ubuntu once again, and it installed successfully!

Solution 2

I have seen this with many computers, it is not the grub install that actually fails but the update-grub that makes the first config file that fails.
the problem is that the if/then statement in 30_uefi-firmware errors.

the easiest fix is after it error, choose the command line prompt at the bottom of the installer menu. and use nano to edit the file /etc/grub.d/30_uefi-firmware.
I have changed mine to read:

gettext_printf "Adding boot menu entry for EFI firmware configuration\n" >&2
cat << EOF
menuentry 'uefi-firmware' {
fwsetup
}
EOF

after editing rerun install grub.
note: on some systems the print command needs to be commented out temporarily for the installer

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply