I had an old PC (Intel) with a HDD encrypted with Ubuntu 20.04 full disk encryption. Unfortunately, the hardware failed. Thankfully, the HDD seems intact. So I bought a new AMD-based PC (new CPU, new motherboard).
I tried installing the old HDD in the new hardware, but it wouldn't boot. I encountered error messages, though I don't recall the exact wording. Unfortunately, I couldn't even reach the point of entering the encryption password.
How can I install the old HDD with its encrypted Ubuntu installation onto this new hardware and successfully boot the system?