GRUB installation failed

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
SpeedyWheels222

GRUB installation failed

Post by SpeedyWheels222 »

The 'grub-efi-amd64-signed' pack failed to install
How do I fix this when installing Linux Mint 19??
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
gm10

Re: GRUB installation failed

Post by gm10 »

Install without Internet connection so you won't receive that update, see viewtopic.php?f=90&t=273058
JeremyB
Level 21
Level 21
Posts: 13783
Joined: Fri Feb 21, 2014 8:17 am

Re: GRUB installation failed

Post by JeremyB »

Can you boot the ISO and open terminal, enter

Code: Select all

lsblk; sudo blkid
Post results
SpeedyWheels222

Re: GRUB installation failed

Post by SpeedyWheels222 »

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1.7G 1 loop /rofs
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 512M 0 part
└─sda2 8:2 0 931G 0 part /target
sdb 8:16 1 14.5G 0 disk /cdrom
├─sdb1 8:17 1 1.8G 0 part
└─sdb2 8:18 1 2.3M 0 part
sr0 11:0 1 4.4G 0 rom
/dev/sda1: UUID="9795-1506" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="4b6d70f2-ed10-4590-8ed7-a25e9463f390"
/dev/sda2: UUID="ba4ea5dd-5346-4603-949e-8a0d7f192eee" TYPE="ext4" PARTUUID="ff974e69-0cab-4e05-b38d-3a0e9838db29"
/dev/loop0: TYPE="squashfs"
/dev/sr0: UUID="2018-04-26-18-43-51-00" LABEL="Ubuntu 18.04 LTS amd64" TYPE="iso9660" PTUUID="2b192737" PTTYPE="dos"
/dev/sdb1: UUID="2018-06-26-15-38-36-00" LABEL="Linux Mint 19 Cinnamon 64-bit" TYPE="iso9660" PTUUID="3a7dc2fc" PTTYPE="dos" PARTUUID="3a7dc2fc-01"
/dev/sdb2: SEC_TYPE="msdos" UUID="044E-AC17" TYPE="vfat" PARTUUID="3a7dc2fc-02"
SpeedyWheels222

Re: GRUB installation failed

Post by SpeedyWheels222 »

gm10 wrote: Sun Jul 15, 2018 12:00 pm Install without Internet connection so you won't receive that update, see viewtopic.php?f=90&t=273058
Yeah okay but why does this not affect me in Ubuntu?
gm10

Re: GRUB installation failed

Post by gm10 »

SpeedyWheels222 wrote: Sun Jul 15, 2018 2:42 pm
gm10 wrote: Sun Jul 15, 2018 12:00 pm Install without Internet connection so you won't receive that update, see viewtopic.php?f=90&t=273058
Yeah okay but why does this not affect me in Ubuntu?
As far as I recall - and I may be confusing issues - the problem here is ultimately caused by the ubuntu-system-adjustments package which is a Mint-specific package that modifies the Ubuntu base. You could probably also manually update ubuntu-system-adjustments before starting the installation and the grub install would then succeed even with an active Internet connection.
SpeedyWheels222

Re: GRUB installation failed

Post by SpeedyWheels222 »

gm10 wrote: Sun Jul 15, 2018 2:51 pm
SpeedyWheels222 wrote: Sun Jul 15, 2018 2:42 pm
gm10 wrote: Sun Jul 15, 2018 12:00 pm Install without Internet connection so you won't receive that update, see viewtopic.php?f=90&t=273058
Yeah okay but why does this not affect me in Ubuntu?
As far as I recall - and I may be confusing issues - the problem here is ultimately caused by the ubuntu-system-adjustments package which is a Mint-specific package that modifies the Ubuntu base. You could probably also manually update ubuntu-system-adjustments before starting the installation and the grub install would then succeed even with an active Internet connection.
Might sound daft but how would I manually update this prior to installing?
JeremyB
Level 21
Level 21
Posts: 13783
Joined: Fri Feb 21, 2014 8:17 am

Re: GRUB installation failed

Post by JeremyB »

You can fix it after the install, boot up the ISO and check in terminal

Code: Select all

lsblk; sudo blkid
Post the results
gm10

Re: GRUB installation failed

Post by gm10 »

SpeedyWheels222 wrote: Sun Jul 15, 2018 2:57 pm Might sound daft but how would I manually update this prior to installing?
While connected to the Internet, open a terminal and run

Code: Select all

apt update
apt upgrade ubuntu-system-adjustments
But simply disabling the Internet connection during installation seems easier, no?

And yes, as JeremyB said, you can also just fix the boot loader by installing grub to the drive manually. I'll let him talk you through it - Jeremy, he already posted the output above.
JeremyB
Level 21
Level 21
Posts: 13783
Joined: Fri Feb 21, 2014 8:17 am

Re: GRUB installation failed

Post by JeremyB »

For this case, boot into the ISO, open terminal, enter the following one line at a time

Code: Select all

sudo mkdir -p /mnt/boot/efi
sudo mount /dev/sda2 /mnt
sudo mount /dev/sda1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
sudo apt-get update
sudo apt-get install ubuntu-system-adjustments
apt install --reinstall grub-efi-amd64-signed
sudo update-grub
exit
Then see if you can boot into the install
SpeedyWheels222

