Lazarus not installing on Ubuntu lazarus / 1-Linux ---------------------------------------------------------------------- gga96 · 2016-01-30 05:13 I am moving from Window to Ubuntu and have been trying to install Lazarus. The default installation on Lazarus is 1.0.10 but I have been using 1.4.4 and FPC 2.6.4 on Windows. For the last 3 days I have been following online advise and failed on all attempts to install Lazarus 1.4.4 + 2.6.4 on Ubuntu 14.04 64 bit.   I downloaded the following files from your web site:     Totals: 4 Items                 140.1 MB        1,249        lazarus_1.4.4-0_amd64.deb                2015-10-04        83.6 MB     586586 weekly downloads     i     fpc-src_2.6.4-150228_amd64.deb        2015-10-04        17.9 MB   294294 weekly downloads     i     fpc_2.6.4-150228_amd64.deb        2015-10-04        38.6 MB     299299 weekly downloads     i     README.txt                             2015-10-04        704 Bytes  7070 weekly downloads         i The results of trying to install follow:     glen@backend1:~$ sudo dpkg -i /home/glen/Downloads/fpc- src_2.6.4-150228_amd64.deb     [sudo] password for glen:     (Reading database ... 290436 files and directories currently installed.)     Preparing to unpack .../fpc-src_2.6.4-150228_amd64.deb ...     Unpacking fpc-src (2.6.4) over (2.6.4) ...     Setting up fpc-src (2.6.4) ...     glen@backend1:~$ sudo dpkg -i /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb     dpkg: warning: downgrading fpc from 2.6.4+cqr-1~trusty to 2.6.4     (Reading database ... 290436 files and directories currently installed.)     Preparing to unpack .../fpc_2.6.4-150228_amd64.deb ...     Unpacking fpc (2.6.4) over (2.6.4+cqr-1~trusty) ...     dpkg: error processing archive /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb (--install):      trying to overwrite '/usr/lib/fpc/2.6.4/units/x86_64-linux/cairo/libpcairo.a', which is also in package     fp-units-gfx-2.6.4 2.6.4+cqr-1~trusty     dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)     Errors were encountered while processing:      /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb Being new to Ubuntu I do not know how to correct the error! I have just read "Installing .deb packages on Ubuntu" but I do not think it applies. Could you please help to get Lazarus up and running? Regards Glen ---------------------------------------------------------------------- Leledumbo · 2016-01-30 20:06 Uninstall everything you install from ubuntu repository. They have splitted runtime packages while the one from here is a single all-in- one package. ---------------------------------------------------------------------- JD · 2016-01-30 22:15 Like Leledumbo said, uninstall everything you installed from the Ubuntu repositories. Then a) copy all the deb files you downloaded from the Lazarus website into a temporary directory b) open the directory in a terminal & then c) type & run the command sudo dpkg -i *.deb at the terminal prompt It will install the packages you downloaded. That's all you need to do. JD ---------------------------------------------------------------------- gga96 · 2016-01-30 22:59 Thank you both. I have used Ubuntu Software Center to remove FPC and Lazarus. I don't know what else I can do to purge the system of previous attempts I tied again to install this time using sudo dpkg -i *.deb the terminal output follows: Quoteglen@backend1:~/Downloads$ sudo dpkg -i *.deb (Reading database ... 289633 files and directories currently installed.) Preparing to unpack fpc_2.6.4-150228_amd64.deb ... Unpacking fpc (2.6.4) ... dpkg: error processing archive fpc_2.6.4-150228_amd64.deb (--install):  trying to overwrite '/usr/lib/fpc/2.6.4/units/x86_64-linux/cairo/libpcairo.a', which is also in package fp-units-gfx-2.6.4 2.6.4+cqr-1~trusty dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Preparing to unpack fpc-src_2.6.4-150228_amd64.deb ... Unpacking fpc-src (2.6.4) over (2.6.4) ... Selecting previously unselected package lazarus. Preparing to unpack lazarus_1.4.4-0_amd64.deb ... Unpacking lazarus (1.4.4) ... Setting up fpc-src (2.6.4) ... dpkg: dependency problems prevent configuration of lazarus:  lazarus depends on fpc (>= 2.6.4) | fp-compiler (>= 2.6.4); however:   Package fpc is not installed.   Package fp-compiler is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-ide (>= 2.6.4); however:   Package fpc is not installed.   Package fp-ide is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-base (>= 2.6.4); however:   Package fpc is not installed.   Package fp-units-base is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-db (>= 2.6.4); however:   Package fpc is not installed.   Package fp-units-db is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-fv (>= 2.6.4); however:   Package fpc is not installed.   Package fp-units-fv is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-gfx (>= 2.6.4); however:   Package fpc is not installed.   Package fp-units-gfx is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-gnome1 (>= 2.6.4); however:   Package fpc is not installed.   Package fp-un dpkg: error processing package lazarus (--install):  dependency problems - leaving unconfigured Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for mime-support (3.54ubuntu1.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for shared-mime-info (1.2-0ubuntu3) ... Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' Unknown media type in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown media type in type 'uri/rtspt' Unknown media type in type 'uri/rtspu' Errors were encountered while processing:  fpc_2.6.4-150228_amd64.deb  lazarus glen@backend1:~/Downloads$ What can I do now? Glen ---------------------------------------------------------------------- Leledumbo · 2016-01-31 06:08 Don't uninstall from Ubuntu Software Center as it may only uninstall top level package (or with some other dependant packages but surely it's not clean enough since at least fp-units-gfx is still installed). Use dpkg -l from terminal to see which fp-units-* are still installed and uninstall them using dpkg -P. ---------------------------------------------------------------------- gga96 · 2016-02-01 00:50 Thanks Leledumbo I have used your advice and am now at: Quoteglen@backend1:~$ dpkg -l fp-units-* Desired=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 +++-==============-============-============- ================================= un  fp-units-rtl                 (no description available) pi  fp-units-rtl-2 2.6.4+cqr-1~ amd64        Free Pascal - runtime librariesQuoteI then tried to purge: Quoteglen@backend1:~$ sudo dpkg -P fp-units-rtl-2.6.4 [sudo] password for glen: dpkg: dependency problems prevent removal of fp-units-rtl-2.6.4:  fp-compiler-2.6.4 depends on fp-units-rtl-2.6.4 (= 2.6.4+cqr-1~trusty). dpkg: error processing package fp-units-rtl-2.6.4 (--purge):  dependency problems - not removing Errors were encountered while processing:  fp-units-rtl-2.6.4QuoteI never seem to clear the decks to achieve a clean install. I am a novice with Linux not a systems engineer so I cannot debug the errors. I appear to be going round in circles because the install always fails at the first package: Quoteglen@backend1:~$ sudo dpkg -i /home/glen/Downloads/*.deb (Reading database ... 284971 files and directories currently installed.) Preparing to unpack .../fpc_2.6.4-150228_amd64.deb ... Unpacking fpc (2.6.4) ... dpkg: error processing archive /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb (--install):  trying to overwrite '/usr/lib/fpc/2.6.4/units/x86_64-linux/rtl/cmem.o', which is also in package fp-units-rtl-2.6.4 2.6.4+cqr-1~trusty dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)QuoteThe other two packages follow: QuotePreparing to unpack .../fpc-src_2.6.4-150228_amd64.deb ... Unpacking fpc-src (2.6.4) over (2.6.4) ... Selecting previously unselected package lazarus. Preparing to unpack .../lazarus_1.4.4-0_amd64.deb ... Unpacking lazarus (1.4.4) ... Setting up fpc-src (2.6.4) ... dpkg: dependency problems prevent configuration of lazarus:  lazarus depends on fpc (>= 2.6.4) | fp-compiler (>= 2.6.4); however:   Package fpc is not installed.   Package fp-compiler is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-ide (>= 2.6.4); however:   Package fpc is not installed.   Package fp-ide is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-base (>= 2.6.4); however:   Package fpc is not installed.   Package fp-units-base is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-db (>= 2.6.4); however:   Package fpc is not installed.   Package fp-units-db is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-fcl (>= 2.6.4); however:   Package fpc is not installed.   Package fp-units-fcl is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-fv (>= 2.6.4); however:   Package fpc is not installed.   Package fp-units-fv is not installed.  lazarus depends on fpc (>= 2.6.4) | fp-units-gfx (>= 2.6.4); however:   Package fpc is not installed.   Package fp-units dpkg: error processing package lazarus (--install):  dependency problems - leaving unconfigured Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for mime-support (3.54ubuntu1.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for shared-mime-info (1.2-0ubuntu3) ... Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' Unknown media type in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown media type in type 'uri/rtspt' Unknown media type in type 'uri/rtspu' Errors were encountered while processing:  /home/glen/Downloads/fpc_2.6.4-150228_amd64.deb  lazarus glen@backend1:~$ Hope this will help you diagnose my problems. Glen ---------------------------------------------------------------------- Leledumbo · 2016-02-01 06:15 Quote from: gga96 on February 01, 2016, 01:50:04 amdpkg: dependency problems prevent removal of fp-units-rtl-2.6.4:  fp-compiler-2.6.4 depends on fp-units-rtl-2.6.4 (= 2.6.4+cqr-1~trusty). You still have fp-compiler installed (and probably some other fp, too). I don't use Ubuntu so please figure these out yourself (it's only fpc and fpc-src on Arch based systems). Don't attempt to do dpkg -i if the purging fails, make that succeed first. ---------------------------------------------------------------------- gga96 · 2016-02-02 02:45 Thanks for your help Leledumbo sorry you cannot work with Ubuntu. Does a Ubuntu person know how to remove the fp compiler that will not purge (see previous posts)? Quoteglen@backend1:~$ dpkg -l fp-units-* Desired=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 +++-==============-============-============- ================================= un  fp-units-rtl                 (no description available) pi  fp-units-rtl-2 2.6.4+cqr-1~ amd64        Free Pascal - runtime libraries I cannot install deb files until fp-units-rtl-2 is purged. Glen ---------------------------------------------------------------------- gga96 · 2016-02-02 06:56 Some progress has been made, I managed to purge the system and have attempted the install. The install went like this : Quoteglen@backend1:~$ sudo dpkg -i /home/glen/Downloads/*.deb (Reading database ... 297157 files and directories currently installed.) Preparing to unpack .../fpc_2.6.4-150228_amd64.deb ... Unpacking fpc (2.6.4) ... Preparing to unpack .../fpc-src_2.6.4-150228_amd64.deb ... Unpacking fpc-src (2.6.4) over (2.6.4) ... Preparing to unpack .../lazarus_1.4.4-0_amd64.deb ... Unpacking lazarus (1.4.4) over (1.4.4) ... Setting up fpc (2.6.4) ... Running on linux Write permission in /etc. Writing sample configuration file to /etc/fpc.cfg Saved old "fpc.cfg" to "fpc.bak" Writing sample configuration file to /usr/lib/fpc/2.6.4/ide/text/fp.cfg Saved old "fp.cfg" to "fp.bak" Writing sample configuration file to /usr/lib/fpc/2.6.4/ide/text/fp.ini Saved old "fp.ini" to "fp.bak" Writing sample configuration file to /etc/fppkg.cfg Saved old "fppkg.cfg" to "fppkg.bak" Writing sample configuration file to /etc/fppkg/default Saved old "default" to "default.bak" Setting up fpc-src (2.6.4) ... Setting up lazarus (1.4.4) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for mime-support (3.54ubuntu1.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for shared-mime-info (1.2-0ubuntu3) ... Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' Unknown media type in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown media type in type 'uri/rtspt' Unknown media type in type 'uri/rtspu'I am not aware of any serious errors this time. I then run Lazarus by using the menu Applications>Development>Lazarus the Configure Lazarus IDE dialog appeared. The Lazarus tab warned it could not find directory /use/lib/lazarus/1.4.4 I looked around and found /usr/share/lazarus/1.4.4, when I entered that into the dialog it responded "Warning: directory ideintf not found". I stopped at this point to avoid corruption. What do I do to fix the problem? Glen ---------------------------------------------------------------------- bee · 2016-02-02 07:45 I'm also using Lazarus 1.6 RC2 with FPC 3.0 on Ubuntu 14.04 64 bit. The installation is pretty simple. Here's my steps: 1. Download all the .deb files for your platform from here: http://sou rceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Laza rus%201.6RC2/ 2. Once you got all the .deb files, install them in this order: 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 dpkg -i fpc-src_…_amd64.deb$ sudo dpkg -i fpc_…_amd64.deb$ sudo dpkg -i lazarus_…_amd64.debreplace the … with the correct version string. 3. Run this command to satisfy the dependencies: 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- get -f install After the installation finishes, open the unity and search for Lazarus. Click to run it. Good luck! ---------------------------------------------------------------------- ttomas · 2016-02-02 08:53 Blaise Pascal Magazine #48 Instaling Lazarus on Linux Mint Mint is Ubuntu fork. good luck ---------------------------------------------------------------------- gga96 · 2016-02-02 10:45 Thanks to ttomas and bee. I used synaptic to remove Lazarus 1.4.4 Downloaded Lazarus 1.6rc2 and installed as bee instructed. The install looks OK to me,  here is the output: Quoteglen@backend1:~/Downloads$ sudo dpkg -i fpc- src_3.0.0-151205_amd64.deb [sudo] password for glen: Sorry, try again. [sudo] password for glen: Selecting previously unselected package fpc-src. (Reading database ... 270173 files and directories currently installed.) Preparing to unpack fpc-src_3.0.0-151205_amd64.deb ... Unpacking fpc-src (3.0.0) ... Setting up fpc-src (3.0.0) ... glen@backend1:~/Downloads$ sudo dpkg -i fpc_3.0.0-151205_amd64.deb Selecting previously unselected package fpc. (Reading database ... 287041 files and directories currently installed.) Preparing to unpack fpc_3.0.0-151205_amd64.deb ... Unpacking fpc (3.0.0) ... Setting up fpc (3.0.0) ... Running on linux Write permission in /etc. Writing sample configuration file to /etc/fpc.cfg Saved old "fpc.cfg" to "fpc.bak" Writing sample configuration file to /usr/lib/fpc/3.0.0/ide/text/fp.cfg Writing sample configuration file to /usr/lib/fpc/3.0.0/ide/text/fp.ini Writing sample configuration file to /etc/fppkg.cfg Saved old "fppkg.cfg" to "fppkg.bak" Writing sample configuration file to /etc/fppkg/default Saved old "default" to "default.bak" glen@backend1:~/Downloads$ sudo dpkg -i lazarus_1.6RC2-0_amd64.deb Selecting previously unselected package lazarus. (Reading database ... 289783 files and directories currently installed.) Preparing to unpack lazarus_1.6RC2-0_amd64.deb ... Unpacking lazarus (1.6RC2) ... Setting up lazarus (1.6RC2) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for mime-support (3.54ubuntu1.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for shared-mime-info (1.2-0ubuntu3) ... Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' Unknown media type in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown media type in type 'uri/rtspt' Unknown media type in type 'uri/rtspu' glen@backend1:~/Downloads$ sudo apt-get -f install Reading package lists... Done Building dependency tree      Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. glen@backend1:~/Downloads$I did not understand "open the unity and search for Lazarus. Click to run it" I used the Applications menu on my 14.04 system. When I started Lazarus the same things happened. It expects to find data in /usr/lib/lazarus and when I enter /usr/share/lazarus/1.6RC2 it gives the warning "directory ideintf not found" The names are different but the errors are the same! Cheers Glen ---------------------------------------------------------------------- Leledumbo · 2016-02-02 11:01 Search where lazarus is actually installed (see from `dpkg-query -L lazarus` output), that's where it should point to. The IDE has heuristic but this can of course fail because every distro may put it in different directories depending on the package management policy. ---------------------------------------------------------------------- bee · 2016-02-02 11:05 Quote from: gga96 on February 02, 2016, 11:45:26 amI did not understand "open the unity and search for Lazarus. Click to run it" I used the Applications menu on my 14.04 system.I thought Unity is the default Ubuntu desktop shell today. How could you don't know about it? Using the old Applications menu isn't even available by default, you have to install it from a third party repo. Quote from: gga96 on February 02, 2016, 11:45:26 amWhen I started Lazarus the same things happened. It expects to find data in /usr/lib/lazarus and when I enter /usr/share/lazarus/1.6RC2 it gives the warning "directory ideintf not found"I think your system has been cluttered by many junk files and configs from previous failed installations. I installed FPC/Lazarus on a fresh Ubuntu 14.04 system, and my steps worked so smooth without any errors. ---------------------------------------------------------------------- gga96 · 2016-02-02 12:15 Thanks Leledumbo the output is 904 kB, the common root director is  /usr/share/lazarus/1.6RC2/  the 'ideintf' only appears as a subdirectory 'components/ideintf/'. Any other sugession? Regards Glen P.S. bee I installed MythTV in 2013 it installed clean out of the box and the system has runs non stop since. It is only now after 20+ years of Delphi that I am looking at Linux as an alternative to Windows. ---------------------------------------------------------------------- Leledumbo · 2016-02-02 12:38 Quote from: gga96 on February 02, 2016, 01:15:40 pmThanks Leledumbo the output is 904 kB, the common root director is  /usr/share/lazarus/1.6RC2/  the 'ideintf' only appears as a subdirectory 'components/ideintf/'. Yes, it should be there. Can you just ignore the message? Probably there's a bug in the checking code. ---------------------------------------------------------------------- gga96 · 2016-02-03 02:45 Thanks very much Leledumbo for your persistent help. I found a hidden directory that had an "ide config file" which referred to the Ubuntu Repository Lazarus 1.0.10 version, I deleted the directory and uninstalled the Lazarus application, then the reinstall recreated the hidden directory and a clean installed Lazarus resulted.  This is NOT the stuff a new USER should be exposed to. My experience trying to get Lazarus up may help the maintainers to improve the software. Thanks again Leledumbo. Regards Glen