Lazarus

Installation => Linux => Topic started by: corradoventu on May 29, 2021, 05:54:51 pm

Title: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: corradoventu on May 29, 2021, 05:54:51 pm
Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable fpc-laz(=3.2.0)
1st i installed Lazarus from Ubuntu repository install successful but does not work. removed and downloaded from https://sourceforge.net/projects/lazarus/
try to install with ubuntu software installed: error for  missing dependency.
retry install with gdebi: still Dependency not satisfiable.
see attachment.
thanks for suggestions
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: lucamar on May 29, 2021, 06:06:11 pm
Install fpc (and fpc-src) v3.2.0 before trying to install Lazarus. Lazarus 2.0.12 needs fpc 3.2.0 but AFAICT it's not yet in the standard package repos.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: corradoventu on May 29, 2021, 07:37:54 pm
Ok, will use Lazarus on my Ubuntu 20.04 partition and wait for 21.10
thanks
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: lucamar on May 29, 2021, 08:49:57 pm
Why? You just have to download the three .deb from sourceforge and install them in order: first fpc-laz, then fpc-src and last lazarus-project.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: VTwin on May 29, 2021, 10:18:21 pm
Installation of the three deb packages, as lucamar says, is very easy. There is no point in waiting until it shows up in the Ubuntu repository, which is unlikely to ever be up to date.

You may find some complex instructions for installing on Linux, but it is not really hard. You may need to install libgtk2.0-dev as well though.

Something like:

Code: [Select]
sudo apt-get install libgtk2.0-dev
sudo dpkg -i *.deb

should work. This assumes the 3 deb files are in the current directory using the terminal. You can use three calls to dpkg in order, but this call should do the same.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mas steindorff on May 29, 2021, 10:49:54 pm
lazy mans fix:

after using the GUI software to install Lazarus, all I do is ...

sudo apt upgrade lazarus

and all works. 


Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: MarkMLl on May 29, 2021, 10:52:38 pm
You may find some very complex instructions for installing on Linux, but it is not really hard. You may need to install libgtk2.0-dev as well though.