Re: GRUB installation failed

Post by SpeedyWheels222 »

JeremyB wrote: Sun Jul 15, 2018 3:07 pm For this case, boot into the ISO, open terminal, enter the following one line at a time

Code: Select all

sudo mkdir -p /mnt/boot/efi
sudo mount /dev/sda2 /mnt
sudo mount /dev/sda1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
sudo apt-get update
sudo apt-get install ubuntu-system-adjustments
apt install --reinstall grub-efi-amd64-signed
sudo update-grub
exit
Then see if you can boot into the install
This is as far as I can get
gm10

Re: GRUB installation failed

Post by gm10 »

I think you misunderstood him, his commands were for booting into the Linux Mint you had already installed. Your screenshot shows you were doing another clean install instead. I'm not sure from that screenshot at what stage the installer failed though.
SpeedyWheels222

Re: GRUB installation failed

Post by SpeedyWheels222 »

gm10 wrote: Sun Jul 15, 2018 4:41 pm I think you misunderstood him, his commands were for booting into the Linux Mint you had already installed. Your screenshot shows you were doing another clean install instead. I'm not sure from that screenshot at what stage the installer failed though.
Yeah yeah so I did :lol:
My bad
Aubin
Level 1
Level 1
Posts: 6
Joined: Sat Dec 24, 2016 6:22 am

Re: GRUB installation failed

Post by Aubin »

I had exactly the same problem here, with an ASUS Laptop, I had to use more advanced tips from

https://unix.stackexchange.com/question ... ion-failed.
newpie

Re: GRUB installation failed

Post by newpie »

Hello I am new to Linux and trying to install a LAMP server on an older HP desktop (HP Compaq 6200 Pro SFF PC). I created a usb boot drive (64 bit) and successfully got into the installer page. When I try to install it stops at the failed signed package piece (GRUB installation failed). I tried without being connected to internet and same deal. I also don't even have an option for Secure Boot in the BIOS to turn off. Can you please help me get this working so I can go to next steps, thanks.

Using the commands earlier I saw I have this data:
mint@mint:~$ lsblk; sudo blkid
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1.7G 1 loop /rofs
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 512M 0 part
└─sda2 8:2 0 232.4G 0 part
sdb 8:16 1 119.2G 0 disk
└─sdb1 8:17 1 119.2G 0 part /cdrom
sr0 11:0 1 1024M 0 rom
/dev/sda1: UUID="E638-8127" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="9af33e81-b703-4288-8c40-9305e2c3a549"
/dev/sda2: UUID="00506597-6da0-4f6f-bae4-516bd8a76202" TYPE="ext4" PARTUUID="410e3a92-ec10-43ec-a6b4-fbe235304489"
/dev/sdb1: LABEL="LINUX MINT" UUID="1CF4-1321" TYPE="vfat" PARTUUID="0cb115fd-01"
/dev/loop0: TYPE="squashfs"
JeremyB
Level 21
Level 21
Posts: 13783
Joined: Fri Feb 21, 2014 8:17 am

Re: GRUB installation failed

Post by JeremyB »

newpie wrote: Wed Aug 29, 2018 8:31 am Hello I am new to Linux and trying to install a LAMP server on an older HP desktop (HP Compaq 6200 Pro SFF PC). I created a usb boot drive (64 bit) and successfully got into the installer page. When I try to install it stops at the failed signed package piece (GRUB installation failed). I tried without being connected to internet and same deal. I also don't even have an option for Secure Boot in the BIOS to turn off. Can you please help me get this working so I can go to next steps, thanks.

Using the commands earlier I saw I have this data:
mint@mint:~$ lsblk; sudo blkid
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1.7G 1 loop /rofs
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 512M 0 part
└─sda2 8:2 0 232.4G 0 part
sdb 8:16 1 119.2G 0 disk
└─sdb1 8:17 1 119.2G 0 part /cdrom
sr0 11:0 1 1024M 0 rom
/dev/sda1: UUID="E638-8127" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="9af33e81-b703-4288-8c40-9305e2c3a549"
/dev/sda2: UUID="00506597-6da0-4f6f-bae4-516bd8a76202" TYPE="ext4" PARTUUID="410e3a92-ec10-43ec-a6b4-fbe235304489"
/dev/sdb1: LABEL="LINUX MINT" UUID="1CF4-1321" TYPE="vfat" PARTUUID="0cb115fd-01"
/dev/loop0: TYPE="squashfs"
Run the commands from viewtopic.php?f=46&t=273370#p1496661 then reboot
newpie

Re: GRUB installation failed

Post by newpie »

Thanks for quick reply. Can you please tell me where I run these commands. Do I run them in a terminal from the boot from the USB (where the install icon is).

Edit Update: I decided to try in the above setting. Even though I got some errors running the code it did seem to get it working for me. Thank you for the help
newpie

Re: GRUB installation failed

Post by newpie »

Just a quick note: During updates I keep getting error:

E: shim-signed: installed shim-signed package post-installation script subprocess returned error exit status 1

Is this something I need or can it be fixed. Thanks
Locked

Return to “Installation & Boot”