Computing: Free Pascal Programming

Installing Lazarus/Free Pascal on Debian based systems.


Concerning this document, please note the following:

Operating systems overview.

The following table gives an overview of the operating systems, that I tested, with their version, the installation method, that I used, the version of Lazarus that was installed1 and an indication, where to look for further details. In the following paragraphs, I will give details concerning the different operating systems and discuss the problems that I encountered.

Operating systemVersionPlatformInstall methodLazarusNotes
antiX2264-bitAptGet2.0.10Cf. Ubuntu tutorial and antiX paragraph below
BioLinux864-bitAptGet1.0.10Cf. Ubuntu tutorial
Debian11.464-bitAptGet2.0.10Cf. Ubuntu tutorial and Debian paragraph below
Deepin Desktop20.564-bitDeepin AppStore2.0.0No installation issues. Cf. Deepin paragraph below
elementary OS6.164-bitAptGet2.0.6No installation issues. Cf. Ubuntu tutorial
Kali Linux2021 4a64-bitAptGet2.2.0Cf. Ubuntu tutorial and Kali Linux paragraph below
Kubuntu23.0464-bitAptGet2.2.4Cf. Ubuntu tutorial and Kubuntu paragraph below
Linuxfx11.164-bitAptGet2.0.6No installation issues. Cf. Ubuntu tutorial
Linux Lite6.064-bitApt from ok2cqr/lazarus repository2.2.0Cf. Linux Lite paragraph below
MakuluLinuxLinDoz 202164-bitVarious2.2.0/2.0.10Failure! Cf. MakuluLinux paragraph below
Linux Mint20.364-bitNot installed22.0.6I suppose that you can proceed as described in my Ubuntu tutorial
MX Linux21.164-bitAptGet + MX Package Installer2.0.10Incomplete install with AptGet! Cf. MX Linux paragraph below
openKylin1.064-bitVarious3.0.0Failure! Cf. openKylin paragraph below
Parrot OS Security5.0.164-bitVarious2.2.0/2.0.10Failure! Cf. Parrot OS paragraph below
Peppermint OS (Devuan)1132-bitSynaptic Package Manager2.2.4/2.0.10Cf. Peppermint OS paragraph below
Pop!_OS22.0464-bitAptGet2.2.0Cf. Ubuntu tutorial and Pop!_OS paragraph below
SemiCode OS1.032-bitAptGet1.0.10Cf. Ubuntu tutorial and SemiCode OS paragraph below
Ubuntu18.0464-bitAptGet1.8Cf. detailed Ubuntu 18.04 tutorial
20.0464-bitAptGet2.0.6Cf. Ubuntu tutorial
Uruk GNU/Linux3.064-bitSynaptic Package Manager2.0.10Cf. Uruk GNU/Linux paragraph below
Zorin OS16.164-bitApt from ok2cqr/lazarus repository2.0.6No installation issues. Cf. Zorin OS paragraph below

Lazarus/FPC on antiX.

When you launch Lazarus for the first time, as on all other platforms, it's the Configure Lazarus IDE window that shows up. In the case of my Lazarus installation on antiX, problems were reported concerning the IDE itself, the Free Pascal sources and the GNU debugger.

Lazarus/FPC on antiX: Problems with the IDE version, the FPC sources and the GNU debugger

Concerning the sources, the error message tells us that the directory rtl has not been found. If you have a look into the directory that should contain the sources, you'll see that there is nothing but the compiler messages. The FPC sources have obviously not be installed with the apt-get install lazarus command! I decided to install all fpc packages, what can be done by the command:
    apt-get install fpc

Similarly, the GDB related error occurs because the GNU debugger has not been installed. We can do it now by running the command:
    apt-get install gdb

