Skip to main content

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
68 votes
13 answers
101k views

apt: relocation error: version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

Since trying to upgrade to 16.04 xenial, I'm getting $ apt apt: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol ...
Nico Schlömer's user avatar
66 votes
3 answers
543k views

libc.so.6: version `GLIBC_2.14' not found

Whenever I try to run a program from the terminal (apt-get for example) I get a: apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib/libstdc++.so.6) Not ...
b-fuze's user avatar
  • 661
40 votes
2 answers
232k views

Upgrading glibc

I just read here that there is security bug in glibc and that it is already fixed. I found out, that the actual installed version of glibc can be shown by ldd --version. My systems runs version 2.19. ...
eDeviser's user avatar
  • 2,139
37 votes
4 answers
133k 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 ...
rtpenick's user avatar
  • 479
33 votes
4 answers
34k 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 &...
usretc's user avatar
  • 463
28 votes
4 answers
103k views

How to fix E: Internal Error, No file name for libc6 [duplicate]

How to fix E: Internal Error, No file name for libc6, Like that will show If I do: $ sudo apt-get upgrade or $ sudo apt-get install package This is example : $ sudo apt-get upgrade Reading package ...
Loren Ramly's user avatar
15 votes
2 answers
9k views

Why Ubuntu uses eglibc instead of glibc?

I checked for the libc version on my Ubuntu 64bit 12.10 machine by issuing the command ldd --version. I saw that Ubuntu uses eglibc instead of glibc. As egiblc is for embedded machines, Is there a ...
abhi's user avatar
  • 321
14 votes
1 answer
49k views

'GLIBC_2.25' not found on Ubuntu (Windows Subsystem for Linux)

I have following error on Ubuntu 16.04 (Windows Subsystem for Linux) /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.25' not found I've already tried: apt-get update apt-get install libc6 It ...
Some One's user avatar
  • 149
14 votes
2 answers
44k 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 ...
Markus Gratis's user avatar
13 votes
1 answer
48k 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?
Jack M's user avatar
  • 1,406
12 votes
3 answers
5k 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....
Bram's user avatar
  • 2,621
12 votes
7 answers
103k views

version `GLIBCXX_3.4.26' not found even though libstdc++.so.6 recent enough

I realize there are many questions like this, but the difference from the others is that my libstdc++.so.6 actually does appear to be up to date enough (see below for the strings it exports). This is ...
Diederick C. Niehorster's user avatar
11 votes
4 answers
24k views

How can I fix a missing/renamed libc.so.6?

The reason that I need to somehow become root without typing sudo is because error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory I used ...
Hao's user avatar
  • 227
10 votes
2 answers
52k views

libc.so.6: version `GLIBC_2.16' not found

When importing a library (cdms2) in python, I get the following error message: ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.16' not found (required by /usr/local/uvcdat/1.3.1/...
Bruno von Paris's user avatar
9 votes
2 answers
73k views

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

Please help me install glibc 2.32. Running 20.04.
Neo's user avatar
  • 135
9 votes
1 answer
2k 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 ...
lcfc's user avatar
  • 91
9 votes
2 answers
31k views

Compilation of m4 1.4.10 to 1.4.18 fails due to "Please port gnulib freadahead.c to your platform!" on Ubuntu 18.10

The building of tarball releases of GNU m4 1.4.10 to 1.4.18 (didn't test all hotfix versions, but I assume the error is consistent among this range) with ./configure && make -j1 and git git ...
Kalle Richter's user avatar
8 votes
1 answer
4k views

Ubuntu 22.04: Both eye of gnome and gimp failing with undefined symbol error

Since a few days both eog and gimp fail when launched from the command line. I get the same error message from both: gimp: symbol lookup error: /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so....
LearnDude's user avatar
8 votes
1 answer
49k 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 ...
A_reda97's user avatar
7 votes
1 answer
4k views

Why can't I compile GLIBC on Ubuntu 12.04?

I'm trying to compile the Linux From Scratch kernel, version 7.1 on Ubuntu 12.04, running inside of a virtualbox. I've worked through a part of the tutorial successfully, but when I reach Step 5.7: ...
Eagle's user avatar
  • 173
6 votes
1 answer
10k views

upgrading glibc to a version at least 2.17 or higher in ubuntu 12.04 LTS?

I need a newer version of glibc in my ubuntu version (precise, 12.04), but I don't seem to be able to go beyond version 2.15 using apt-get. I tried to compile it by myself but I almost destroyed my ...
Aba's user avatar
  • 85
5 votes
2 answers
52k views

GLIBCXX_3.4.15 not found

When I try to run Blender builds from Graphicall.org (11.04 Natty 64-bit), I get the following message: ./blender: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'GLIBCXX_3.4.15' not found (...
Anthony P's user avatar
5 votes
1 answer
6k views

How to enable RELRO support?

We have been trying to build a LFS system on 12.04 64-bit. In the configuration stage of glibc, I receive the error configure: error: linker with -z relro support required How can I enable the ...
Servet's user avatar
  • 63
5 votes
0 answers
26k views

GLIBC_2.27 not found Ubuntu 16.04

One of the software I want to run needs GLIBC_2.27, and all I see is this error on the console: /lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.27" not found When I run this command ldd --version ...
Deep's user avatar
  • 151
5 votes
0 answers
4k views

`GLIBC_2.28' not found in Ubuntu 16.04/14.04 in Travis

