Error setting LUKS recovery key during install

Asked by fcodvpt

Hi,

I have installed Ubuntu 22.04 last week, and configured an encrypted partition. Ubuntu 20.04 was installed before with the same configuration.

I get a strange error : "Error setting LUKS recovery key"

An error occurred while setting the recovery key. The
installation will continue, but you may have to manually add the recovery
key in the installed system with the command:

cryptsetup luksAddKey device_name

My passphrase works at boot and when I issue the following command :

$ sudo cryptsetup luksOpen --test-passphrase /dev/nvme0n1p4 && echo correct
Saisissez la phrase secrète pour /dev/nvme0n1p4 :
correct

Can I ignore the message ?

$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 953,9G 0 disk
├─nvme0n1p1 259:1 0 750M 0 part /boot/efi
├─nvme0n1p2 259:2 0 5G 0 part
├─nvme0n1p3 259:3 0 95,4G 0 part /
└─nvme0n1p4 259:4 0 852,8G 0 part
  └─nvme0n1p4_crypt 253:0 0 852,8G 0 crypt /home

Regards

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said :
#1

If you can login with the passphrase and login to your system.
I would ignore the message if everything is functioning correctly.
Found this at GitLab
https://gitlab.com/cryptsetup/cryptsetup/-/wikis/FrequentlyAskedQuestions#4-troubleshooting

Can you help with this problem?

Provide an answer of your own, or ask fcodvpt for more information if necessary.

To post a message you must log in.