Yes, I agree with that FWIW. It's also useful to install lib<some-database>-dev and libusb-dev to sort out symlinks that the OS doesn't do by default, although that might obscure problems that end users (who probably don't have the -dev packages) might experience.

There was recent discussion regarding the libqt5pas packages, where an FPC developer had unwisely started using some facilities which were unlikely to trickle into the released distreaux for some extended while.

My own SOP is to install the distro's prerequisite packages, then to compile FPC and Lazarus from scratch. It's worked for the last 15 years or so...

MarkMLl
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: lucamar on May 30, 2021, 12:49:17 am
Unless things have gone very wrong with the Ubuntu repos (I'm still on 18.04 max. so I wouldn't know) either clicking on a .deb to  make  "software" install it or using Gdebi should work out of the box without having to go down to the command line: it should pull down any other needed dependancy like GTK2, etc.

I must confess that I always use the route of going through a local private repo ... but the few times that I've used Gdebi (for other things like FBReader, 4kDownloader, etc) it has worked w/out a flaw, pulling down any requirement without question.

Nevertheless, let me point out that using apt (or apt-get) in the command line should do exactly the same, resolving dependancies and installing the package(s).

The only problem here is that there is a dependency that can not be resolved because the system knows nothing about fpc[-laz|-src] 3.2.0; downloading and installing those first should solve it nicely.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: corradoventu on May 30, 2021, 09:39:21 am
I've found how download fpc-src https://sourceforge.net/projects/freepascal/ but not fpc-laz, may you help? thanks.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on May 30, 2021, 09:53:56 am
Please have a look at https://wiki.freepascal.org/Installing_Lazarus_on_Linux

It has a link you to follow that takes you to the top of the Lazarus downloads, click on the " Lazarus Linux amd64 DEB" link, and then on "Lazarus 2.0.12" link. The files you need are there !

Do remember to install first FPC, then FPC_Src and then Lazarus. 

And, perhaps, if you don't mind, I'll suggest you read the wiki page I first mentioned.  You can get there by typing "Installing Lazarus" into the wiki search field.

Davo
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: Zvoni on May 31, 2021, 09:20:11 am
And if you look further through this Sub-Forum, you'll find one common advice:

Don't use FPC/Lazarus from Distro-Repo's!
Especially the Ubuntu one......

Download the deb's from here (sourceforge). When i was still on Ubuntu/debian i used gdebi to install deb's, since gdebi resolves dependencies

nowadays i use fpcupdeluxe.....
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on May 31, 2021, 09:38:55 am
Don't use FPC/Lazarus from Distro-Repo's!
Especially the Ubuntu one......
The OP is using U21.10, you cannot get more current that that !  (Its not due out for several months ...)
But seriously, distro's release cycles mean you almost never see a current version in the distro's repo.

..... i used gdebi to install deb's, since gdebi resolves dependencies

apt will resolve dependencies, I don't think apt-get does and am sure dpkg does not.  But gdebi is a great little tool for lots of other reasons too.

My advice for all but the very beginner (linux) user is to install FPC from sourceforge (or from a tarball) and download and compile Lazarus. You end up with a heap more flexible system that way. Its what fpcupdeluxe does but by doing it yourself (all three commands ! ) you understand where everything is and how its connected together.

Installing lazarus from debs or rpms (either distro repo or sourceforge) is silly really. Its gets all installed under /usr and the very first time you rebuild the IDE (ie for a package install) that /usr install is ignored, you use the one hidden away in your home directory under the laz config directory.

Davo
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: Zvoni on May 31, 2021, 09:53:49 am
Dave,

dpkg definitely doesn't resolve dependencies (i remember i had to dpkg some stuff, and it drove me mad to brachiate through the dependencies)

apt-get does resolve dependencies (correct me if i'm wrong, haven't used it in years)

IIRC, yes, you can use apt/apt-get to install from local file (instead from repo), but for me it just wasn't worth the hassle at that time. GDebi and you're set

FPC/Laz from Repo vs. sourceforge-deb's: I definitely remember the Version from repo using different install-paths and missing packages

@Ubuntu21.10: Why in blazes is he using a Beta (if not alpha)-Version of an OS? 21.10 isn't due another 5 months
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 03, 2021, 06:28:18 pm
Installation of the three deb packages, as lucamar says, is very easy. There is no point in waiting until it shows up in the Ubuntu repository, which is unlikely to ever be up to date.

You may find some complex instructions for installing on Linux, but it is not really hard. You may need to install libgtk2.0-dev as well though.

Something like:

Code: [Select]
sudo apt-get install libgtk2.0-dev
sudo dpkg -i *.deb

should work. This assumes the 3 deb files are in the current directory using the terminal. You can use three calls to dpkg in order, but this call should do the same.

I'm using Linux Mint 20 and trying to install and got to lazarus which choked because libgtk2.0-dev wasn't installed but when I try and install that, it also has many dependencies that aren't met so it won't install.  Then when I do "sudo apt-get -f install" all it does is remove lazarus-project.  I'm stuck and don't know how to move this forward.  The fpc-laz and fpc-src was installed first and installed successfully.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 04, 2021, 12:02:39 am
Sorry.  I'm giving up.  I got the dependency down to libc6 that is the major issue and aptitude wants to downgrade some very important packages to fix the problem.  I know that will cause problems with other packages.  If anyone has any ideas, I may pick up the effort to install Lazarus again, but I won't downgrade anything to get it.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on June 04, 2021, 01:45:33 am
So, you are installing from debs downloaded from SourceForge ?  Which one of those three has a dependency on a maximum package ?  I would be quite surprised but I guess its possible. I would guess a 'force' would work ....

Again, are you really trying to install on U21.10 ?  You most certainly will have dependency problems doing so, it will be a long way from ready right now.

If I was you, I would read that Installing Lazarus on Linux page I mentioned earlier, especially the part that talks about installing from source. Installing Lazarus (and you have not told us which package has this strange dependency) from source lets (indeed, requires) you to resolve dependencies yourself.

Davo
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: Gustavo 'Gus' Carreno on June 04, 2021, 05:16:13 am
Hey corradoventu,

I've found how download fpc-src https://sourceforge.net/projects/freepascal/ but not fpc-laz, may you help? thanks.

You'll find all 3 deb packages that are mentioned above in the following link: https://sourceforge.net/projects/lazarus/files/Lazarus Linux amd64 DEB/Lazarus 2.0.12/ (https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.12/)

The problem is that you were looking for Lazarus in the wrong place.
The Lazarus project on SourceForge has all the necessary packages to install both the compiler and the IDE.

But maybe you should have a look into fpcupdeluxe (https://github.com/LongDirtyAnimAlf/fpcupdeluxe/), since it's way more practical and customizable.

Cheers,
Gus
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on June 04, 2021, 01:26:51 pm
This is getting quite confusing.

User corradoventu started this thread, he/she is using U21.10 and is trying to download Lazarus from the FreePascal download site. The solution to that problem is to get all three necessary files from under  https://sourceforge.net/projects/lazarus/files/Lazarus Linux amd64 DEB/Lazarus 2.0.12/ as described on the wiki page.  Install them with gdebi or apt, not dpkg.

User mcculloch is a completely different situation. He/she is using Mint 20 and is apparently having problems with libgtk2.0-dev.  libgtk2.0-dev  is a pretty standard package available for just about any GUI based linux  and is not supplied in any way by the FPC/Lazarus project.  I suspect some confusion may be caused if dpkg is being used, the messages it offers can sometimes be a problem.  Thats why I suggest using apt (not apt-get nor dpkg) to install Lazarus. 

If it still refuses to install using apt then is an issue that needs to be reported to Mint. Not working will break a lot of development enviournments other than Lazarus !

Just to be sure, I have just downloaded both FPC and Lazarus from the Lazarus SourceForge repos, dependencies are -

FPC - binutils  (no version mentioned)
Lazarus -  libgtk2.0-dev (>=2.6.0), fpc-laz (=3.2.0), fpc-src (=3.2.0)

So, libgtk2.0-dev has to be greater or equal to 2.6.0, there is nothing there that says it cannot be any subsequent version.

So, mcculloch, please try using apt as described in the wiki and if you still get an error message, please copy the full text of the error here.

(Note : Lazarus (in this deb) requires exactly FPC 3.2.0, so don't use wth FPC 3.2.2, the three debs are a matched set, use them as such. Thats just one more reason I suggest anyone and everyone install Lazarus from Source. Sigh ....)

Davo
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 04, 2021, 01:29:54 pm
So, you are installing from debs downloaded from SourceForge ?  Which one of those three has a dependency on a maximum package ?  I would be quite surprised but I guess its possible. I would guess a 'force' would work ....

Again, are you really trying to install on U21.10 ?  You most certainly will have dependency problems doing so, it will be a long way from ready right now.

If I was you, I would read that Installing Lazarus on Linux page I mentioned earlier, especially the part that talks about installing from source. Installing Lazarus (and you have not told us which package has this strange dependency) from source lets (indeed, requires) you to resolve dependencies yourself.

Davo

Yes, I got the debs from sourceforge and I mentioned that I'm using Linux Mint 20. 

The last package for lazarus is the one that chokes on libgtk2.0-dev.  I get:

john@desktop02:~$ sudo apt install libgtk2.0-dev
[sudo] password for john:         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or 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 going to be installed
                 Depends: libgdk-pixbuf2.0-dev (>= 2.21.0) but it is not going to be installed
                 Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
                 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
                 Recommends: debhelper but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Sorry I don't know how to format the above better.  Either way, I tried installing glib2.0-dev and got something similar with different deps.  I've done the check for broken packges and there aren't any.  I tried installing build-essential and that also told me something similar.  apt-get install -y after any of these does nothing.  build-essential needs libc6-dev and g++.  Then I tried:

john@desktop02:~$ sudo apt-get install libc6-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.3 is to be installed
E: Unable to correct problems, you have held broken packages.

I then tried using aptitude and anything it wants to do wants to downgrade things and I won't do that.  I also won't install from source.  Thanks for helping but this is getting way to deep into package dependencies and I'm getting nervous..  The machine I'm trying to install on is the system I do my personal business on and the risk of proceeding any further is too high for me. 
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on June 04, 2021, 01:57:16 pm
Hmm, unlikely as it seems, that sure looks like a Mint problem.

You should be able to install libgtk2.0-dev !  Thats not a FPC/Lazarus problem.  I don't have a Mate 20 test machine so cannot confirm this problem.  Mate 20 is based on U20.04 as I understand it, my U20.04 seems to have quite different version numbers for its libgtk2.0 and libgtk.02-dev 2.24.33.  And they have to match. You seem to have 2.27.3 and 2.31.   

>The following packages have unmet dependencies:
> libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.3 is to be installed

The 0ubuntu9.2 v 0ubuntu9.3 is a packaging number and can probably be safely forced but the real version numbers are a real issue. 

Have you installed some later libraries via a PPA for example ?

Do you have synaptic installed ?  Its a great GUI tool to look at installed and uninstalled packages in great detail. Could be useful here ....

Davo

EDIT: Installing from source won't help you here anyway, Your problem is apparent before you touch the FPC/Lazarus things.  Any development enviournment that uses GTK2 is going to need libgtk2.0-dev.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on June 04, 2021, 02:28:54 pm
Sorry, I cannot find how or where Mint keeps its repository files.

So, if you don't have synaptic installed, please try this command -

Code: Bash  [Select][+][-]
  1. apt list | grep libgtk2.0 <enter>

Then, just in case, type this -

Code: Bash  [Select][+][-]
  1. sudo apt-get update  <enter>

The update will just refresh apt's view of what packages are available, it will not make any changes to your system.  Then repeat the

Code: Bash  [Select][+][-]
  1. apt list | grep libgtk2.0 <enter>

If its different to earlier result, thats probably your issue, try to install libgtk2.0-dev again.  Either way, please post the result of the last commad. What we are looking for is the version numbers for libgtk2.0-dev and libgtk2.0, they MUST be the same or you have some serious problems !

Davo

EDIT: Signing off, bedtime, sure someone else will help from here.

Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: VTwin on June 04, 2021, 06:14:47 pm
You might try:

Code: Pascal  [Select][+][-]
  1. sudo apt-get -f install

to fix dependencies. See:

https://forum.lazarus.freepascal.org/index.php?topic=45314.0

FPC and Lazarus are fine.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 04, 2021, 10:57:18 pm
Results to both suggestions:

Code: Pascal  [Select][+][-]
  1. john@desktop02:~$ apt list | grep libgtk2.0
  2.  
  3. WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
  4.  
  5. libgtk2.0-0/focal,now 2.24.32-4ubuntu4 amd64 [installed]
  6. libgtk2.0-0/focal 2.24.32-4ubuntu4 i386
  7. libgtk2.0-bin/focal,now 2.24.32-4ubuntu4 amd64 [installed]
  8. libgtk2.0-bin/focal 2.24.32-4ubuntu4 i386
  9. libgtk2.0-cil-dev/focal 2.12.40-3 amd64
  10. libgtk2.0-cil/focal 2.12.40-3 amd64
  11. libgtk2.0-common/focal,focal,now 2.24.32-4ubuntu4 all [installed]
  12. libgtk2.0-dev/focal 2.24.32-4ubuntu4 amd64
  13. libgtk2.0-dev/focal 2.24.32-4ubuntu4 i386
  14. libgtk2.0-doc/focal,focal 2.24.32-4ubuntu4 all
  15. john@desktop02:~$ sudo apt-get -f install
  16. Reading package lists... Done
  17. Building dependency tree      
  18. Reading state information... Done
  19. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  20.  
  21.  

I've done the last one many times.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: VTwin on June 05, 2021, 01:57:27 am
I'm plumb out of suggestions. I've not had an issue on Ubuntu in a decade or so of using it.

I'm not a Linux wizard. Hopefully another Mint user can help.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on June 05, 2021, 02:05:41 am
As a general rule, I believe its better to solve dependencies before installing a package. Relying on "apt-get -f install" can be a problem when a package's pre and post install scripts assume dependencies are resolved, they are not supposed to but sometimes do.

Now, apt list tells us that you have the normal, as expected Focal libgtk2.0 stuff -

> libgtk2.0-0/focal,now 2.24.32-4ubuntu4 amd64 [installed]
> libgtk2.0-dev/focal 2.24.32-4ubuntu4 amd64

So, thats good.  Now, your earlier screen scrape said that it needed libglib2.0-dev (>= 2.27.3) - on my Focal testbox, I have 2.63 (2.64 on my working box) so its not a demanding request.  Please use a variation of the previous command -

> apt list | grep libglib20 <enter>

If you have something earlier than 2.27 I will be surprised !  But perhaps yours is an updated machine rather than a fresh install and somehow an old version has been left lying around ???  You can use the list command to check out the available versions of the other packages mentioned. You did update your apt database didn't you ?  I am left wondering if you have a broken apt database - usually when that happens, apt is only too keen to tell you but ....

(Again, I mention Synaptic, really great way to view versions of installed and uninstalled packages.)

I am afraid this is sounding more and more like a job for the Mint forum rather than here.  Its a pretty simple question there, "I cannot install libgtk2.0-dev" (or maybe say libglib2.0 ?).  As this problem has nothing to do with FPC/Lazarus, I suggest mentioning them would just complicate the issue.

Which version of Mint are you using ? Cinnamon probably but maybe Mate ?  If I get some time this afternoon, I'll pull down an image and try it here.  But that will, of course, be a fresh install, I suspect you have a "history" problem.

Davo

Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on June 05, 2021, 03:50:16 am
OK, had a few spare minutes after all. I build a (fresh) Mint 20.1 Cinnamon. And -

1. It does have Synaptic pre installed, would be an easier way to lookup what we needed.
2. The required libraries in the default repo all seem consistent with what I expected.
3. I installed libgtk2.0-dev without any problems. Its a fairly large install because Cinnamon does not seem to have any GTK2 installed by default but as no many apps use it, you will need it sooner or later anyway.  I am guess ing XFCe would be the same but Mate would have a lot already there.

Some notes about the install -
> "Need to get 41.6 MB of archives."
> "After this operation, 168 MB of additional disk space will be used."

As noted above, not much GTK2 there already.

> "Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6 amd64 2.31-0ubuntu9.2 [2,715 kB]"

Note that is the ~0ubuntu9.2 version, you were being offered 0ubuntu9.3, I wonder why ?  Looks like Mint repackaged it.  The content should not have been changed.
After a lot of stuff, finally -

> "Setting up libgtk2.0-dev:amd64 (2.24.32-4ubuntu4) ..."

I can only assume your install is somehow broken, perhaps you have manually forced an install of a later library ?  Or something you have installed forced that later library. Generally not a good idea IMHO.

Please take this issue to Mint forum, you will get a lot better help there.

Davo

Attached is the script of install.



Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 05, 2021, 01:36:03 pm
I think I used Synaptic the first time I tried installing Gtk 2.0.  It was preinstalled.  I am working with people on the Linux Mint forum.  Will Lazarus move to Gtk 3 soon?  That's my question, not theirs.  But I do suspect that will be their next question if they can't figure out how to make libgtk2.0-dev happy.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on June 05, 2021, 03:02:58 pm
> Will Lazarus move to Gtk 3 soon? 

Lazarus GTK3 is available now but its sure not ready !  It has trouble with small apps, I'd rather not try to build the IDE. Contribution would be very welcome ....

Qt5 is pretty good if you don't want GTK2, its stable, fast and look excellent. I ship my app (for Linux) in both GTK2 and Qt5.  As most distros still arrive with just about all needed GTK2, that seems the preferred option for most down loaders.   

Don't let Mint put you off with a "why GTK2" approach, there are still quite a lot of GTK2 apps in their repo (well, in Ubuntu's repo really) so to dismiss GTK2 is not an option. Hmm, my Cinnamon test VM had GDebi preinstalled, thats a GTK2 app from memory ....

Davo

Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 05, 2021, 03:19:02 pm
Oh I'm sure lots of apps on Linux Mint 20 Cinnamon use GTk2.  It's the dev package that won't install.  Synaptic shows all kinds of gtk2 and glib2 stuff, just not libgtk2.0-dev.  It's definitely a LM issue.  The really frustrating part is that it keeps telling me that there are held broken packages when there really aren't.  It doesn't help when it lies to you about what is wrong.  The missing dependencies part is right, but that's about it.  I'll keep trying with the LM Forum because now I'm not sure if my system might have a serious issue.  Thanks again.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: MarkMLl on June 05, 2021, 04:15:46 pm
As others have said: @mcculloch, you're somewhat out of order piggybacking onto somebody else's question, it makes life difficult for people trying to help both you and the OP.

Having said that, these days the usual cause of problems like you're seeing is an attempt to run a 32-bit app on a 64-bit system without multiarch support having been installed. However your

>The following packages have unmet dependencies:
> libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.3 is to be installed

would appear to suggest that your Mint installation has self-destructed... I'm not necessarily saying it's something you've done, but I'm not saying that it's not something you've done particularly if you've forced in other apps (as I think you've suggested).

Not being able to install libgtk2.0-dev is a bit of a killer, but you could always try compiling Lazarus from source for Qt... in any event if I were you I'd not try installing any more binary packages on that system until the situation is a bit clearer.

Another possibility would be to install a clean Mint (or OS of your choice) in a Docker container, install the OS's choice of libgtk2.0-dev version etc., take a snapshot at that point and then try installing Lazarus from binary or compiling from scratch.

I'm not an unalloyed fan of Docker, but I think it does have its uses particularly if one needs to install stuff which might possibly clash with the host OS. I've used it for various things like building Lazarus-based programs for a slightly older host (i.e. one that had a "wrong" version of libc etc.) and building Mozilla apps, but I would warn that it doesn't always play nicely with existing netfilter (firewall) rules and bridging etc.

HTH in some small way.

MarkMLl




Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 05, 2021, 10:06:26 pm
As others have said: @mcculloch, you're somewhat out of order piggybacking onto somebody else's question, it makes life difficult for people trying to help both you and the OP.

Originally, I didn't plan on this getting this detailed.  I mentioned my problem because one solution to the original post mentioned libgtk2.0-dev.  Then people began trying to help even after I was ready to bail, so I kept working along with them.  I've got libgtk2.0-dev installed now.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: VTwin on June 05, 2021, 10:24:02 pm
I've got libgtk2.0-dev installed now.

Let us know what worked, here or in a separate thread.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: MarkMLl on June 05, 2021, 10:39:25 pm
I've got libgtk2.0-dev installed now.

Let us know what worked, here or in a separate thread.

Seconded, and congratulations :-)

