1

I already tried the following:

$ sudo apt install --reinstall grub
$ sudo apt install --reinstall grub2-common
$ sudo apt install --reinstall grub-efi-amd64
$ sudo apt install --reinstall grub-efi-amd64-bin
$ sudo apt autoremove
$ sudo apt install grub-efi-amd64-signed

I get this:

Errors were encountered while processing:
 grub-efi-amd64-signed
 shim-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Since my topic was marked as duplicate, I showed the generosity to double check the same topic which I've already checked.

ii  linux-headers-4.15.0-39                4.15.0-39.42 all          Header files related to Linux kernel version 4.15.0
ii  linux-headers-4.15.0-39-generic        4.15.0-39.42 amd64        Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii  linux-image-4.15.0-39-generic          4.15.0-39.42 amd64        Signed kernel image generic

nodes are below and I don't know how to empty them:

Filesystem     Inodes IUsed IFree IUse% Mounted on
udev             978K   535  977K    1% /dev
tmpfs            985K  1.1K  984K    1% /run
/dev/sda2         59M  176K   59M    1% /
tmpfs            985K    92  985K    1% /dev/shm
tmpfs            985K     5  985K    1% /run/lock
tmpfs            985K    18  985K    1% /sys/fs/cgroup
/dev/loop0        747   747     0  100% /snap/gnome-system-monitor/57
/dev/loop4       1.7K  1.7K     0  100% /snap/gnome-logs/45
/dev/loop7        27K   27K     0  100% /snap/gnome-3-26-1604/74
/dev/loop1        13K   13K     0  100% /snap/core/5742
/dev/loop3       1.6K  1.6K     0  100% /snap/gnome-characters/139
/dev/loop6         35    35     0  100% /snap/canonical-livepatch/50
/dev/loop5        24K   24K     0  100% /snap/spotify/26
/dev/loop8        13K   13K     0  100% /snap/core/5897
/dev/loop9       1.3K  1.3K     0  100% /snap/gnome-calculator/260
/dev/loop2        27K   27K     0  100% /snap/gtk-common-themes/818
/dev/sda1           0     0     0     - /boot/efi
tmpfs            985K    24  985K    1% /run/user/121
tmpfs            985K    35  985K    1% /run/user/1000
codear
  • 151

2 Answers2

2

Im not an expert at this topic at all but

Could not prepare Boot variable: No space left on device

sounds to me like the efi partition might be out of space. You could try to check the size of your boot partition and see if there's enough space available

Flo
  • 173
0

I experienced the same error today. My /boot/efi partition still had lots of free space though. Before you do anything note that your system possibly won't be able to boot after a restart. So prepare yourself beforehand.

In my case I could solve it with a simple grub reinstall by using boot-repair.

  1. Boot from Ubuntu Live USB-Stick (in EFI-mode if your system is installed in EFI-mode)
  2. Install and launch boot-repair: sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair

  3. Choose "Recommended Repair"

  4. Restart your system, it should boot into your OS now.

Doopy
  • 261
  • 1
  • 2
  • 8