I have a cloud root server without physical access (from me). It was upgraded from Ubuntu 22.04 to 24.04 a while back, runs nicely. Now
Get:1 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 grub-efi-amd64 amd64 2.12-1ubuntu7.1 [52.8 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 grub-efi-amd64-signed amd64 1.202.2+2.12-1ubuntu7.1 [1391 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 grub-efi-amd64-bin amd64 2.12-1ubuntu7.1 [1635 kB]
Fetched 3079 kB in 0s (46.3 MB/s)
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 192459 files and directories currently installed.)
Preparing to unpack .../grub-efi-amd64_2.12-1ubuntu7.1_amd64.deb ...
Unpacking grub-efi-amd64 (2.12-1ubuntu7.1) over (2.12-1ubuntu7) ...
Preparing to unpack .../grub-efi-amd64-signed_1.202.2+2.12-1ubuntu7.1_amd64.deb ...
Unpacking grub-efi-amd64-signed (1.202.2+2.12-1ubuntu7.1) over (1.202+2.12-1ubuntu7) ...
Preparing to unpack .../grub-efi-amd64-bin_2.12-1ubuntu7.1_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.12-1ubuntu7.1) over (2.12-1ubuntu7) ...
Setting up grub-efi-amd64-bin (2.12-1ubuntu7.1) ...
Setting up grub-efi-amd64 (2.12-1ubuntu7.1) ...
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
visually shown in the configure screen of grub-efi-amd64:
Selecting "no" for not continuing leads to the grub-efi-amd64 GRUB EFI system partitions overview and selection.
Just selecting OK leads to the configuration screen indicating that I didn't select any installation devices for GRUB.
root@sonne:~# cat /etc/fstab
/dev/md1 /boot/efi vfat defaults 0 2
/dev/md2 /boot/ ext3 defaults 0 2
/dev/sda3 none swap sw 0 0
/dev/sdb3 none swap sw 0 0
/dev/md4 / ext4 errors=remount-ro 0 1
root@sonne:~# efibootmgr
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0002,0003,0004,0001,0005
Boot0001 UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)0000424f
Boot0002* UEFI: PXE IP4 P0 Intel(R) I210 Gigabit Network Connection PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x1,0x0)/Pci(0x0,0x0)/MAC(d05099fb8fbd,0)/IPv4(0.0.0.00.0.0.0,0,0)0000424f
Boot0003* UEFI: PXE IP4 P1 Intel(R) I210 Gigabit Network Connection PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(d05099fb8fbe,0)/IPv4(0.0.0.00.0.0.0,0,0)0000424f
Boot0004* ubuntu HD(1,GPT,1284e62b-3831-4206-b5e0-ee707774d046,0x800,0xff800)/File(\EFI\UBUNTU\GRUBX64.EFI)0000424f
Boot0005 ubuntu HD(1,GPT,ebc47eb3-961a-4db1-ab49-b939dbb5399d,0x800,0xff800)/File(\EFI\UBUNTU\GRUBX64.EFI)0000424f
root@sonne:~# l /sys/firmware/efi/
total 0
drwxr-xr-x 5 root root 0 Feb 2 08:50 ./
drwxr-xr-x 6 root root 0 Jan 29 06:00 ../
-r--r--r-- 1 root root 4096 Feb 2 08:50 config_table
drwxr-xr-x 2 root root 0 Jan 29 06:00 efivars/
drwxr-xr-x 3 root root 0 Feb 2 08:50 esrt/
-r--r--r-- 1 root root 4096 Feb 2 08:44 fw_platform_size
-r--r--r-- 1 root root 4096 Feb 2 08:50 fw_vendor
-r--r--r-- 1 root root 4096 Feb 2 08:50 runtime
drwxr-xr-x 22 root root 0 Feb 2 08:50 runtime-map/
-r-------- 1 root root 4096 Feb 2 08:50 systab
root@sonne:/boot/efi/EFI/ubuntu# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 10.1M 1 loop /snap/canonical-livepatch/282
loop1 7:1 0 10.7M 1 loop /snap/canonical-livepatch/286
loop2 7:2 0 52.7M 1 loop /snap/certbot/4193
loop3 7:3 0 55.5M 1 loop /snap/certbot/4325
loop4 7:4 0 64M 1 loop /snap/core20/2379
loop5 7:5 0 63.7M 1 loop /snap/core20/2434
loop6 7:6 0 73.9M 1 loop /snap/core22/1722
loop7 7:7 0 73.9M 1 loop /snap/core22/1748
loop8 7:8 0 66.2M 1 loop /snap/core24/716
loop9 7:9 0 66.2M 1 loop /snap/core24/609
loop10 7:10 0 87M 1 loop /snap/lxd/29351
loop11 7:11 0 44.3M 1 loop /snap/snapd/23258
loop12 7:12 0 89.4M 1 loop /snap/lxd/31333
loop13 7:13 0 44.4M 1 loop /snap/snapd/23545
sda 8:0 0 447.1G 0 disk
|-sda1 8:1 0 511M 0 part
| `-md1 9:1 0 510.9M 0 raid1 /boot/efi
|-sda2 8:2 0 1.4G 0 part
| `-md2 9:2 0 1.4G 0 raid1 /boot
|-sda3 8:3 0 3.7G 0 part [SWAP]
`-sda4 8:4 0 441.5G 0 part
`-md4 9:4 0 441.5G 0 raid1 /
sdb 8:16 0 447.1G 0 disk
|-sdb1 8:17 0 511M 0 part
| `-md1 9:1 0 510.9M 0 raid1 /boot/efi
|-sdb2 8:18 0 1.4G 0 part
| `-md2 9:2 0 1.4G 0 raid1 /boot
|-sdb3 8:19 0 3.7G 0 part [SWAP]
`-sdb4 8:20 0 441.5G 0 part
`-md4 9:4 0 441.5G 0 raid1 /
Reading through some forums, I ended up trying
root@sonne:/boot/efi/EFI/ubuntu# grub-install --efi-directory=/boot/efi
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
root@sonne:/boot/efi/EFI/ubuntu# dpkg-reconfigure grub-efi-amd64
With more screens:
resulting again in
mount: /var/lib/grub/esp: unknown filesystem type 'linux_raid_member'.
dmesg(1) may have more information after failed mount system call.
Failed: grub-install --target=x86_64-efi
WARNING: Bootloader is not properly installed, system may not be bootable
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-52-generic
Found initrd image: /boot/initrd.img-6.8.0-52-generic
Found linux image: /boot/vmlinuz-6.8.0-51-generic
Found initrd image: /boot/initrd.img-6.8.0-51-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
And I have no clue how to complete and properly set it up. When I now want to continue with the...
root@sonne:~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
[master 8317416] saving uncommitted changes in /etc prior to apt run
1 file changed, 60 insertions(+), 40 deletions(-)
Setting up grub-efi-amd64-signed (1.202.2+2.12-1ubuntu7.1) ...
I keep getting stuck again with the above.
mount: /var/lib/grub/esp: unknown filesystem type 'linux_raid_member'.
dmesg(1) may have more information after failed mount system call.
dpkg: error processing package grub-efi-amd64-signed (--configure):
installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32
Errors were encountered while processing:
grub-efi-amd64-signed
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
and picture 8.
I - for a different root server, as well after dist upgrade from 22.04 to 24.04, I experienced the unhelpfulness of the provider support. That ended my reinstalling the entire machine. I hope this isn't necessary again for this machine.
addendum 04.02.2025 based on @oldfred response. I am not really sure what to do.
root@sonne:~# lsblk -e 7 -o name,fstype,size,fsused,label,partlabel,mountpoint,uuid,partuuid
NAME FSTYPE SIZE FSUSED LABEL PARTLABEL MOUNTPOIN UUID PARTUUID
sda 447.1G
|-sda1 linux_raid_member 511M primary 7dec9b76-ea28-cc78-de90-a3d67ba6dcb5 1284e62b-3831-4206-b5e0-ee707774d046
| `-md1 vfat 510.9M 5.1M /boot/efi E437-80B3
|-sda2 linux_raid_member 1.4G punix:2 primary c96e29d1-bd09-eaf6-7c37-346fd033185e ea1eb243-1845-401a-8eb9-0eac19a4c994
| `-md2 ext3 1.4G 185.6M boot /boot 7df6b587-b7e6-4118-8050-f478e7840334
|-sda3 swap 3.7G primary [SWAP] ee61ec2d-9bc8-4787-80b9-fdd210705a8f a9bafd69-4492-42a5-b24b-29af0a93c506
`-sda4 linux_raid_member 441.5G punix:4 primary 019c4745-ae32-bb47-6c7f-7a8b6c5f1192 716d05eb-b396-4579-95f1-415b14240ba7
`-md4 ext4 441.5G 160.1G root / 92bc6983-7bc4-4c98-9cf1-e1225b62a547
sdb 447.1G
|-sdb1 linux_raid_member 511M primary 7dec9b76-ea28-cc78-de90-a3d67ba6dcb5 ebc47eb3-961a-4db1-ab49-b939dbb5399d
| `-md1 vfat 510.9M 5.1M /boot/efi E437-80B3
|-sdb2 linux_raid_member 1.4G punix:2 primary c96e29d1-bd09-eaf6-7c37-346fd033185e 3725af1d-2a91-455d-a7b2-3d2116cc9879
| `-md2 ext3 1.4G 185.6M boot /boot 7df6b587-b7e6-4118-8050-f478e7840334
|-sdb3 swap 3.7G primary [SWAP] 0ff2af42-d74d-46e4-b676-f68ed97914c5 2afc1cc5-5c5f-4247-8896-c178c2df49d0
`-sdb4 linux_raid_member 441.5G punix:4 primary 019c4745-ae32-bb47-6c7f-7a8b6c5f1192 e9822d9c-3d0e-478a-aadf-db0810532f7b
`-md4 ext4 441.5G 160.1G root / 92bc6983-7bc4-4c98-9cf1-e1225b62a547
root@sonne:~# efibootmgr
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0002,0003,0004,0001,0005
Boot0001 UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)0000424f
Boot0002* UEFI: PXE IP4 P0 Intel(R) I210 Gigabit Network Connection PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x1,0x0)/Pci(0x0,0x0)/MAC(d05099fb8fbd,0)/IPv4(0.0.0.00.0.0.0,0,0)0000424f
Boot0003* UEFI: PXE IP4 P1 Intel(R) I210 Gigabit Network Connection PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x2,0x0)/Pci(0x0,0x0)/MAC(d05099fb8fbe,0)/IPv4(0.0.0.00.0.0.0,0,0)0000424f
Boot0004* ubuntu HD(1,GPT,1284e62b-3831-4206-b5e0-ee707774d046,0x800,0xff800)/File(\EFI\UBUNTU\GRUBX64.EFI)0000424f
Boot0005 ubuntu HD(1,GPT,ebc47eb3-961a-4db1-ab49-b939dbb5399d,0x800,0xff800)/File(\EFI\UBUNTU\GRUBX64.EFI)0000424f
root@sonne:~# blkid
/dev/sdb4: UUID="019c4745-ae32-bb47-6c7f-7a8b6c5f1192" UUID_SUB="be9a83d4-3544-ef07-2954-48737e1429f5" LABEL="punix:4" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="e9822d9c-3d0e-478a-aadf-db0810532f7b"
/dev/sdb2: UUID="c96e29d1-bd09-eaf6-7c37-346fd033185e" UUID_SUB="301aceb2-d34e-1414-74d3-3279ca57427b" LABEL="punix:2" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="3725af1d-2a91-455d-a7b2-3d2116cc9879"
/dev/sdb3: UUID="0ff2af42-d74d-46e4-b676-f68ed97914c5" TYPE="swap" PARTLABEL="primary" PARTUUID="2afc1cc5-5c5f-4247-8896-c178c2df49d0"
/dev/sdb1: UUID="7dec9b76-ea28-cc78-de90-a3d67ba6dcb5" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="ebc47eb3-961a-4db1-ab49-b939dbb5399d"
/dev/md4: LABEL="root" UUID="92bc6983-7bc4-4c98-9cf1-e1225b62a547" BLOCK_SIZE="4096" TYPE="ext4"
/dev/md2: LABEL="boot" UUID="7df6b587-b7e6-4118-8050-f478e7840334" BLOCK_SIZE="4096" TYPE="ext3"
/dev/sda4: UUID="019c4745-ae32-bb47-6c7f-7a8b6c5f1192" UUID_SUB="712094ba-80ec-5d8d-8e37-3fda70e3bcfc" LABEL="punix:4" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="716d05eb-b396-4579-95f1-415b14240ba7"
/dev/sda2: UUID="c96e29d1-bd09-eaf6-7c37-346fd033185e" UUID_SUB="3e71be1b-0b81-987a-2014-f1f4c9215be3" LABEL="punix:2" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="ea1eb243-1845-401a-8eb9-0eac19a4c994"
/dev/sda3: UUID="ee61ec2d-9bc8-4787-80b9-fdd210705a8f" TYPE="swap" PARTLABEL="primary" PARTUUID="a9bafd69-4492-42a5-b24b-29af0a93c506"
/dev/sda1: UUID="7dec9b76-ea28-cc78-de90-a3d67ba6dcb5" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="1284e62b-3831-4206-b5e0-ee707774d046"
/dev/md1: UUID="E437-80B3" BLOCK_SIZE="512" TYPE="vfat"
I see that the EFI Boot0004* matches to the sda1 PARTUUID. Further, UUIDs for sda1 and sdb1 are identical. Only PARTUUID differ. Ignoring the error doesn't really help, since apt upgrade refuses to work as it keeps running into this problem.







