How to install Lazarus on Ubuntu

I have installed Lazarus from the Ubuntu Software Center before, but yesterday I tried to install Ubuntu on my Mac and I don't see Lazarus listed.

Does anyone have a URL for the Ubuntu installation or the code that I can use to install it at the command prompt? Might I find it at https://snapcraft.io/?q=lazarus&op= ?


Solution 1:

Getting Lazarus from Ubuntu repository

BEWARE: THIS PAGE IS OUTDATED.

sudo apt-get install lazarus-ide

Getting Lazarus from freepascal repository

Add the key

gpg --keyserver hkp://pgp.mit.edu:11371 --recv-keys 6A11800F; gpg -a --export 6A11800F | sudo apt-key add -

Add the repository

echo "deb http://www.hu.freepascal.org/lazarus/ lazarus-stable universe" | sudo tee /etc/apt/sources.list.d/lazarus-stable.list

Installtion

sudo apt-get update; sudo apt-get install lazarus

Source