Question

How install GLIBC 2.29 or higher in Ubuntu 18.04

Posted June 6, 2020 4.2k views
Ubuntu 18.04

I’m trying to run my python script on my Ubuntu 18.04 but when I try, I get the following error:

OSError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/user/.local/lib/python3.6/site-packages/opencc/clib/lib/libopencc.so.1.1)

Which is that one of the modules I use (opencc) needs GLIBC 2.29 or superior.

Ubuntu “standard” version is 2.27, so I checked if I could install the updated but I can’t.

apt-cache madison libc6
     libc6 | 2.27-3ubuntu1 | http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages

I downloaded libc-bin_2.30-0ubuntu2_amd64.deb and tried to install with sudo dpkg -i libc-bin_2.30-0ubuntu2_amd64.deb but also errors out due to lack of lib6:amd64…

(Reading database ... 101424 files and directories currently installed.)
Preparing to unpack libc-bin_2.30-0ubuntu2_amd64.deb ...
Unpacking libc-bin (2.30-0ubuntu2) over (2.30-0ubuntu2) ...
dpkg: dependency problems prevent configuration of libc-bin:
 libc-bin depends on libc6 (>> 2.30); however:
  Version of libc6:amd64 on system is 2.27-3ubuntu1.

dpkg: error processing package libc-bin (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
 libc-bin

and I tried install libc6-amd64_2.30-0ubuntu2_i386.deb but I get

dpkg-deb: error: 'libc6-amd64_2.30-0ubuntu2_i386.deb' is not a Debian format archive
dpkg: error processing archive libc6-amd64_2.30-0ubuntu2_i386.deb (--install):

So, as title, How install GLIBC >=2.29 in Ubuntu 18.04?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @RaphaelDDL,

By default, the highest version of GLIBC for Ubuntu 18.04 should 2.27. You have two options to continue :

  1. The first option is to migrate your application to a system that supports GLIBC higher than or equal to 2.29. This would mean a lot of work though. It seems Ubuntu 19.04 actually uses that version.

  2. The second option would be to actually build your GLIBC from source using the version you want or need. I’ve researched it a bit and found a website which actually gives you the steps for you to build the package from source :

http://www.linuxfromscratch.org/lfs/view/9.0-systemd/chapter05/glibc.html

Take a look at it and decide how it would be best for you to proceed.

Regards,
KDSys

Submit an Answer