I have been using a binary to test in Travis, but it's been compiled with a new version of GLIBC apparently and now I get this all the time: perl6: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2....
jjmerelo's user avatar
  • 331
5 votes
0 answers
6k views

How can I get glibc as a static library?

I want to compile a program and statically link it to glibc, so it can run on other Linux distributions without the user having to do any special configuration. I tried using CFLAGS="-static -static-...
airsquared's user avatar
4 votes
3 answers
5k views

Which Ubuntu releases have fixes for CVE-2015-7547 ("Extremely Severe Bug" with libc getaddrinfo())? [duplicate]

Ars Technica posted an article describing the getaddrinfo() bug and how it is widespread in the Linux world. The vulnerability was introduced in 2008 in GNU C Library, a collection of open source ...
George's user avatar
  • 49
4 votes
2 answers
30k views

Compiling apib undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'

I want to compile apib on my ubuntu 13.04 box but I am having issues with pthread lib. This is the error that I get : $ colormake -j 5 cd src && make all make[1]: Entering directory `/home/...
Patryk's user avatar
  • 9,206
4 votes
1 answer
5k views

Compiling on Ubuntu 12.04 using older glibc version

I am doinng an Operating Systems course where we need to compile a program on Ubuntu 9.10. This program is not running as expected on laterer releases of Ubuntu (such as 12.04) My question is, how ...
jokop's user avatar
  • 41
4 votes
1 answer
6k 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 ...
user1785730's user avatar
4 votes
1 answer
1k views

Nmap service detection Segmentation fault (core dumped)

The Problem When I use nmap with the service detection flag(-sV) I get a Segmentation fault at the end of the scan. It doesn't matter which IP Address or domain, as long as it can scan it. I am using ...
MandiYang's user avatar
  • 2,059
4 votes
1 answer
7k views

GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

When trying to execute any c++ programs, I get this error. The full error message is: ./main: relocation error: ./main: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev, version ...
asharkdoctor's user avatar
4 votes
0 answers
14k views

What is the recommended way to install glibc 2.27 on Ubuntu 16.04? [duplicate]

I tried the following command, but it seems that the package was not found. $ sudo apt-get install libc-bin=2.27-3ubuntu1 Reading package lists... Done Building dependency tree Reading state ...
merlin2011's user avatar
4 votes
1 answer
19k views

GLIBC_PRIVATE not defined in file libc.so.6 [closed]

I am trying to run Rstudio. And it is just not working. It worked last week when I installed it for the first time, but now that I need to use it, it doesn't. I've been trying for 5 hours, so this is ...
user avatar
3 votes
2 answers
1k views

C Library Function Actual Implementation

I was wondering where I can find the actual C implementation of atoi() (or other such functions). I looked into stdlib.h but it seems like atoi is not implemented there. Is there a way to view the ...
ItM's user avatar
  • 233
3 votes
1 answer
22k 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 ...
nico_so's user avatar
  • 81
3 votes
1 answer
5k views

CVE-2015-0235 How to update eglibc to 2.15-0ubuntu10.10

I followed these instructions and found that my glibc version was 2.15-0ubuntu10.9. How do I update it to 2.15-0ubuntu10.10? It is also mentioned here that services have to be restarted after the ...
topher's user avatar
  • 348
3 votes
2 answers
32k views

Can't install glibc-2.19

Several times I tried to install the library glibc-2.19, but it always ended in an error. I followed the installation instructions but it didn't work. I'm trying to install glibc-2.19 on Ubuntu 13.10, ...
user272960's user avatar
3 votes
2 answers
71k views

How to install glibc-devel in ubuntu-12.04? [duplicate]

Possible Duplicate: How do I get the libc development libraries for Ubuntu 12.04? When I run the following command: sudo apt-get install glibc-devel I get the following error: E: Unable to ...
motiur's user avatar
  • 171
3 votes
1 answer
405 views

Systemd error after upgrading from 18.04 to 18.10

After upgrading from 18.04 to 18.10 i got the following error: systemd[1]: segfault at ffffffffffffffc0 ip 00007fe716b80184 sp 00007ffcc7f9cf88 error 5 in libc-2.28.so[7fe716af5000+171000] I reboot ...
Ricardo Jaimes's user avatar
3 votes
0 answers
1k views

Compile binary for older GLIBC?

I have a Ubuntu 16.04 Virtualbox instance that I can use to build an open source project (Grafana) that will later need to run on a Red Hat 4 box. When I run the executable I get a /lib64/libc.so.6:...
aiguy's user avatar
  • 131
3 votes
2 answers
17k views

DNS cannot resolve hosts

I recently upgraded my ubuntu and suddenly lost DNS. By the looks of it, its related to https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1674532. But I cannot run the update to fix the issue ...
dj1635's user avatar
  • 31
3 votes
0 answers
4k views

Undefined reference to `memcpy@GLIBC_2.14' : Building Android SDK with SmartCard API support:

