install fail Lazarus 2.2.2, ubuntu 24.x, 20.x lazarus / 1-Linux ---------------------------------------------------------------------- RonQ · 2022-08-19 14:53 have Lazarus 2.0.2 working on linux ubuntu 22.04 LTS, or 20.x installing/upgrading to Lazarus 2.2.2 fails in the GUI environment. Tried in the Terminal, fails with error: <$ sudo apt install lazarus-project_2.2.2-0_amd64 Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package lazarus-project_2.2.2-0_amd64 > ... am lost.... ---------------------------------------------------------------------- MarkMLl · 2022-08-19 16:31 Make sure that your distro provided that package. If in doubt discuss with them since they're the ones who build it. Having said which, there's a lot of advantages to only using your distro to provide prerequisite libraries, and getting bit FPC and Lazarus from this project... either via the downloads links shown <----- OVER THERE SOMEWHERE :-) or from Gitlab. MarkMLl ---------------------------------------------------------------------- tetrastes · 2022-08-19 20:07 Quote from: RonQ on August 19, 2022, 04:53:26 pmhave Lazarus 2.0.2 working on linux ubuntu 22.04 LTS, or 20.x installing/upgrading to Lazarus 2.2.2 fails in the GUI environment. Tried in the Terminal, fails with error: <$ sudo apt install lazarus-project_2.2.2-0_amd64 Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package lazarus-project_2.2.2-0_amd64 > ... am lost.... https://wiki.lazarus.freepascal.org/Installing_Lazarus_on_Linux#FPC_an d_Lazarus_from_SourceForge Quote from: MarkMLl on August 19, 2022, 06:31:05 pmMake sure that your distro provided that package. If in doubt discuss with them since they're the ones who build it. Having said which, there's a lot of advantages to only using your distro to provide prerequisite libraries, and getting bit FPC and Lazarus from this project... either via the downloads links shown <----- OVER THERE SOMEWHERE :-) That package (lazarus-project_2.2.2-0_amd64.deb) is just from THERE ---------------------------------------------------------------------- MarkMLl · 2022-08-19 20:33 Quote from: tetrastes on August 19, 2022, 10:07:47 pmThat package (lazarus-project_2.2.2-0_amd64.deb) is just from THERE  Only if he's updated his sources.list (etc.) file which controls where apt is looking. I don't know whether Ubuntu uses that package name, but Debian certainly doesn't. So in the absense of more detailed info from OP I decided a stock answer was in order. MarkMLl ---------------------------------------------------------------------- tetrastes · 2022-08-19 20:46 Quote from: MarkMLl on August 19, 2022, 10:33:57 pmQuote from: tetrastes on August 19, 2022, 10:07:47 pmThat package (lazarus- project_2.2.2-0_amd64.deb) is just from THERE  Only if he's updated his sources.list (etc.) file which controls where apt is looking. Or if he is trying to install manually downloaded package. QuoteI don't know whether Ubuntu uses that package name, but Debian certainly doesn't. Ubuntu doesn't also. ---------------------------------------------------------------------- RonQ · 2022-08-20 17:15 ... made a new install of Ubuntu 22.04.1 LTS on erased hard drive. ... used 'software' app to locate and install Lazarus 2.2.0 ... ... install ended OK. ... found Lazarus in the app panel/screen, it showed location of the Lazarus, but NO icon ... clicked on it anyway ... ... got error: file:///home/ronq/Pictures/Screenshots/Screenshot%20from%202022-08- 20%2011-26-18.png ---------------------------------------------------------------------- tetrastes · 2022-08-20 19:39 The installation of Lazarus in Ubuntu 22.04 Software is broken (it installs only lazarus-ide package, not the whole lazarus). Use Synaptic to install lazarus package or 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 ---------------------------------------------------------------------- RonQ · 2022-08-21 02:08 ... installs (but missing support modules). ... on minimum test project - on first 'build' ... complaint of : 'missing Compiler', it suggests Dwarf2 ; accepted. ....  we find "missing Classes" . In Lazarus Units, we need (but fail to find), in the Uses Statement: Forms, and also Classes.. What gives? ---------------------------------------------------------------------- RonQ · 2022-08-21 02:17 edit: sorry I miss-spoke: classes make it: GRAPHICS .... Forms, Graphics   ... not found.... ---------------------------------------------------------------------- Handoko · 2022-08-21 03:12 Quote from: RonQ on August 20, 2022, 07:15:21 pm... used 'software' app to locate and install Lazarus 2.2.0 ... Don't use that. The easiest Lazarus installation on Ubuntu is manually download and install the 3 deb files. ---------------------------------------------------------------------- RonQ · 2022-12-14 16:50 Tnx all. Manual install seemed successful, however of 1st minimal project with unresolvable errors as per attached screen shot. ---------------------------------------------------------------------- af0815 · 2022-12-14 16:56 Are you building for i386-linux ? Is your target correct set ? ---------------------------------------------------------------------- RonQ · 2022-12-14 17:23 here is screen shot of the install files. How to set Target? ---------------------------------------------------------------------- Handoko · 2022-12-14 18:55 Try to rebuilt your Lazarus first: Lazarus main menu > Tools > Build Lazarus with Profile: Normal IDE Does it succeed? ---------------------------------------------------------------------- RonQ · 2022-12-14 19:12 attached sshot shows rebuild fails with: ---------------------------------------------------------------------- Martin_fr · 2022-12-14 19:25 Quote from: RonQ on August 20, 2022, 07:15:21 pm... made a new install of Ubuntu 22.04.1 LTS on erased hard drive. Your images show that you are building for 32bit Linux (i386-linux in the path). But according to google Ubuntu dropped 32bit at version 18.04. ---------------------------------------------------------------------- Handoko · 2022-12-14 19:30 Make sure your system has the required packages installed, as mentioned in here: https://wiki.lazarus.freepascal.org/Installing_Lazarus_on_Linux#Requir ed_Linux_packages And it should have libc6-dev installed. Also, you may need to enable/install i386 architecture: https://askubuntu.com/questions/879261/how-to-install-all-i386-libs- to-match-installed-64-libs-for-12-04 ---------------------------------------------------------------------- RonQ · 2022-12-14 20:21 Pls forgive me as newbie-linux user. It appears necessary to remove the two FPC packages and the Lazarus environment; with Terminal commands: sudo ? ... which are? seems there are no snap script(s) applicaable... ---------------------------------------------------------------------- MarkMLl · 2022-12-14 21:08 Quote from: RonQ on December 14, 2022, 09:21:48 pmPls forgive me as newbie-linux user. It appears necessary to remove the two FPC packages and the Lazarus environment; with Terminal commands: sudo ? ... which are? seems there are no snap script(s) applicaable... Probably apt purge something. However supporting an individual distro is outside the scope of this forum. MarkMLl ---------------------------------------------------------------------- dbannon · 2022-12-14 22:24 Ron, you really have us guessing. And when people guess, they often make mistakes. Please tell us - What operating System you are using (Ubuntu 220.4, Debian Bullseye, Scientific Linux...) ? What bitness, 32bit, 64 bit ? Are you installing from the Distro Package Repository, from the Official FPC/Lazarus on SourceForge, from source or from packages provided by some forth party ? Are you trying to build a cross compiler, that is to make 32bit apps on a 64bit machine/OS ? Have you made manual edits to your OS package manager settings ie /etc/apt/sources.lst ? Are you using a machine that has been updated (and update, and updated) ? Have you looked at the wiki, https://wiki.freepascal.org/Installing_Lazarus_on_Linux ? Some of these questions are prompted by the apparently strange hints you have accidentally given us about what you are doing. Honestly, unless you give us the facts any answer will possibly do more harm than good. Davo ---------------------------------------------------------------------- RonQ · 2022-12-15 01:37 Tnx all. .. did a manual delete of all FPC-*.*  and lazarus*.* files and directories with sudo rm  to empty associated folders of files; so that I could then use: sudo rmdir ... then manually installed fpc-src, fpc-laz, and Lazarus-2.2.0 .. was left with complaint about "i386", which was set by unknown default in . .. built and ran a minimal test project successfully