from a previous openSUSE installation, I have a Soft-RAID 1, with an unencrypted EFI-partition, an unencrypted boot-partition and an encrypted partition with LVM for root, home, swap and tmp. Now, I want to install Kubuntu 24.04.3 on this pre-configured storage. I boot Kubuntu to live mode, install mdadm and decrypt the encrypted partition with cryptsetup. The Kubuntu installer shows me the RAID1 and the LVMs. I set the EFI-partition to format with FAT32 and mount it to /boot/efi and the boot-partition to format with EXT4 and mount to /boot. The root-LV format with EXT4 and mount to / (and mount the other partition without format). But if I click on install, the installer failed after some time. The error message (translated from german):
The bootloader could not be installed. The installation command <pre>grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu --force</pre> generated error code 1.
Error code 1 give me no origin of the problem. As I know, it is a general error code for "failed". I found no solution to solve this issue. The partition flags "bios-grub" and "bootable" does not change anything in context of this problem. I suppose it could be a context with the RAID1? Does anyone knows a way to install Kubuntu? Or is it not possible at this time? Thank you very much!
/boot/efi. The flags are: 1.esp, and 2.boot. Without these two flags, the ESP will not be recognized by Ubuntu. – user68186 Aug 10 '25 at 16:44