I tried the following
sudo cryptsetup luksChangekey /dev/nvme0n1p3 < new passphrase >
It then asks for the Sudo password, then asks for the old passphrase, but then it prints this error message
Failed to open key file.
what went wrong ?
Edit: turns out using GNOME Disks is way more straightforward… 😅, thank you all
Have you tried using GNOME Disk Utility?
I have it installed, but I don’t see the option 🤷♂️
Try clicking on the encrypted partition to get the passphrase option.
https://askubuntu.com/questions/95137/how-to-change-luks-passphrase
Here’s how to find it: https://spectra.video/w/tbLNakrf2ncii4NrqJbwE8