Don't use FPC/Lazarus from Distro-Repo's!
Especially the Ubuntu one......
The OP is using U21.10, you cannot get more current that that ! (Its not due out for several months ...)
But seriously, distro's release cycles mean you almost never see a current version in the distro's repo.
..... i used gdebi to install deb's, since gdebi resolves dependencies
apt will resolve dependencies, I don't think apt-get does and am sure dpkg does not. But gdebi is a great little tool for lots of other reasons too.
My advice for all but the very beginner (linux) user is to install FPC from sourceforge (or from a tarball) and download and compile Lazarus. You end up with a heap more flexible system that way. Its what fpcupdeluxe does but by doing it yourself (all three commands ! ) you understand where everything is and how its connected together.
Installing lazarus from debs or rpms (either distro repo or sourceforge) is silly really. Its gets all installed under /usr and the very first time you rebuild the IDE (ie for a package install) that /usr install is ignored, you use the one hidden away in your home directory under the laz config directory.
Davo