error: Running 'grub-install --force --target x86_64-efi "/dev/sda"' failed.

Bug #1925187 reported by Jeremie Tamburini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubiquity 21.04.19 installed via apt on a previous iso daily-build as an iso with 21.04.19 at the moment is not available.

DESCRIPTION:

- Partition table: msdos (MBR)
- /dev/sda1 with Ubuntu already installed
- /dev/sda2 and /dev/sda3 both Ext4

Installation modality: Install Ubuntu 21.04 alongside...

As 3 primary partition are already used, the installer is forced to use the remaining space creating an extended partition with logical partition inside:

- /dev/sda5 ESP (EFI)
- /dev/sda6 Ext4 for Ubuntu

EFI partition should be primary, not logical and as expected a popup:
  Executing 'grub-install /dev/sda' failed
  This is a fatal error

Despite this the system get installed and it is bootable.
Probably because of the recent changes on Ubiquity package.

Anyway, the 'grub error' message can be tricky!

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: ubiquity 21.04.19
ProcVersionSignature: Ubuntu 5.11.0-14.15-generic 5.11.12
Uname: Linux 5.11.0-14-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu65
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.461
Date: Tue Apr 20 06:42:08 2021
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
LiveMediaBuild: Ubuntu 21.04 "Hirsute Hippo" - Beta amd64 (20210416)
RebootRequiredPkgs:
 linux-image-5.11.0-16-generic
 linux-base
 linux-image-5.11.0-14-generic
 linux-base
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jeremie Tamburini (jeremie2) wrote :
summary: - Ubiquity 21.04.19 fails in 'install alongside' in extended partition
+ Ubiquity 21.04.19 ends in 'error install grub' but Ubuntu get installed
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

According to the log an error it's trying to install the efi on /dev/sda which sounds wrong. Did you do an automatic partioning?

summary: - Ubiquity 21.04.19 ends in 'error install grub' but Ubuntu get installed
+ error: Running 'grub-install --force --target x86_64-efi "/dev/sda"'
+ failed.
Revision history for this message
Jeremie Tamburini (jeremie2) wrote :

@seb128
Yes correct, it was automatic partitioning.
I've chosen the "Install Ubuntu alongside.." option: https://postimg.cc/N2hnmtxR

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.