Just got a second Raspberry Pi5 and downloaded the released version of Ubuntu 24.04 Arm version from the Ubuntu site.
Had a quirky time installing Ubuntu, first try failed when I installed with adding a WiFi connection during the install.
Second try, no WiFi and it seemed to work. Some odd display issues while completing the install, but seemed to work. For the install I just the Raspberry Pie imager and selected the option to allow me to supply the image. Took a few minutes, but finally burned the memory stick, then dumped it into the RP5 and installed.
This is all I did to do the Lazarus install -
sudo apt-get install lazarus
Changed the debugger to GDB instead of FPC's debugger which does not work on Arm so I have been told.
F9 to compile and it seemed to work. Not much more then testing with a simple form.
Lazarus doesn't show up in the SNAP package manager search as well as a lot of other stuff (Like Geany editor) but using the 'apt-get' seems to work just fine.
Easy for a change.