Note: If after these installs you restart Lazarus, you get the message shown on the screenshot: There is already a configuration from version 2.0.10 in /home/{user-name}/.lazarus. This is due to the fact, that a configuration file had been created when Lazarus was launched for the first time (after the apt-get install lazarus. You are asked if you want to change the configuration; push the Downgrade button to convert settings to the new configuration.

Lazarus/FPC on antiX: Convert existing settings to new configuration

Concerning the IDE, the error is due to the fact that there is a wrong version in ide/version.inc: 2.0.10+dsfg-4, with the actual version being 2.0.10+dsfg-4+b2, as you can see in the window's title bar on the screenshot above.
This issue may easily be resolved by correcting the version in the file ide/version.inc. You can use File Explorer to browse to /usr/lib/lazarus/2.0.10/ide and open the file in Geany (the programming editor being used as default text editor on antiX). Change the version stated in the file, adding the missing "+b2" and, as you cannot save the file directly as simple user, save it somewhere in your home directory, for example, the Documents folder. Then open a terminal and enter the following in order copy the modified file as root to its original location:
    su
    cd Documents
    cp version.inc /usr/lib/lazarus/2.0.10/ide
The next time, you start Lazarus, all should be ok.

Lazarus/FPC on Debian.

When you launch Lazarus for the first time, as on all other platforms, it's the Configure Lazarus IDE window that shows up. In the case of my Lazarus installation on Debian, a problem was reported concerning the IDE itself: Wrong version in ide/version.inc: 2.0.10+dsfg-4, with the actual version being 2.0.10+dsfg-4+b2, as you can see in the window's title bar on the screenshot.

Lazarus/FPC on Debian: Wrong version of the IDE in include file

This issue may easily be resolved by correcting the version in the file ide/version.inc. You can use File Explorer to browse to /usr/lib/lazarus/2.0.10/ide and open the file in Pluma (Debian default text editor). Change the version stated in the file, adding the missing "+b2" and, as you cannot save the file directly as simple user, save it somewhere in your home directory, for example, the Documents folder. Then open a terminal and enter the following in order copy the modified file as root to its original location:
    su
    cd Documents
    cp version.inc /usr/lib/lazarus/2.0.10/ide/version.inc
The next time, you start Lazarus, all should be ok.

Lazarus/FPC on Deepin.

The installation of Lazarus/FPC on Deepin is a one-click operation. In fact, Lazarus is available in Deepin AppStore. Open this application and search for "lazarus". Select the only search result "Lazarus: The paradise for Pascal developers" and push the Install button. That's it! And no problem encountered on my system.

Lazarus/FPC on Deepin: Installing Lazarus with Deepin App Store

Lazarus/FPC on Kubuntu.

Kubuntu has its own package manager, called Discover and there is a Lazarus package available. The installation succeeds without any problems and a Lazarus launcher is created in the "Development" group of the Start menu. However, it's not possible to actually start the IDE. An error message pops up saying Can't find the lazarus executable. And checking at /usr/lib/lazarus/2.2.4, the only executable there is "startlazarus", that actually uses (the not existing) "lazarus" to start the IDE.

So, I uninstalled Lazarus using Discover and tried to reinstall it using AptGet, following the procedure described with Ubuntu in my Installing Lazarus/Free Pascal on Linux tutorial. This worked fine, except that when launching the IDE and the Configure Lazarus IDE window shows up, I got the following error condition: There is a problem with the Fppkg configuration. To resolve this issue, push the Restore Fppkg configuration button (screenshot on the left) and in the opening Generate new Fppkg configuration files window, push the Write new configuration files button (screenshot on the right). When done, the red exclamation mark next Fppkg should have disappeared, all ok now and the IDE starting up properly.

Lazarus/FPC on Kubuntu: Problem with Fppkg configuration file
Lazarus/FPC on Kubuntu: Writing new Fppkg configuration files

Lazarus/FPC on Kali Linux.

When you launch Lazarus for the first time, it's the Configure Lazarus IDE window that shows up. In the case of my Lazarus installation on Kali Linux, I got the following error condition: There is a problem with the Fppkg configuration. To resolve this issue, push the Restore Fppkg configuration button (screenshot on the left) and in the opening Generate new Fppkg configuration files, push the Write new configuration files button (screenshot on the right). When done, the red exclamation mark next Fppkg should have disappeared, all ok now and the IDE starting up properly.

Lazarus/FPC on Kali Linux: Problem with Fppkg configuration file
Lazarus/FPC on Kali Linux: Writing new Fppkg configuration files

Note: It seems that Kali 2022.3 has issues with the installation of Lazarus, possibly similar to those, I experienced with Parrot OS.

Lazarus/FPC on Linux Lite.

Here, I used Apt to install Lazarus from the ok2cqr/lazarus repository3. Open a terminal and enter the following commands:
    sudo add-apt-repository ppa:ok2cqr/lazarus
    sudo apt update
    sudo apt install lazarus fpc
The 3 commands respectively add the repository, update the package list and install Lazarus/FPC.

When you launch Lazarus for the first time, it's the Configure Lazarus IDE window that shows up. In the case of my Lazarus installation on Linux Lite, I got the following error condition: There is a problem with the Fppkg configuration. To resolve this issue, push the Restore Fppkg configuration button (screenshot on the left) and in the opening Generate new Fppkg configuration files window, push the Write new configuration files button (screenshot on the right). When done, the red exclamation mark next Fppkg should have disappeared, all ok now and the IDE starting up properly.

Lazarus/FPC on Linux Lite: Problem with Fppkg configuration file
Lazarus/FPC on Linux Lite: Writing new Fppkg configuration files

Lazarus/FPC on MakuluLinux.

I tried several methods to install Lazarus on MakuluLinux, without success. The reason for this might be that there isn't no longer any support for MakuluLinux LinDoz 2021, the version that I actually use.

I first tried using the MakuluLinux Software application. In Developer Tools, there are two versions of Lazarus listed: 2.2.6 and 2.0.10. I tried both and got the same error 404 (not found) in both cases.

Lazarus/FPC on MakuluLinux LinDoz: Error 404 when trying to install using 'Software'

I then decided to try with apt-get. First, I ran sudo apt-get update to be sure to have the latest package list. As the screenshot below shows, there are are several repositories that are not working correctly. For some, there is no release file available, for others no public key; some repositories have changed the code name and the httpd server at makululinux.online refuses the connection. As I said above, maybe the problem is that I don't use the latest release.

Lazarus/FPC on MakuluLinux LinDoz: Repoitory errors during 'apt-get update'

If you search for the "lazarus" package, you will be told that there are two of them available: lazarus-2.0 and lazarus-2.2. The same situation for both of them: Instead of starting the download, several 404 (not found) error messages, and the installation aborts. Considering the not working repositories, this is not really a surprise.

Lazarus/FPC on MakuluLinux LinDoz: '404 (not found)' errors during 'apt-get install'

Trying with Synaptic Package Manager, the same as above, except that the dialog box with the error message Some of the packages could not be retrieved from the server(s) includes the possibility to continue installation without these packages. This wouldn't be a good idea, I guess, and didn't do it. Maybe that I should have tried?

Lazarus/FPC on MX Linux.

I tried to install Lazarus the "usual" way, using AptGet (for details cf. Installing Lazarus/Free Pascal on Ubuntu). When starting Lazarus for the first time, the Configure Lazarus IDE window showed up, indicating not only that there was a wrong Lazarus version stated in ide/version.inc, but also that the FPC sources and the debugger hadn't been installed!

Lazarus/FPC on MX Linux: Incomplete installation with AptGet - FPC sources missing
Lazarus/FPC on MX Linux: Incomplete installation with AptGet - GBD (GNU debugger) missing

I decided to use the MX Package Installer to install the missing components. Maybe, that if I had used it for Lazarus, too, all dependencies would have been resolved and all Lazarus components properly installed. Maybe... The screenshot shows the results, I got, when searching for "fpc" in MX Package Installer and what packages I selected for installation. After that, I searched for "gdb", and selected the package "gdb (GNU debugger)", version 10.1-1.7 to be installed.

Lazarus/FPC on MX Linux: Installing the FPC packages using MX Package Installer

After all packages have been installed, I restarted Lazarus and got the message shown on the screenshot: There is already a configuration from version 2.0.10 in /home/{user-name}/.lazarus. This is due to the fact, that a configuration file had been created when I launched Lazarus after the (incomplete) installation with AptGet. You are asked if you want to change the configuration; push the Downgrade button to convert settings to the new configuration.

Lazarus/FPC on MX Linux: Convert existing settings to new configuration

Nearly done. The only issue remaining is the wrong version in ide/version.inc: 2.0.10+dsfg-4, with the actual version being 2.0.10+dsfg-4+b2, as you can see in the window's title bar on the screenshot.

Lazarus/FPC on MX Linux: Wrong version of the IDE in include file

This issue may easily be resolved by correcting the version in the file ide/version.inc. You can use File Explorer to browse to /usr/lib/lazarus/2.0.10/ide and open the file in Pluma (Debian default text editor). Change the version stated in the file, adding the missing "+b2". As you are actually in a directory, where only the super user has the permission to write to, you will be asked for your password before you can do so. The next time, you start Lazarus, all should be ok.

Lazarus/FPC on openKylin.

I tried several ways to install Lazarus on openKylin 1.0: just failures! In the openKylin specific Software Store, there is no lazarus package available. Trying to find it using apt-cache search lazarus, the only results that I got were related to the Castle Game Engine. Finally, I tried to install Lazarus from the DEB archive, that I downloaded from Sourceforge. Double-clicking the file lazarus-project_3.0.0-0_amd64.deb, opens the Installer app, with the possibility to install the package using One-click install. Failure due to missing fpc dependencies. I searched the Ubuntu servers for Free Pascal DEB archives. Trying to install the fp-compiler-3.2.2 package, the installation failed with the error message list index out of range, whatever that should mean...

Lazarus/FPC on Parrot OS.

I tried several ways to install Lazarus 2.2.0: using the graphical Synaptic Package Manager, using AptGet, using Apt from the ok2cqr/lazarus repository: just failures, due to unmet dependencies. I posted in the Parrot forum, where I was said that there are known issues with Lazarus 2.2.0 on Parrot OS 5.0.1 (as on Kali Linux 2022.3) and that I should try Lazarus 2.0.10. I downloaded the DEB packages from Sourceforge: the FPC compiler and the sources installed without problems, but no chance for the Lazarus package: Could not download all required files error message. I actually gave it up at this stage. If I get some new answers in the forum, I'll update this document; if someone, reading this text, has any suggestions, please, let me know.

Lazarus/FPC on Peppermint OS (Devuan).

Even though I think that the situation is the same with other releases, please, note that I actually use Peppermint OS 11 32bit based on Devuan. I chose to install Lazarus using the Synaptic Package Manager. Searching for "lazarus", two packages are shown as available: "lazarus-2.2" and "lazarus-2.0". Installing version 2.2, does not work: The error message Could not mark all packages for installation or upgrade pops up as soon as you select the package. So, it's Lazarus 2.0 that has to be used. In the Synaptic Packager Manager search results for "lazarus", I checked the packages "lazarus-2.0" (that affects several packages with names starting with "fp-"), "fpc-source" (that also selects "fpc-source-3.2.0"), as well as "lazarus-doc-2.0".

Lazarus/FPC on Peppermint OS: Synaptic Package Manager - Selecting the Lazarus packages

Then, I searched for "fpc", and from the search results, I selected the package "fpc" (that also selects "fpc-3.2.0" and others), as well as the other "-3.2.0" packages not yet selected (cf. screenshot for details).

Lazarus/FPC on Peppermint OS: Synaptic Package Manager - Selecting the FPC and related packages

The installation should be without any problems, and when finished, the Lazarus launcher should be present in the "Development" section of the Start menu. A surprise, however: Instead of the expected version 2.0.10, the launcher is labeled Lazarus 2.2.4.

Obvious, that when launching Lazarus for the first time and the Configure Lazarus IDE window shows up, there is an error reported for the IDE itself: wrong version in ide/version.inc; 2.0.10+dsfg-4, with the actual version being 2.2.4+dsfg1-1, as you can see in the window's title bar on the screenshot. But there are two other issues: 1. the GNU Debugger has not been found, and 2.there is a problem with Fppkg.

Lazarus/FPC on Peppermint OS: Configure Lazarus IDE - Several issues to resolve to make Lazarus work

The GNU Debugger has not been found because it is not installed by default on Peppermint OS. Resolve the issue by installing the package "gdb" (plus all the automatically selected dependencies). I did it the same way as for Lazarus and fpc: using the Synaptic Package Manager.

When installation is done and you relaunch Lazarus, a window pops up telling you that there is already a configuration from version 2.0.10 in /home/{user-name}/.lazarus. Push the Upgrade button to overwrite the old (erroneous) configuration file (converting the existing settings to the new configuration).

Lazarus/FPC on Peppermint OS: Convert existing settings to new configuration

Two issues remaining: the version of the IDE and Fppkg. To solve the first one, you'll have to edit the file version.inc, located in the /usr/lib/lazarus/2.0.10/ide directory. Replace the version written there by the one shown in the title bar of the Configure Lazarus IDE window, that is 2.2.4+dsfg1-1.

Lazarus/FPC on Peppermint OS: Setting the correct IDE version in file version.inc

Use the Save As command of the text editor to save version.inc to some location in your home directory. Then open a terminal and, as super-user, copy the file to its original location. Being in the directory where you saved the file, run the command
    sudo cp version.inc /usr/lib/lazarus/2.0.10/ide/version.inc

I'm not sure about this, but I suppose that there is something wrong here, that there is some version mismatch. Lazarus has been installed into a directory called "2.0.10" and the compiler is version 3.2.0 (that is the compiler included with Lazarus 2.0.x, the one being included with Lazarus 2.2.x being version 3.2.2). This means that the version of Lazarus actually installed is (seems to be) version 2.0.10. And the IDE itself being version 2.2.4! Maybe this is the reason for the issues described below?

Remains the Fppkg problem. In the Configure Lazarus IDE window, select Fppkg and push the Restore Fppkg configuration button. Then, in the opening Generate new Fppkg configuration files window, push the Write new configuration files button. Be sure to let the path auto-filled in (in my case: /usr/lib/i386-linux-gnu/fpc/default) unchanged!

Now all red exclamation marks in Configure Lazarus IDE should be gone and we can start the IDE. Not everything is fine on my system: Several warning messages pop up, telling that a given package file hasn't be found (push the Ignore these warnings button), or that there is a package registration error (push the Ignore all button).

Lazarus/FPC on Peppermint OS: 'Package not found' warning message when starting the IDE
Lazarus/FPC on Peppermint OS: 'Package registration error' warning message when starting the IDE

These warnings are displayed each time that you start the IDE. Are they related to the version mismatch, I talked about further up in the text? Is it possible to resolve the issue? Or, at least, make disappear the messages? As my Lazarus/FPC installation works well, I did not try to find a solution...

Another warning message only pops up the first time the IDE is launched. Does it mean that the documentation installation is incomplete? As for the other warnings, I did not try to find out what it's really about and how to resolve the issue...

Lazarus/FPC on Peppermint OS: 'Documentation file not found' warning message when starting the IDE for the first time

Difficult to understand for me, why developers design these "reversed-colors" interfaces and how users do to read a white text on a green background... Anyway, despite the installation issues, the warning pop-ups and the (probable) version mismatch, my Lazarus installation seems to work correctly (some packages not being available). I successfully built and ran my BlackJack2 GUI application. That's what finally counts, isn't it?

Lazarus/FPC on Pop!_OS.

I first tried to install Lazarus using Pop!_Shop. The package (version 2.2.0) is actually available and installation succeeded, but when I tried to launch the IDE, I got the error message Can't find the lazarus executable. I didn't investigate this further, but decided to do as I did on Ubuntu and to use apt-get.

Lazarus/FPC on Pop!_OS: Lazarus executable not found, when installation is done using Pop!_Shop

When you launch Lazarus for the first time, it's the Configure Lazarus IDE window that shows up. In the case of my Lazarus installation on Pop!_OS (as on several other distributions), I got the error message: There is a problem with the Fppkg configuration. To resolve this issue, push the Restore Fppkg configuration button (screenshot on the left) and in the opening Generate new Fppkg configuration files, push the Write new configuration files button, without changing the path indicated by default (screenshot on the right). When done, the red exclamation mark next Fppkg should have disappeared, and the IDE should start up properly.

Lazarus/FPC on Pop!_OS: Problem with Fppkg configuration file
Lazarus/FPC on Pop!_OS: Writing new Fppkg configuration files

However, there is a (not really important) issue remaining: Lazarus has no picture icon on its launcher in Applications. It's just the picture that is missing. As you can see on the screenshot below, the launcher is there, and if you click it, the Lazarus IDE starts up.

Lazarus/FPC on Pop!_OS: No picture icon on the Lazarus launcher in 'Applications'

This is a problem that I had never before, and being far away from being a Linux specialist, it took some time, before I figured out how to solve the issue. On Ubuntu based systems (probably on others, too), the applications are described by .desktop files stored in /usr/share/applications. These files contain information such as the app name, the executable name, if it has to be run in a terminal or not. They also contain the name of the app icon. The icons referenced in these files may be stored at several locations, the (probably?) most used icon directory being /usr/share/app-install/icons.

In my file lazarus-2.2.0.desktop, I found the line
    Icon=lazarus-2.2.0
No icon file with this name in the directory mentioned above (there is a lazarus.png file there, but this one has nothing to do with the app icon), so my first idea was to copy lazarus.ico from /usr/lib/lazarus/2.2.0/ide to /usr/share/app-install/icons, renaming it to lazarus-2.2.0.ico (the name used in the .desktop file). This had no effect, and trying the same using a lazarus.png file (that I downloaded from the Internet) didn't change anything, either.

Finally, I decided to modify the file lazarus-2.2.0.desktop in the /usr/share/applications directory, specifying the full path to the original icon in the Lazarus installation directory:
    Icon=/usr/lib/lazarus/2.2.0/ide/lazarus.ico
After rebooting the system, Lazarus finally had its icon in Applications!

Note: You can open and modify lazarus-2.2.0.desktop in a text editor, but as simple user, you cannot save the modified file to its original location. Use the Save As command of the editor to save it somewhere into your home directory (I chose the Temp folder that I'd had created there) and then, as root in a terminal, copy the file to /usr/share/applications. To do so (being in /home/Temp), run the command
    sudo cp lazarus-2.2.0.desktop /usr/share/applications

Lazarus/FPC on SemiCode OS.

Using Ubuntu Software Center did not work for me: FPC sources and debugger were not installed. So, trying the "usual" way, using AptGet (for details cf. Installing Lazarus/Free Pascal on Ubuntu). This installed the (very) old version 1.0.10, that, of course will not be able to build all projects, developed with the recent Lazarus version, but, in many cases, will work, or will work after a few changes in the source code. One little problem with the broken package "leakview". Just push the OK button, when the message pops up. Except probably for projects using this package, all should work correctly.

Lazarus/FPC on semiCode OS: Broken package 'leakview'

Lazarus/FPC on Uruk GNU/Linux.

The Synaptic Package Manager can be started from the Uruk Welcome window ("Apps"). The first action, that you should take is to reload the package list. Then, you can use the Search feature to search for a given package (similarly to using apt-cache search in the terminal).

Lazarus/FPC on Uruk GNU/Linux: Synaptic Package Manager - Searching for Lazarus packages

In the package list displayed, click lazarus and choose Mark for Installation.

Lazarus/FPC on Uruk GNU/Linux: Synaptic Package Manager - Marking the 'lazarus' package for installation

Synaptic Package Manager tells you that additional packages are required and asks you if you want to mark them for installation, too. Push the Mark button to do so.

Also mark the packages fpc-source (mandatory) and lazarus-doc (if you want so). When all packages are marked, push the Apply button in the menu bar.

Lazarus/FPC on Uruk GNU/Linux: Synaptic Package Manager - Starting installation of the marked packages

A summary of the installation is displayed and you have to confirm (Apply button) to start install.

The new files are downloaded and unpacked. This was rather fast on my machine. When done, the message Successfully applied all changes is displayed and you can close the window. As there wasn't a launcher in the Uruk Menu, I rebooted the computer here. Now, the launcher Lazarus (with a question mark instead of the typical Lazarus icon?) appears in the Programming group.

When you launch Lazarus for the first time, as on all other platforms, it's the Configure Lazarus IDE window that shows up. In the case of my Lazarus installation on Uruk, a problem was reported concerning the IDE itself: Wrong version in ide/version.inc: 2.0.10+dsfg-4, with the actual version being 2.0.10+dsfg-4+b2, as you can see in the window's title bar on the screenshot.

Lazarus/FPC on Uruk GNU/Linux: Wrong version of the IDE in include file

This issue may easily be resolved by correcting the version in the file ide/version.inc. You can use File Explorer to browse to /usr/lib/lazarus/2.0.10/ide, right-click the file and choose Edit as administrator from the context menu to open it in Pluma (Uruk default text editor). Change the version stated in the file, adding the missing "+b2" and, as you actually are root, you may directly save it to its original location.

Lazarus/FPC on Zorin OS.

I used Apt to install Lazarus from the ok2cqr/lazarus repository3. Open a terminal and enter the following commands:
    sudo add-apt-repository ppa:ok2cqr/lazarus
    sudo apt update
    sudo apt install lazarus fpc
The 3 commands respectively add the repository, update the package list and install Lazarus/FPC.

Notes:
  1: If, after the installation is done, you don't find a launch shortcut for Lazarus, rebooting may be required. Also, you can normally launch the IDE from a terminal by entering lazarus-ide.
  2: I haven't installed Lazarus on Linux Mint, to be sure not to mess up my FPC cross-compiler for DOS, 16bit, installed there.
  3: If with some Linux distribution, you get the error message that add-apt-repository does not exist, install the package software-properties-common before using it.


If you find this text helpful, please, support me and this website by signing my guestbook.