0

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!

  • 1
    Make sure you have set the two flags turned on for the ESP, /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
  • 1
    You may find this Q&A useful. – user68186 Aug 10 '25 at 16:50
  • 1
    May be easier to just use Sever installer & then add desktop of choice. Have not installed server recently, but it offer this at end. https://help.ubuntu.com/community/Tasksel or you can easily install it to choose a meta-package for desktop of choice. Or just manually install desktop. I like Kubuntu, so ``sudo apt install kubuntu-desktop` – oldfred Aug 11 '25 at 14:18
  • @user68186 The two flags changed nothing in this context. The Q&A is very interesting, but I got the impression Kubuntu does not support RAID official for the distribution. For my productive system, which should be run stable, it looks too experimental for my opinion (use script, clone efi, and the very often statement "this step might be unnecessary". Or in other words: It might to work or fail, or fail at later time, e.g. after some updates etc pp.). Still, thanks for your answer! :) – Schweineschwarte Aug 11 '25 at 17:01
  • @oldfred I'm not sure whether the server version is the most suitable option for my use case. It runs stable, but if I remember correctly, the Ubuntu server does not upgrade some packages (e.g. kernel) with the point-release to the newer main versions, only to minor versions of the package. But this is only a hazy memory. It could be wrong… But I think I will use openSUSE again. It has better support for RAID. Thank you very much! – Schweineschwarte Aug 11 '25 at 17:11

0 Answers0