Page 1 of 1

glibc update

Posted: Fri Apr 07, 2023 5:58 am
by mbooyzen
Hi Good people

I'm having an issue with Ultimaker Cura
Problem is that i am using the appimage as there are regular updates to the software and i know the packaging guys are busy already
So by downloading the appimage for cura (I need 5.1 or later) i get the following

Code: Select all

$ ./UltiMaker-Cura-5.3.0-linux-modern.AppImage 
[8525] Error loading Python lib '/tmp/.mount_UltiMa5Nrz6d/libpython3.10.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /tmp/.mount_UltiMa5Nrz6d/libpython3.10.so.1.0)
Many says apt install glibc works but i get

Code: Select all

$ sudo apt-get install glibc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package glibc
I do have the following output on

Code: Select all

$ ldd --version 
ldd (Debian GLIBC 2.31-13+deb11u5) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
Some also say that updating glibc broke other thing for them, so i am a bit on the cautious side.

As for MX Package Installer, latest available is 4.8
I believe sorting the python/glibc issue is the preferred solution, if someone can give my guidance.
I am also not too clued up on compiling source code, also an option if all else fails

Thank you

Re: glibc update

Posted: Fri Apr 07, 2023 6:44 am
by fehlix
mbooyzen wrote: Fri Apr 07, 2023 5:58 am Hi Good people

I'm having an issue with Ultimaker Cura
Problem is that i am using the appimage as there are regular updates to the software and i know the packaging guys are busy already
So by downloading the appimage for cura (I need 5.1 or later) i get the following

Code: Select all

$ ./UltiMaker-Cura-5.3.0-linux-modern.AppImage 
[8525] Error loading Python lib '/tmp/.mount_UltiMa5Nrz6d/libpython3.10.so.1.0': 
dlopen: /lib/x86_64-linux-gnu/libm.so.6: 
version `GLIBC_2.35' not found (required by /tmp/.mount_UltiMa5Nrz6d/libpython3.10.so.1.0)
The highest supported glibc version on MX-21 based on Debian bullseye,
would be 3.4.28.
Which you can find out by this:

Code: Select all

strings /lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX_3.
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28
There is no upgrade path to a higher version on MX-21.
You may need an appimage which is built for running on those available glibc versions.

Re: glibc update

Posted: Fri Apr 07, 2023 7:14 am
by mbooyzen
Hi sorry, might have some confusion there, The version of cura i need is 5.1 or later
The appimage needs glibc2.35
I just need to know how i can update glibc to 2.35(i guess later will work), as the current is 2.31 on MX21.3?

The only available version in package installer is

Code: Select all

Package: glibc-source
Version: 2.31-13+deb11u5
Nothing in testing

Thanks for looking into it.

Re: glibc update

Posted: Fri Apr 07, 2023 7:54 am
by dolphin_oracle
typically we do not update glibc. it creates a daisy change of dependency issues across many many packages.

this sort of thing tends to start happening as the current debian stable gets long-in-the-tooth. the next debian stable, and mx-23, will have 2.36 I think.

If a flatpak is available, I suggest trying that.

Re: glibc update  [Solved]

Posted: Fri Apr 07, 2023 8:08 am
by fehlix
mbooyzen wrote: Fri Apr 07, 2023 7:14 am Hi sorry, might have some confusion there, The version of cura i need is 5.1 or later
The appimage needs glibc2.35
I just need to know how i can update glibc to 2.35(i guess later will work), as the current is 2.31 on MX21.3?

The only available version in package installer is

Code: Select all

Package: glibc-source
Version: 2.31-13+deb11u5
Nothing in testing

Thanks for looking into it.
Right, that anwser was for another question. But the conclusion similar.
The max version supported by the GNU C shared library is 2.31 on bullseye:

Code: Select all

strings /lib/x86_64-linux-gnu/libm.so.6 | grep GLIBC_2
GLIBC_2.2.5
GLIBC_2.4
GLIBC_2.15
GLIBC_2.18
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_2.27
GLIBC_2.28
GLIBC_2.29
GLIBC_2.31
There is no upgrade path to a higher version on MX-21.
You may need an appimage which is built for running on those available glibc versions.

Re: glibc update

Posted: Fri Apr 07, 2023 8:35 am
by mbooyzen
Thank you, dolphin_oracle and fehlix, that confirms my suspicions.
Will go the flatpak route, i see it is up to date with cura version, never even looked there.
Thank you guys.