Questions tagged [glibc]

glibc is the GNU C Library, which provides many common and important functions for programs. Almost every program in Ubuntu directly or indirectly depends on this, and will completely fail to run without it. Besides the kernel, glibc is probably the most essential part of the system; even the init daemon requires it. In Ubuntu, glibc is provided by the libc6 package.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
45 views

C++ Program crashes at setegid()/seteuid() in glibc v3.34 on ubuntu 22.04

I have a C++ program that runs on multiple platforms (i.e RHEL7,8 & 9 also on Ubuntu 18.04, 20.04 & 22.04). Basically the code has multi-thread implementation to handle the multiple user ...
0 votes
0 answers
124 views

How to use glibc 2.33 when I already have glibc2.31

To install WRF-ARW, I faced an issue with glibc. Like when I tried gfortran TEST_1_fortran_only_fixed.f && ./a.out I got the following error: /usr/bin/ld: /home/linuxbrew/.linuxbrew/Cellar/...
  • 101
0 votes
0 answers
54 views

GLIBC problem. Ubuntu 22.04.1

I am using Ubuntu 22.04.1 OS. My GLIBC library version is 2.35. I ran into one problem when using the sprof command: read and display shared object profiling data. I compiled and ran my program, which ...
0 votes
0 answers
736 views

Ubuntu 22.04 issue, cannot install libc6-dev ... you have held broken packages

I do not know how to fix the following, and it's causing a huge delay on my progress on a research project: (base) chaztikov@priority:~/git/modulus$ sudo apt-get install libc6-dev Reading package ...
1 vote
1 answer
102 views

execute bit on libc.so.6

It seems starting in ubuntu 22.04 the execute bit is no longer set on /lib/x86_64-linux-gnu/libc.so.6. This throws off some scripts and methods to find out the glibc version being used. Could that bit ...
  • 11
0 votes
0 answers
37 views

How to find the environment variable for a file?

I am using the custom package manager spack to manage the packages on my system, including gcc. I have created the exact same spack installation setup on two computers and want to run a software that ...
  • 101
1 vote
1 answer
464 views