I am trying to build Android emulator with SmartCard API support. I was following this manuals: one two All steps passed ok, but when I run: PCSC_INCPATH=<path_to_pcsc-lite_32bit>/src/PCSC/ ...
art_tykh's user avatar
2 votes
3 answers
26k views

How to view the list of c library functions?

I'm a newbie in Linux programming. I found that the way to view the list of system calls in Linux via command-line is: man syscalls But now I want to view the list of c library functions, how can I ...
user avatar
2 votes
1 answer
2k 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 ...
littleworth's user avatar
2 votes
1 answer
532 views

How to browse libc using info?

I'm using Ubuntu 16.04 and I have the build-essential package installed. When I use: info libc printf See: Invoking Info Following message shows up in the mini-buffer: No menu item 'libc' in node ...
spark's user avatar
  • 23
2 votes
1 answer
17k views

GLIBC => 2.5 Ubuntu 16.04

I'm running Ubuntu 16.04 LTS in a server environment, and a piece of backup software says it needs "On Linux, glibc 2.5 or higher is required." I've run ldd --version and get ldd (Ubuntu GLIBC 2.23-...
Chris353's user avatar
2 votes
1 answer
5k views

Kernel panic after attempting to install glibc

I was installing glibc v2.18 and suddenly the install (make install) halts with an error. Afterwards, any basic terminal commands (ls, sudo, etc.) and attempting to perform system operations (...
Alex Brooks's user avatar
2 votes
1 answer
2k views

error: ld-2.27.so in swift on Ubuntu 18.04

I installed swift on my ubuntu 18.04 and when i start i get this error. but the code works fine when i'm writing them, I search some solution to fix this error but the thing is that i will remove the ...
kim nicole sabordo's user avatar
2 votes
2 answers
12k views

updating glibc on Ubuntu 16.04.3 LTS

I'm trying to script an installation of geany and might be on my 20th failure (then like L'Hopital, I shall fail to fail). There's a lot of scripting involved, and I'm only halfway through addressing ...
Fred Flintstone's user avatar