If it is a separate thread, please post one last message in this one with a link to it so that people who are monitoring this one know what to read.

MarkMLl
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 05, 2021, 11:26:22 pm
I don't know how to link like that, so I'll put it here.  The problem was not with my system or Linux Mint.  It was the Ubuntu repository.  The Linux Mint people sent me an enormous command to downgrade a package:

Code: Pascal  [Select][+][-]
  1. john@desktop02:~$ sudo apt install $(dpkg -l | egrep '(libc|locales|nscd).* 2.31-0ubuntu9.3 ' | cut -d' ' -f3 | paste -sd ' ' | sed -r 's/( |$)/=2.31-0ubuntu9.2 /g')
  2.  
  3.  

Ubuntu users might have to do this in certain cases.
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: MarkMLl on June 05, 2021, 11:57:20 pm
Ouch. That isn't Ubuntu's problem, it's either Mint's problem (as an Ubuntu derivative) or the problem of somebody who's latterly been seduced into installing packages from Ubuntu's repository to satisfy delinquent dependencies.

MarkMLl
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 06, 2021, 12:45:11 am
I don't know whose "problem" it is, but the Ubuntu repositories is where libgtk2.0-dev is and Lazarus needs it. 
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: VTwin on June 06, 2021, 01:34:16 am
Yikes! Who could know?
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: dbannon on June 06, 2021, 02:24:27 am
Just to remind you of my earlier post.

I installed an fresh Linux Mint 20.1 and had no difficulty getting everything needed. The version libc6 is 2.31-0ubuntu9.2. Thats the same version in U20.04 which, as we know, Mint is based on.   Your install wanted ~0ubuntu9.3.That means, to me, very few possible explanations -

1. 'Someone' repackaged it, realised their mistake and reverted it. The number change, 2->3 is a packaging revision.  Ubuntu would not, at the point of a gun, do something like that to their flagship LTS version.

2. Alternatively, your local system was, at some stage, 'forced' to update libc6 to a later version than it should be using (although again, only a packaging revision ??)

Both seem quite unlikely. Frankly, I suggest we regard the problem solved and keep our own council. 

Mind you, specifying packaging versions in a dependencies list certainly contributed to this problem. But as libc is critical to the entire OS, I sort of understand Ubuntu's obsession.

Davo
Title: Re: Lazarus 2.0.12 on Ubuntu 21.10 install error Dependency not satisfiable
Post by: mcculloch on June 06, 2021, 12:32:49 pm
From what I'm told, the repositories have been repaired but it would not retroactively have repaired my system and I had to specifically downgrade.  That's why installing a fresh system would work correctly.  But I do agree the problem is solved.
TinyPortal © 2005-2018