Apt-get is the command-line tool for handling packages, and may be considered the user's 'back-end' to other tools using the APT library. Several 'front-end' interfaces exist, such as synaptic and aptitude. This happens everytime I try to run apt-get or aptitude. I cannot update, remove, or install the glibc. Basically, I cannot do anything with the package managers at this point. Apt-get is the command-line tool for handling packages, and may be considered the user's 'back-end' to other tools using the APT library. Apt-get install is followed by one or more packages desired for installation or upgrading.
Active4 years, 9 months ago
I want to install glibc-devel package in Ubuntu 12.04. I am VM Ware work station in my project and this package is one of the dependency to build project image. I tried to find information on google about this package but didnt find any staisfactory answer.
Is this package not supported in Ubuntu 12.04? If not then what is the alternative package for it.
Any help on this will be useful.
Braiam54.1k2121 gold badges144144 silver badges230230 bronze badges
Tanuj SharmaTanuj Sharma
3 Answers
Community♦
Mike SteinertMike Steinert
If you just need the libc header files, install libc6-dev .
If you prefer to install on the command-line, you can use:
Apt Get Install Glibc Redhat
This is worth mentioning, as if you're using a compiler other than the version of GCC as provided by build-essential / gcc-defaults , you may want to just install the
libc6-dev
package.(Installing
build-essential
will work because it will cause libc6-dev
to be installed. libc6-dev
is what actually provides the header files that enable you to link against GNU libc.)Community♦
Eliah KaganEliah Kagan90.3k2323 gold badges250250 silver badges395395 bronze badges
I have the same issue, and I clone the
glibc
(GNU libc) source with the command:It runs fine for me.
0xC0000022L3,07255 gold badges4040 silver badges7171 bronze badges
zimmerzimmer
Not the answer you're looking for? Browse other questions tagged software-installation or ask your own question.
Active4 years, 1 month ago
I heard I can do it using apt-get install libc6, but I need to add something to /etc/apt/sources.list to receive the newest glibc version. What should I do?
antpetr89antpetr8949811 gold badge88 silver badges1414 bronze badges
3 Answers
I was able to install
libc6 2.17
in Debian Wheezy
by editing the recommendations in perror's answer:IMPORTANT
You need to exit out of your display manager by pressing CTRL-ALT-F1.Then you can stop x (
You need to exit out of your display manager by pressing CTRL-ALT-F1.Then you can stop x (
slim
) with sudo /etc/init.d/slim stop
![Apt-get install chrome linux mint Apt-get install chrome linux mint](/uploads/1/2/6/0/126075254/464999458.jpg)
(replace slim with
mdm
or lightdm
or whatever)Add the following line to the file
/etc/apt/sources.list
:deb http://ftp.debian.org/debian experimental main
Should be changed to:
deb http://ftp.debian.org/debian sid main
Then follow the rest of perror's post:
Update your package database:
apt-get update
Install the
eglibc
package:apt-get -t sid install libc6-amd64 libc6-dev libc6-dbg
IMPORTANT
After done updating
After done updating
libc6
, restart computer, and you should comment out or remove the sid source you just added (deb http://ftp.debian.org/debian sid main
), or else you risk upgrading your whole distro to sid.Hope this helps. It took me a while to figure out.
Community♦
0E 8000E 800
In fact you cannot do it easily right now (at the time I am writing this message). I will try to explain why.
First of all, the glibc is no more, it has been subsumed by the eglibc project. And, the Debian distribution switched to eglibc some time ago (see here and there and even on the glibc source package page). So, you should consider installing the eglibc package through this kind of command:
Replace
amd64
by the kind of architecture you want (look at the package list here).Unfortunately, the eglibc package version is only up to 2.13 in
unstable
and testing
. Only the experimental
is providing a 2.17 version of this library. So, if you really want to have it in 2.15 or more, you need to install the package from the experimental version (which is not recommended). Here are the steps to achieve as root:- Add the following line to the file
/etc/apt/sources.list
: - Update your package database:
- Install the eglibc package:
- Pray...
Well, that's all folks.
perrorperror4,8411313 gold badges4949 silver badges6666 bronze badges
Your script contains errors as well, for example if you have dos2unix installed your install works but if you don't like I did then it will fail with dependency issues.
I found this by accident as I was making a script file of this to give to my friend who is new to Linux and because I made the scripts on windows I directed him to install it, at the time I did not have dos2unix installed thus I got errors.
here is a copy of the script I made for your solution but have dos2unix installed.
this script has been tested on 3 machines with no errors.
blackice504blackice504
protected by Community♦Mar 27 '15 at 16:17
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?