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.

So I want now to upgrade it but I don't know how to do so. (I don't want to upgrade the whole system). I tried to find out which package contains glibc with apt-cache search glibc. But there are hundred of packages...

So does anybody know how to find out the package which I need to upgrade to get the new version of glibc?

  • 2
    did you try sudo apt-get update && sudo apt-get upgrade ? – j0h Feb 18 '16 at 12:09
  • 1
    Of course I know these automatically updates. But as I described in my question, I am searching for a way to find out which package includes glibc and needs to be upgraded. – eDeviser Feb 18 '16 at 14:01
  • 1
    glibc is the package. you could look at apt-cache search glibc then see glibc-source, and do apt-cache policy glibc-source which would tell your upgrade candidate version. Alternatively, you might mean libc6. – j0h Feb 18 '16 at 15:51

As j0h described, I was able to solve my problem. Here is what I have done:

  1. I read at Wikipedia about glibc. Glibc (better known as GNU C Library) has a fork for linux which is called libc6. Libc6 is available via apt.
  2. Run apt-get update to update the database.
  3. Use apt-cache policy libc6 to find out the installed version and the candidate version, whereas the installed version can be also shown with ldd --version.
  4. Install the new candidate version with apt-get install libc6
  5. Check the new version again by doing step 3 again to see your success.
  • Thanks for the answer! In step 4, it should be apt-get install libc6, I think it was a typo there. – packetie Feb 24 '16 at 3:08
  • 4
    if my candidate is the same as my current would that mean to move further beyond my glibc version it would necessitate an upgrading to ubuntu as a whole? – jxramos Jan 23 '20 at 21:27
  • @jxramos Yes this could be. Which version of Ubuntu are you running and did you perform the step number two? – eDeviser Jan 24 '20 at 22:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.