8

I am trying to install Kubuntu 24.04 with manual partitioning. I have created primary partitions for EFI and boot, and an encrypted partition with logical volumes for swap, root, and home.

enter image description here

Previously, after this step I just run the Kubuntu installer, manually assigned /dev/mapper/vg0-* partitions for root, home, and swap, as well as the primary partitions for /boot/efi and /boot, and it all worked ok.

But in Kubuntu 24.10 the installer changed, and now I'm not sure what I should do. There are separate dropdown items for the whole disk and for the mounted logical volume, and the installer suggests that I should format the logical volumes to use them, and then tries to delete them for some reason.

enter image description here

It all ends with this error:

enter image description here

Is there any way to solve this? Maybe I do not need to manually partition the disk prior to running the installer? Could I achieve what I want just using the dialogs within the installer itself?

3
  • 24.10 or 24.04? Another approach is to just run a standard/minimal install and then migrate it over to the structure you actually wanted. Commented May 4, 2024 at 6:53
  • @frostschutz thank you, 24.04 definitely) I'm not sure how to migrate to a new partitioning structure after the installation. Seems to be even more complex and potentially error-prone. I decided to install 23.04 and then upgrade to 24.04. But that's impossible too for now, only new installs are permitted. But hopefully that's a matter of weeks. Commented May 4, 2024 at 12:21
  • 23.04 is EOL, 23.10 should work until July 2024, otherwise 22.04 LTS should continue to work, if you don't mind upgrading after installing. Commented May 13, 2024 at 5:51

2 Answers 2

5

I actually found a solution and was able to perform an installation. I created and mounted my luks volumes (with luksOpen), and after that formatted all of them with mkfs / mkswap.

The key to success was to name the luks device (when opening it) to live-WHATEVER, so that it appears under /dev/mapper/live-WHATEVER.

Also, before starting the installation, I run the command while true; do vgchange -ay; done (it should stay running in terminal while the installation is performed).

Not sure if any one of those would be enough, but as a result, my luks partitions were not unmounted during the installation, and I was able to successfully install the system on them.

I found this solution on Calamares github issues, not sure if I'm allowed to post links here, but I hope this attribution is enough.

5
  • this solution didn't work for me in Ubuntu: does kubuntu use different installer? Commented Jun 5, 2024 at 15:30
  • 3
    @morgwai Kubuntu 24.04 LTS uses the calamares installer (as three flavors use), which yes differs to ubuntu-desktop-installer used by Ubuntu Desktop and in fact most flavors. The calamares installer can use LUKS2 Commented Jul 26, 2024 at 4:19
  • yeap, standard installer completely fail Commented Mar 7 at 16:22
  • it sounds strange, but i can confirm that (after creating the LUKS container and formatting with the desired filesystem) the necessary step is to make them available at /dev/mapper/live-XYZ. - even using /dev/mapper/luks-UUID (like it is done in a default setup) makes Calamares abort the installation. Commented Jun 9 at 21:29
  • This worked for me on the 3rd or 4th try, but i didn't follow the instructions exactly from the beginning. On the attempt that worked, I was careful to 1) use cryptsetup open /dev/nvme0n1p4 live-p16vg to open the volume group (it was created in previous attempts as "p16vg") and run vgchange -ay in a loop in a window before even click "Install". I may not have done that in earlier attempts. Commented Jun 27 at 9:10
0

Boot into a live environment, and configure your /boot and LVM/luks or luks/LVM the way you'd like.

Then start the installer and choose your existing partitions.

Sometimes you need to run boot-repair to get a bootable system.

1
  • Ubuntu 24.04 has a new installer, which no longer displays existing LUKS/LVM/mdadm, so you can't choose them. You can do it with 22.04 LTS, and then upgrade... Commented May 13, 2024 at 5:49

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.