Thanks for the suggestions. I was able to get the latest FPC and Lazarus installed using fpcupdeluxe, but it did not turn out easy using it either.
For those that mentioned I should use the "arm" versions, I rquested help installing on a PC running the latest Raspberry PI OS Desktop version which uses the PC processor, not the Arm processor used by the PI hardware.
Using the command "uname -m", the PI OS on the PC said it was using "x86-64". Hence my attempt to install the x86-64 version of FPC which succeeded, but failed when compiling with Lazarus.
Using the x86-64 version of fpcupdeluxe on a clean PC install of the Raspberry PI OS Desktop also failed with errors about missing files, even after installing all the dependencies needed by fpcupdeluxe. So, just to see what happened, I downloaded "fpcupdeluxe-i386-linux" and, lo and behold, it ran just fine and installed both FPC and Lazarus without any problems.
So, either the Raspberry PI OS on my PC is reporting the wrong processor type, or the i386 version of fpcupdeluxe also works for the x86_64 processor.
Maybe if I get the time, I will try manually installing the i386 Linux of FPC on my Pi Desktop and see if it compiles Lazarus.