Recent

Author Topic: Cannot install in Kubuntu  (Read 1053 times)

stephanos

  • New Member
  • *
  • Posts: 38
Cannot install in Kubuntu
« on: February 19, 2023, 11:58:52 pm »
Dear All
I have switched over to Linux (Kubuntu 20.04.2 LTS-64) and started installing from file: lazarus-project_2.2.4-0_amd64.deb.
I double clicked the file and got the error message “Error: Cannot satisfy dependencies”.  The 3 tabs of the message pop up do not give me any other clues as to what packages are missing.  The last three entries of the Included Files tab are:
./usr/share/mime/packages/
./usr/share/mime/packages/lazarus.xml
./usr/share/pixmaps/lazarus.png

I am stuck.

Any help appreciated

dbannon

  • Hero Member
  • *****
  • Posts: 2796
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Cannot install in Kubuntu
« Reply #1 on: February 20, 2023, 12:09:55 am »
Doubling clicking a file invokes the default application to deal with that particular file. Its not always a good choice.

I suggest that you you try using the apt  command from the command line.  The file you have there is (I think) just lazarus and its src. It will depend on the appropriate FPC compiler and the one in the U2004 will not cut it.

So, download the fpc packages, compiler and source and then either install them one by one or all on one line like -

Code: Bash  [Select][+][-]
  1. $> apt install ./fpc-laz_3.2.2-210709_amd64.deb ./fpc-src_3.2.2-210709_amd64.deb ./lazarus-project_2.2.4-0_amd64.deb  <enter>

Note how I have a './' in front of each file name, without that, apt will search for the package in its own repos.

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

stephanos

  • New Member
  • *
  • Posts: 38
Re: Cannot install in Kubuntu
« Reply #2 on: February 20, 2023, 11:43:48 am »
Dear dbannon

Thanks
There are 3 files in total to install:
fpc-laz_3.2.2-210709_amd64.deb,
fpc-src_3.2.2-210709_amd64.deb,
lazarus-project_2.2.4-0_amd64.deb

Does it matter which I do first?
Can you explain, in layman's terms, what each is.  Linux is a more complex environment to Windows but I am happy to learn

I have done this:
stephanos@stephanos-MS-7B98:~$ sudo apt install ./lazarus-project_2.2.4-0_amd64.deb
[sudo] password for stephanos:  
Reading package lists... Done
E: Unsupported file ./lazarus-project_2.2.4-0_amd64.deb given on commandline
stephanos@stephanos-MS-7B98:~$

wait to hear

cdbc

  • Hero Member
  • *****
  • Posts: 1083
    • http://www.cdbc.dk
Re: Cannot install in Kubuntu
« Reply #3 on: February 20, 2023, 12:23:28 pm »
Hi
Install in this order iirc:
1) fpc-laz_3.2.2-210709_amd64.deb
2) fpc-src_3.2.2-210709_amd64.deb
3) lazarus-project_2.2.4-0_amd64.deb
Lazarus depends on fpc, so it has to be there first.
Hth - Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

stephanos

  • New Member
  • *
  • Posts: 38
Re: Cannot install in Kubuntu
« Reply #4 on: February 20, 2023, 09:30:13 pm »
Thanks all.

Installed in that order and working

dbannon

  • Hero Member
  • *****
  • Posts: 2796
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Cannot install in Kubuntu
« Reply #5 on: February 20, 2023, 11:52:12 pm »
You can also install all three at once because apt looks ahead on the command line and considers all packages so listed. I gave an example of that in the previous message. If you had used that, it would have worked.

Early versions of apt were not so clever, it did not resolve dependencies and it was necessary to install the dependent package last. And sometimes that was quite awkward.

Enjoy your journey into Linux stephanos, its a good move !

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

 

TinyPortal © 2005-2018