Hello geraldocg,
Welcome to this forum.
You should not use the Lazarus that come from your Ubuntu repository. For Ubuntu users, I recommend Synaptic Package Manager (instead of the default Ubuntu Software Manager).
First download the 3 debs file from Lazarus official website (via SourceForge):
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.6.4/Because you have already tried to install Lazarus, you may need to clean up the previous installation:
01. Uninstall lazarus, fpc, fpc-src (use Ctrl+F shortcut on your Synaptic to search)
02. Delete ~/.lazarus
03. Delete /etc/fp* (fpc.bak, fpc.cfg, fppkg.bak, fppkg.cfg)
04. Delete /usr/share/fpsrc
05. Delete /usr/lib/fpc
06. Delete /usr/bin/ppc* (ppcarm, ppcross386, ppcrossarm, ppcx64)
After the cleaning up prosedure, then now Install the Lazarus:
07. Install fpc_3.0.2-170225_amd64.deb
08. Install fpc-src_3.0.2-170225_amd64.deb
09. Install lazarus-project_1.6.4-0_amd64.deb
Your Lazarus now should be able to start and run properly. But you should to lock your Lazarus/FPC to prevent Ubuntu to mess up your installation with its upgrades. To do it:
Start your Synaptic Package Manager > Select fpc, fpc-src, lazarus-project > menu item: Package > Lock Version.
Have fun!