Recent

Author Topic: Cannot install Lazarus on Ubuntu 24.04.4 LTS  (Read 356 times)

bmullan

  • Newbie
  • Posts: 1
Cannot install Lazarus on Ubuntu 24.04.4 LTS
« on: August 03, 2026, 06:01:59 pm »
Ubuntu 24.04.4 LTS
AMD CPU 12 core
64GB memory
BTRFS

I downloaded the .DEB files from here:

https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%204.8/

I tried to install them with GDEBI but fpc-src_3.2.2-210709_amd64.deb repeatedly fails reporting a failed dependency.

I used both CLI and Synaptic to find/fix the dependency and it still fails.
I've been using Ubuntu since it was v4.10 and don't see anything I am doing wrong.

How do I install these 3 .DEB files??   

lazarus-project_4.8.0-0_amd64.deb    
fpc-src_3.2.2-210709_amd64.deb
fpc-laz_3.2.2-210709_amd64.deb


LeP

  • Guest
Re: Cannot install Lazarus on Ubuntu 24.04.4 LTS
« Reply #1 on: August 03, 2026, 06:56:17 pm »
I always installed with that script (packages are downloaded in tmp folder):

Code: Pascal  [Select][+][-]
  1. echo "Install packages and dependency ...."
  2. echo ".... FPC and Lazarus binary ...."
  3. cd ~
  4. sudo apt install /tmp/fpc-laz_3.2.2-210709_amd64.deb
  5. echo ".... FPC and Lazarus source ...."
  6. sudo apt install /tmp/fpc-src_3.2.2-210709_amd64.deb
  7. echo ".... Lazarus enviroment ...."
  8. sudo apt install /tmp/lazarus-project_4.8.0-0_amd64.deb
  9.  
  10. echo ".... End installation"

JD

  • Hero Member
  • *****
  • Posts: 1916
Re: Cannot install Lazarus on Ubuntu 24.04.4 LTS
« Reply #2 on: August 04, 2026, 11:09:54 am »
How do I install these 3 .DEB files??   

lazarus-project_4.8.0-0_amd64.deb    
fpc-src_3.2.2-210709_amd64.deb
fpc-laz_3.2.2-210709_amd64.deb


Put them in the same directory, open the terminal in that directory and run the following command:

Code: Pascal  [Select][+][-]
  1. sudo dpkg -i *.deb
  2.  

That is how I install any program with dependencies in Linux and it has always worked for me. I used *.deb in the command above because there are 3 deb files in the directory, if not, I'll just specify the name of the deb file I downloaded.

Cheers,

JD
« Last Edit: August 04, 2026, 11:13:25 am by JD »
Linux Mint - Lazarus 4.8/FPC 3.2.2,
Windows - Lazarus 4.8/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

Thaddy

  • Hero Member
  • *****
  • Posts: 19614
  • Glad to be alive.
Re: Cannot install Lazarus on Ubuntu 24.04.4 LTS
« Reply #3 on: August 04, 2026, 12:12:31 pm »
Install build-essential first. Problem solved.
Your system needs to be ready for development tools and these don't belong on user machines.
(I believe this has been documented for years, no, decades and not only fpc and/or Lazarus are affected)
« Last Edit: August 04, 2026, 12:17:44 pm by Thaddy »
Any "programmer" that knows only one programming language is not a programmer

dbannon

  • Hero Member
  • *****
  • Posts: 3882
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Cannot install Lazarus on Ubuntu 24.04.4 LTS
« Reply #4 on: August 04, 2026, 01:31:10 pm »
hey bmullan, do you think you could share with us just what that missing dependency is ?

gdebi resolves every dependency listed in the package. But only does one package at a time, so essential to install fpc, fpc-src and then lazarus. Or as someone suggested, use apt. Generally I don't recommend "apt install *.deb" because you might sometime be surprised what other debs happen to be in your Downloads directory. List all three is safer.

Thaddy seems to think build-essential is not listed as a dependency, that surprises me, I'd expect it to be a dependency of fpc. But he is pretty often right so check. Thaddy, why ?

In gdebi you can open the control file and look to see what the dependencies are, try doing that with the fpc package.

Any way, the rule is, find out what the missing dependency is, install it and try again.

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

JD

  • Hero Member
  • *****
  • Posts: 1916
Re: Cannot install Lazarus on Ubuntu 24.04.4 LTS
« Reply #5 on: August 04, 2026, 07:25:34 pm »
Generally I don't recommend "apt install *.deb" because you might sometime be surprised what other debs happen to be in your Downloads directory. List all three is safer.

Davo

I don't recommend it either and that is why I said put all three in a directory first in my earlier post. If this is done, what you pointed out will never happen.

JD
Linux Mint - Lazarus 4.8/FPC 3.2.2,
Windows - Lazarus 4.8/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

 

TinyPortal © 2005-2018