I am not sure if it is related or not. But some years ago, Lazarus had installation issue with the packages provided by Ubuntu package maintainer.
First. Make sure you have correct Lazarus/FPC/sources installed in your system. Use your Synaptic Package Manager the check the version of the installed pakages (see
img1):
Lazarus project --- version
2.2.6fpc-laz --- version
3.2.2fpc-src --- version
3.2.2You should also check your Lazarus about box, by doing this:
Lazarus main menu >
Help >
About Lazarus.
It should show you version 2.2.6, see
img2.
If you get the correct versions reported by Synaptic and about box, you should have your Lazarus installed properly.
But if you're having different version installed, you may need to perform a
complete Lazarus/FPC removal before installing them, read here:
https://forum.lazarus.freepascal.org/index.php/topic,38828.msg265293.html#msg265293