Raspberry 5 Bookworm Lazarus unsolved dependency install error lazarus / 1-Linux ---------------------------------------------------------------------- MichaelSw · 2025-05-19 21:08 Hello, Ive tried various methods installing lazarus on Bookworm and failed. 1. sudo apt-get install lazarus - this one does not work 2. sudo apt install lazarus-project_4.0.0-0_arm64.deb - E: Unable to locate package lazarus-project_4.0.0-0_arm64.deb While installing above .deb files I also get: unmet dependencies libgtk2.0-dev. I tried a lot different methods without success. I have very clean installation of Raspberry OS 64-bit. I checked that Linkat installed Lazarus successfully: https://forum.lazarus.freepascal.org/index.php/topic,69123.0.html but this doesnt work. Is there anything I can do to install Lazarus on Raspberry? What do I wrong? ---------------------------------------------------------------------- dbannon · 2025-05-19 23:43 Michael, bug reports like this always need details of what did happen as well as what did not. So, instead of "did not work", tell us exactly what error message you got when you ran it. However, some points - Use apt instead of apt-get, its error messages are far better and it resolves dependencies. When you got the message about "E: unable to locate..." its because you did not explicitly specify the location of the downloaded package (I'm guessing you did download that package before running it ?).  If you are in the same directory as the package, try, eg, Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i sudo apt install ./lazarus-project_4.0.0-0_arm64.deb Note the './' that says "look in this directory". That should be enough to get you started. If it fails again, send us a screen scrape of what you do, perhaps also of the "ls -l" command. Using the packages downloaded from Source Forge is far better than installing the Lazarus from bookworm, bookworm is quite old now. Davo ---------------------------------------------------------------------- MichaelSw · 2025-05-20 06:38 Thank you for your reply. This is my bash output: Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i admin@ncu:~/Downloads $ sudo apt install ./lazarus- project_4.0.0-0_arm64.debReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneNote, selecting 'lazarus-project' instead of './lazarus- project_4.0.0-0_arm64.deb'Some packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation: The following packages have unmet dependencies: libgtk2.0-dev : Depends: libglib2.0-dev (>= 2.27.3) but it is not installable                 Depends: libgdk- pixbuf-2.0-dev (>= 2.21.0) but it is not installable or                        libgdk-pixbuf2.0-dev (>= 2.21.0) but it is not installable               Depends: libpango1.0-dev (>= 1.20) but it is not installable                 Depends: libatk1.0-dev (>= 1.29.2) but it is not going to be installed                 Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed                 Depends: libxinerama-dev (>= 1:1.0.1-4.1) but it is not installable               Depends: libxi-dev (>= 1:1.0.1-4) but it is not installable                 Depends: libxrandr-dev (>= 2:1.2.99) but it is not installable                 Depends: libxcursor-dev but it is not installable                 Depends: libxfixes-dev (>= 1:3.0.0-3) but it is not installable                 Depends: libxcomposite-dev (>= 1:0.2.0-3) but it is not installable               Depends: libxdamage-dev (>= 1:1.0.1-3) but it is not installable               Depends: libxml2-utils but it is not installable               Recommends: debhelper but it is not installableE: Unable to correct problems, you have held broken packages.admin@ncu:~/Downloads $ ls fpc-3-2-4rc1.tgz                    lazarus- project_4.0.0-0_arm64.deb Any troubleshoot ideas? ---------------------------------------------------------------------- Thaddy · 2025-05-20 06:58 Did you forget to install FPC first? ---------------------------------------------------------------------- MichaelSw · 2025-05-20 07:34 Yes I did from the source: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i https://sou rceforge.net/projects/lazarus/files/Lazarus%20Linux%20arm64%20DEB/Laza rus%204.0 ---------------------------------------------------------------------- af0815 · 2025-05-20 07:38 Is the installation of bookworm X11 or Wayland ? And is gtk2 installed ? It looks like a attemp to install Lazarus (gtk2 by default) on a not working gtk2 Environment. Gtk2 is outdated and maybe not available on RasPi 5. Is fpc working as expected ? ---------------------------------------------------------------------- MichaelSw · 2025-05-20 08:09 It's Wayland. FPC is available. It seems to be issue with gtk2. Is there any solution to fix this? Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i admin@ncu:~/Downloads $ sudo apt install libgtk2.0-0 libgtk2.0-dev libgtk2.0-commonReading package lists... DoneBuilding dependency tree... DoneReading state information... Donelibgtk2.0-0 is already the newest version (2.24.33-2+rpt1+deb12u1).libgtk2.0-0 set to manually installed.libgtk2.0-common is already the newest version (2.24.33-2+rpt1+deb12u1).libgtk2.0-common set to manually installed.Some packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation: The following packages have unmet dependencies: libgtk2.0-dev : Depends: libglib2.0-dev (>= 2.27.3) but it is not installable                 Depends: libgdk-pixbuf-2.0-dev (>= 2.21.0) but it is not installable or                          libgdk-pixbuf2.0-dev (>= 2.21.0) but it is not installable               Depends: libpango1.0-dev (>= 1.20) but it is not installable               Depends: libatk1.0-dev (>= 1.29.2) but it is not going to be installed                 Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed                 Depends: libxinerama-dev (>= 1:1.0.1-4.1) but it is not installable                 Depends: libxi-dev (>= 1:1.0.1-4) but it is not installable                 Depends: libxrandr-dev (>= 2:1.2.99) but it is not installable               Depends: libxcursor-dev but it is not installable               Depends: libxfixes-dev (>= 1:3.0.0-3) but it is not installable               Depends: libxcomposite-dev (>= 1:0.2.0-3) but it is not installable                 Depends: libxdamage-dev (>= 1:1.0.1-3) but it is not installable                 Depends: libxml2-utils but it is not installable                 Recommends: debhelper but it is not installableE: Unable to correct problems, you have held broken packages.admin@ncu:~/Downloads $ dpkg -l libgtk2.0-0Desired=Unknown/Install/Remove/Purge/Hold| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig- aWait/Trig-pend|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)||/ Name              Version                Architecture Description+++-=================-======================- ============-==================================================ii  libgtk2.0-0:arm64 2.24.33-2+rpt1+deb12u1 arm64        GTK graphical user interface library - old version ---------------------------------------------------------------------- Thaddy · 2025-05-20 08:31 Yes, you can -still - turn off Wayland in the rapberri's configuration. You can also specify Qt5/6 when building Lazarus, which do behave much better with Wayland. ---------------------------------------------------------------------- MichaelSw · 2025-05-20 10:47 I cant solve Lazarus install on Raspberry. Solve it installing Codetyphon. Thank you for your help. ---------------------------------------------------------------------- LemonParty · 2025-05-20 11:09 You could try to install Lazarus using https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases. ---------------------------------------------------------------------- Thaddy · 2025-05-20 13:34 Codetyphon is usually not the answer here. ---------------------------------------------------------------------- MichaelSw · 2025-05-20 15:17 thank you LemonParty, I will try that one. ---------------------------------------------------------------------- af0815 · 2025-05-20 17:09 If you use FPCUpdeluxe, take care, you install the QT Version instead of GTK. And have the prerequisites installed. ---------------------------------------------------------------------- dbannon · 2025-05-22 07:37 Quote from: MichaelSw on May 20, 2025, 10:09:59 amIt's Wayland. FPC is available. Edit : para below is too simplified. Firstly, GTK2 works with Wayland by, as much as it can, ignoring it. Secondly, the switch I mention is only necessary with Qtx. Should work under Wayland but not nicely, you need to provide a command line switch, "--disableaccurateform", however, as a package install, you start Lazarus with "startlazarus" and can provide that switch there. But that command then calls "lazarus" and probably does not provide the switch ??  Don't know, I never use the packages, always build from source. Quote                 Depends: libgdk-pixbuf-2.0-dev (>= 2.21.0) but it is not installable or                           libgdk-pixbuf2.0-dev (>= 2.21.0) but it is not installable Wierd, my bookworm has libgdk-pixbuf-2.0 2.42.10 so should be available in the Pi repo. Quote                 Depends: libpango1.0-dev (>= 1.20) but it is not installable I have libpango1.0-dev 1.50.12 similarly for all the other ones listed (I am sure).  Lets be clear here, you obviously have GTK2 available and installed, whats missing are the -dev libraries. It would seem very, very surprising is RasPi people stripped out only some libraries. GTK2 needs to go but when it does it will be all or nothing decision. I think you need to have a look at how apt list is configured, I don't think its pointing to a viable repository. You could post the result from "cat /etc/apt/sources.list" command. Yes, building from source a Qt5 version (either directly or using fpcupdeluxe) is an alternative but if your repo is not configured, it will not work either. if you do try for Qt5, you must download newer libqt5pas1 libraries, the ones in bookworm will not work. Edit : I am pretty sure the Raspi DE does not have an option to turn off Wayland, use it, ready or not (and its "not"). Sorry, I am traveling and don't have a RasPI available to test with. Anyway, in summary, both GTK and Qt5/6 have dependencies that must be satisfied before you proceed to build or just run a prebuilt binary. Solve the repo problem first. Davo ---------------------------------------------------------------------- Linkat · 2025-05-22 08:46 Hi, my best experience to install Lazarus to Raspberry Pi (wayland or x11) is described here (October 2024): https://forum.lazarus.freepascal.org/index.php/topic,69123.msg536256.h tml#msg536256 and here (May 2025): https://lazarusforum.de/viewtopic.php?t=16922 (in the second article) Meanwhile I've installed Lazarus 4.0 on the Raspi3, too, Good luck.