libpthread.so.0: version `GLIBC_2.30' not found

I'm trying to run immersed executable and I get the following errors: Immersed: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by Immersed) Immersed: /lib/x86_64-linux-gnu/...
0 votes
0 answers
225 views

Undefined __*_finite symbols in libm.so.6 on Ubuntu 20.04

I noticed that math __*_finite symbols are not present anymore in libm.so.6 on Ubuntu 20.04 (GLIBC version 2.31). nm returns those symbols as they were present in the shared object: nm -gD libm.so.6 | ...
  • 1
2 votes
0 answers
5k views

How can I get glibc 2.35 on Ubuntu 20.04?

I'd like to update to a 2022 version of glibc, at least 2.35. This seems to be available on Ubuntu 22.04, but how can I get it on 20.04?
  • 967
0 votes
2 answers
252 views

Install 20.04 system libraries in 21.10

I'm facing a weird problem. I develop Qt/C++ applications. Until yesterday my dev machine and the target ones were both running Ubuntu 20.04. Yesterday I had to upgrade my dev machine to 21.10 in ...
  • 405
1 vote
1 answer
111 views

cannot install winehq-stable due to broken packages on 20.04 upgraded from 18.04

I found this article Unable to install wine32 due to broken packages but this is not quite the end of the story for me. After digging down the dependency trees it seems that the underlying cause were ...
  • 191
0 votes
0 answers
183 views

Upgrading BlueZ failes with: Install GLib >= 2.28 is required

I'm trying to connect my Keychron K3 keyboard with my PC via bluetooth, but the keyboard is not listed. So I've tried it on my office laptop there it works. Both devices running Ubuntu 21.10 with ...
0 votes
0 answers
46 views

configure seems missing for glibc

I have follow the INSTALL documentation for run your command line advice but the glibc program unwant to do your advice, the command line is the following : root@ubuntu-ThinkPad-X250:/home/ubuntu/...
9 votes
1 answer
1k views

How to update glibc on ubuntu 20.04 due to security vulnerability

I am trying to update glibc 2.31-0ubuntu9.2. As an internal scan has picked this up as vulnerable. https://nvd.nist.gov/vuln/detail/CVE-2021-33574#range-6777140 When I use sudo apt-get update then ...
  • 91
4 votes
1 answer
3k views

How to install libc6-i386 in Ubuntu 20.04 focal?

Duplicate? In the linked question I've posted my sources.list and it was deemed nothing out of the ordinary. So how could my question be a duplicate of fixing sources.list? How is that even remotely ...
12 votes
2 answers
15k views

How to upgrade libc6 (glibc) beyond v 2.31 on Ubuntu 20.04?

I am using the Stockfish chess engine within some GUI, but yesterday it stopped working. I hadn't changed the engine, nor the interface, but when I tried to run the engine it "terminated with ...
12 votes
3 answers
4k views

Why is a 21.10 built binary not compatible with 21.04 install?

I don't understand why a binary built on 21.10 is not compatible with an 21.04 system. The binary is linked against libc.so.6 which is available on the 21.04 OS version as well. Same binary, on the 21....
  • 1,238
2 votes
1 answer
713 views

How to install libg2c.so.0 on Ubuntu 18.04 64bit

I'm using: Linux ip-172-31-28-209 5.4.0-1059-aws #62~18.04.1-Ubuntu SMP Fri Oct 22 21:51:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I encounter an error while running a program: while loading shared ...
0 votes
0 answers
73 views

How do I change the env var LD_LIBRARY_PATH by inserting the local path as the FIRST?

I am trying to solve a Matlab crash that I am experiencing by following this solution: https://www.mathworks.com/matlabcentral/answers/1567188-simulink-crash-in-ubuntu-20-04 I successfully followed ...
0 votes
0 answers
285 views

How to you compile glibc (32-bit and 64-bit)?

I have a program that is being shipped out for multiple Linux platforms and requires all of the references to be compiled within the executable itself. I've gather that they would need to be compiled, ...
0 votes
1 answer
3k views

Problem with libc6 and libc6-amd64 while attempting to upgrade to libc6 2.34

So the core of the problem started after Ubuntu prompted me to upgrade. I am on Ubuntu 18.04.5 (Bionic Beaver). After the upgrade, I tried starting my browser to no avail. So I navigated to the binary ...
2 votes
1 answer
982 views

How to recover from a corrupted glibc on Ubuntu 20.04 server

Given a second chance I would double check it, but I accidentally run sudo ln -sf something /usr/lib/x86_64-linux-gnu/libc-2.31.so. And there is not another copy of glibc because this is the real ...
1 vote
1 answer
397 views

How to compile .so file in Ubuntu with GLIBC_2.27

I have an executable and some .so file in Ubuntu 20.04 but I need to use these .so files in Ubuntu 18.04. Now, when I try to copy and use these .so files in Ubuntu 18.04, it is giving me error which ...
0 votes
1 answer
1k views

missing libm.so.6 and libstdc++.so.6

I have a program that I compiled through qt creator and appears to work fine on my computer but I'm trying to run it on a remote computer cluster and it spits out these error messages. ./programs/...
  • 3
3 votes
1 answer
21k views

How to Install glibc 2.32 when I already have glibc2.31

Please help me install glibc 2.32. Running 20.04.
  • 75
1 vote
1 answer
1k views

XGBoost fails with GLIBCXX_3.4.26 not found error on Ubuntu 18.04

I'm attempting to run some code that calls into XGBoost on a Ubuntu 18.04 machine. This code fails with AttributeError: 'XGBoostCostModel' object has no attribute 'pool', with the root cause: Error ...
31 votes
4 answers
31k views

mainline kernel now depends on libc6 2.33, non-installable in focal?

I've been happily installing 5.10 mainline kernels (from https://kernel.ubuntu.com/~kernel-ppa/mainline/) on my Ubuntu 20.04. Trying to update to 5.10.33, I discovered an unwelcome dependency on libc &...
  • 433
1 vote
1 answer
708 views

Update to 20.10 failed silently, now can't update due to package version mismatch with libc-bin and libc6:i386 / libc6:amd64

I am on Pop OS, which hews very closely to Ubuntu. A few days ago I tried to update my workstation from Pop OS 20.04 to 2010 by following the instructions on System 76's website by running sudo apt ...
  • 121
0 votes
0 answers
208 views

Installing libc6:amd64 on arm64 removes all system packages

I'm trying to install libc6:amd64 on an ARM64 ubuntu machine following this guide As per the instructions there I added the following to my sources.list: deb [arch=amd64] http://archive.ubuntu.com/...
  • 111
0 votes
1 answer
1k views

Inconsistency detected by ld.so: elf_get_dynamic_info: Assertion `info[DT_RUNPATH] == NULL' failed! trying to run qemu using glibc-2.33

For educational pourpoise I would like to run the latest version of qemu using glibc-2.33,instead of glibc installed as default on the 18.04. The final goal is to virtualize windows 10 arm64 on the ...
  • 415
0 votes
1 answer
2k views

About files in /usr/include/x86_64-linux-gnu

I see libc6-dev have files installed in /usr/include/x86_64-linux-gnu. It seems that files in /usr/include/x86_64-linux-gnu/sys are pointed by symlinks from /usr/include/sys. And it seems that /usr/...
0 votes
0 answers
814 views

How to enable selectively glibc 2.33 only for qemu 5

I'm trying to virtualize windows 10 arm64 on the jetson nano where I have installed ubuntu 18.04 arm64 (I can't upgrade it to ubuntu 20.04 because nvidia does not support it). To get the best ...
  • 415
0 votes
1 answer
1k views

how to compile glibc on ubuntu 18.04 from source on a different folder

I'm trying to virtualize windows 10 arm64 on the jetson nano where I have installed ubuntu 18.04 arm64 (I can't upgrade it to ubuntu 20.04 because nvidia does not support it). To get the best ...
  • 415
0 votes
1 answer
551 views

Where is the source code of libc6-dev-i386 from?

