When running sudo apt upgrade
on Ubuntu 20.04.1 I always receive the following error:
Setting up grub-efi-amd64-signed (1.142.6+2.04-1ubuntu26.4) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/ata-Samsung_SSD_860_EVO
_500GB_S3Z1NB0K866259H-part1 does not exist.
dpkg: error processing package grub-efi-amd64-signed (--configure):
installed grub-efi-amd64-signed package post-installation script subprocess ret
urned error exit status 32
dpkg: dependency problems prevent processing triggers for shim-signed:
shim-signed depends on grub-efi-amd64-signed | grub-efi-arm64-signed; however:
Package grub-efi-amd64-signed is not configured yet.
Package grub-efi-arm64-signed is not installed.
dpkg: error processing package shim-signed (--configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
grub-efi-amd64-signed
shim-signed
I would like some way to fix the package installation, so apt upgrade
works without errors.
The context for this error: I bought a new SSD, connected it to my computer, dd
'd the contents of ata-Samsung_SSD_860_EVO_500GB_S3Z1NB0K866259H
onto the new disk, edited /etc/fstab
to point to the new disk, rebooted, updated the BIOS and started using Ubuntu on the new disk.
Everything has been functioning fine (booting into Ubuntu, using software and hardware, upgrading other packages), except for this one error above, where the grub package upgrade process is trying to find the old drive.
Things I have tried:
sudo dpkg --configure -a
just in case it would magically fix the issuesudo dpkg-reconfigure grub-efi-amd64-signed
but that just returns 'grub-efi-amd64-signed is broken or not fully installed.'- grepping the whole of
/etc/
and/boot/
for any reference to the old disk, there aren't any