Ubuntu Version: 26.04
Desktop Environment (if applicable): GNOME
Background
I have installed Ubuntu 26.04 using full-disk TPM-backed LUKS encryption.
Problem Description:
Suppose that my computer is unbootable because of some serious problem. Prior to Ubuntu 26.04, I could boot from a Live USB, and unlock my LUKS partition using my LUKS passphrase.
This doesn’t work with an Ubuntu 26.04 machine.
There are two LUKS partitions, namely ubuntu-save and ubuntu-data. The following discussion applies to both of them.
If I open gnome-disks, choose to unlock either of the LUKS partitions, and enter the recovery key (from the installation process), it says that the passphrase is invalid.
The same thing happens if I try from the terminal using cryptsetup or systemd-cryptsetup.
According to AI, I have to write a Python script to do this! I have searched and cannot find where the correct method is documented.
Question:
How do I unlock my Ubuntu 26.04 LUKS partitions from a Live USB, when my recovery key (which I have quadruple-checked) doesn’t work?
Relevant System Information:
In case it makes a difference, I am testing this in a virtual machine (VirtualBox). The host is Ubuntu 24.04.