I see this. Where the source of libc6-dev-i386 is from? $ apt-file search /usr/include/sys/socket.h libc6-dev-i386: /usr/include/sys/socket.h https://packages.debian.org/search?keywords=libc6 https://...
1 vote
1 answer
172 views

Major changes in sorting method of glibc on Ubuntu 18.04 after upgrading to Ubuntu 18.04.5

I had an Ubuntu 18.04.0 with Postgres 9.6. Before Ubuntu upgrade following command result was: vodka@ubuntu140:~$ ( echo "1-1"; echo "11" ) | LC_COLLATE=en_US.UTF-8 sort 1-1 11 ...
0 votes
1 answer
5k views

node:/usr/lib64/libstdc++.so.6:version GLIBCXX_3.4.14, GLIBCXX_3.4.18, CXXABI_1.3.5, GLIBCXX_3.4.15, GLIBC_2.17, GLIBC_2.16 and GLIBC_2.14 not found

While running node -v it shows the below error: node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by node) node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not ...
  • 21
28 votes
3 answers
52k views

Unmet dependencies. Libc6 The package system is broken

Whenever I try to upgrade or install a new package i get the following ibc6-dbg: Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.1 is installed \ libc6-dev: Depends: libc6 (= 2.31-0ubuntu9.2) but ...
  • 381
2 votes
1 answer
886 views

Whole system is broken after failed libc6 upgrade attempt

I needed to upgrade libc6 from 2.27 to 2.31, but it was not working with apt-get install (it claimed 2.27 is the newest version which is not true) so as suggested by this thread I've downloaded deb ...
0 votes
1 answer
2k views

apt: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /usr/lib/aarch64-linux-gnu/libapt-pkg.so.5.0)

I think that I did an huge mistake trying to install the wrong libc6 package on my ubuntu 18.04 (arm64) installed on my jetson nano because now the os is not working at all anymore and I don't know ...
2 votes
1 answer
12k views

How to install glibc and glibcxx on Lubuntu 20.04

I want to install GLIBC and GLIBCXX as they are mentioned as "Additional requierements" to install Visual Studio Code. As stated in the title, I'm using Lubuntu 20.04 When search about it, I ...
  • 63
1 vote
0 answers
299 views

Visual Studio Code 1.51.1 not launching on Ubuntu 20.10 (ERROR: GLIBC_2.29' not found)

VSCODE VER: 1.51.1 This shows up with code --verbose: /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_name Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/...
  • 111
0 votes
0 answers
46 views

Why free() coredumps on one but not the other?

I have this very simple source code used as a test program: #include <stdio.h> #include <stdlib.h> int main() { FILE *fp; fp = fopen("file.txt", "w"); ...
  • 360
1 vote
0 answers
2k views

downgrade libc6 to 2.23-0ubuntu11.2

I'm running ubuntu16, and last week I installed https://ubuntu.pkgs.org/20.04/ubuntu-universe-amd64/clang-10_10.0.0-4ubuntu1_amd64.deb.html from ubuntu20 package repository(by simply add ubuntu20 ...
  • 111
0 votes
0 answers
63 views

Terminal no longer works (at all)

I think I've really done on on myself now. So, I've been trying to run steam on Lubuntu and upon startup it reports that I'm missing libc.so.6, so specifically I went to the debian package website, ...
1 vote
1 answer
1k views

Operation not permitted

Got trouble with starting one app. Introduction I have Ubuntu-20.04-amd64 with core 5.x on my VDS. I have needed to install other core with some patch. But patch was available for 4.9.158 core version....
  • 111
0 votes
0 answers
1k views

libcrypto.so: undefined reference to `fcntl@GLIBC_2.28'

Am performing ARM cross compilation on x86 and i have a tool chain like below : SET(CMAKE_SYSTEM_NAME Linux) include(CMakeForceCompiler) SET(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc) SET(...
0 votes
1 answer
884 views

Compile glibc 2.3 with linuxthreads

I'm trying to compile glibc 2.3 (https://ftp.gnu.org/gnu/glibc/glibc-2.3.tar.gz) with the addon linuxthreads (https://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.3.tar.gz) under ubuntu 18.04. The ...
  • 1
1 vote
1 answer
142 views

Why do "ping undefinedhost" and "curl undefinedhost" (e.g. libc "gethostbyname") ping / contect to the local host instead of failing?

I have an old Ubuntu 16.04 (LTS) installation and today noticed, that ping and curl are being told (by libc, I assume), that the IP of any unknown host is the same as the IP of the local host (e.g. &...
  • 141
1 vote
2 answers
3k views

libc6-dev header files missing on Ubuntu 20.04

byteswap-16.h contains a macro used in many programmes. On Ubuntu 18.04 this file was part of the libc6-dev package and installed to /usr/include/x86_64-linux-gnu/bits. With 20.04 this file is no ...
5 votes
1 answer
25k views

Version `GLIBC_2.28' not found

I'm trying to install PyTorch on ARMv7(32-bit) architecture but PyTorch doesn’t have official ARMv7 builds so i tried this unofficial build. It installed successfully but when I import torch I get ...