I will show you how to install lazarus per the official wiki.
First, remove the current installed lazarus, like so:
sudo apt-get remove lazarus*
Clean up packages that the old lazarus installation might have left lying around, that might conflict whit the packages from the lazarus repository.
sudo apt-get autoremove
Download the lazarus key:
gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F
Add the lazarus key:
gpg --export 6A11800F | sudo apt-key add -
Add the lazarus repo to a lazarus.list file:
echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe" > lazarus.list
Move it to your sources.list
sudo mv -v lazarus.list /etc/apt/sources.list.d/lazarus.list
update your sources list:
sudo apt-get update
install lazarus:
sudo apt-get install -t lazarus-stable lazarus
If you get a missing FPS/Sources, the documentation had this to say:
WOW! You get a message: "Free Pascal sources not found". Just follow the instructions and indicate your Free Pascal Compiler source directory in the panel: "Environment->Options->Files". As explained earlier, on my computer this should point to "/usr/local/src/fpc-2.4.2". Note that when you change this folder, you should click on "Environment / Rescan_FPC_source_directory". - Installing Lazarus - Free Pascal wiki
Reference: