Home > Linux/Unix, Open-Source > How-To Fix libstdc++5 Dependency Problem in Ubuntu 9.10

How-To Fix libstdc++5 Dependency Problem in Ubuntu 9.10


Upon upgrading to Ubuntu 9.10 I noticed that some applications won’t run any more and the problem was apparently related to the dependency library libstdc++5. This library was deprecated and libstdc++6 was used instead. It appeared that the removal of this library wasn’t wise, and it was reported as a bug which can be found here. You might see an Error Message like this when try to run an application depends on the missing library:

Error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

To me, the packages that were affected are:

  • Thunderbird (downloaded from Mozilla website)
  • GWT (Google Web Toolkit) in the Hosted Browser mode

A workaround of this bug has been put in place. Mine is almost similar:
Since libstdc++5 was discontinued in Ubuntu 9.10 (Karmic Koala) then we need to download the Ubuntu 9.04 (Jaunty Jackalope) package.

Note: You will need the i386 package if you use Ubunut_i386, and you will need both i386 & amd64 packages if you use the Ubuntu_amd64 as there are i386 applications run under the amd64 architecture!

For Ubuntu 9.10 i386

Download the i386 Jaunty libstdc++5 package.
and simply install it by double click on it, or through the command line you can run this:

sudo dpkg -i libstdc++5_3.3.6-17ubuntu1_i386.deb

For Ubuntu 9.10 amd64

As I said before we need to download both the i386 & amd64 packages:

The amd64 package:

as simple as we did for Ubuntu_i386.
Download the amd64 Jaunty libstdc++5 package.
and simply install it by double click on it, or through the command line you can run this:

sudo dpkg -i libstdc++5_3.3.6-17ubuntu1_amd64.deb

The i386 package:

Download the i386 Jaunty libstdc++5 package.
Here, we need to extract the libstdc++5 library ourself as this deb package is an i386 one. So, if you try to double click on it or install from the command line it will give you an error message “Wrong architecture ‘i386′”
The way to solve this is to extract the libraries yourself and place them in the correct directory. Starting from the director where the package has been downloaded to, run the following:

sudo dpkg-deb -x libstdc++5_3.3.6-17ubuntu1_i386.deb ./tmp
sudo cp ./tmp/usr/lib/* /usr/lib32/

Up to here, this must solve your problem with the libstdc++5. Stick with it till Ubuntu community find a solution for this bug.
Good luck!

About these ads
Categories: Linux/Unix, Open-Source Tags:
  1. Sebastian
    December 2, 2009 at 7:37 pm

    Useful entry, thanks! I just wanted to let you know that there is an asterisk missing in your last command, it should be:

    $sudo cp ./tmp/usr/lib/* /usr/lib32/

    Take care

    • Husain Al-Khamis
      December 2, 2009 at 8:10 pm

      Sebastian, I appreciate your comment, and thanks for pointing to that mistake. I should have copied it from the command line instead of writing it here directly.

      Post has been updated!

      Husain

  2. Lukas
    December 3, 2009 at 7:56 pm

    Helped a lot. Thanks!

    • Husain Al-Khamis
      December 3, 2009 at 8:18 pm

      Lukas,
      glad that it helped a lot!
      you are welcome.

      Husain

  3. Chris
    December 3, 2009 at 8:53 pm

    Thanks! This problem was driving me crazy. Very clean instructions on the fix as well.

    • Husain Al-Khamis
      December 3, 2009 at 10:51 pm

      Chris,
      Thanks for your comment.
      I know it was a pain. Imagine that most non-ubuntu applications were affected by this as claimed by somebody!

      More helpful tips are coming!

      Husain

  4. Apteryx
    December 7, 2009 at 2:34 am

    You can also use the --force-architecture option to force the installation of the i386 package on 64bits architecture! Thanks you for this post. It helped me resolve an issue.

    sudo dpkg -i --force-architecture package_name.deb

    • Husain Al-Khamis
      December 7, 2009 at 3:43 am

      Apteryx,

      I’ve tried your way. I admit that yours is better!
      It’s straight forward.

      You know sometimes we need a solution for certain issues as fast as possible and we don’t pay attention for resolving it in the efficient way!

      Thanks for your comment and helpful tip

      Husain

  5. Apteryx
    December 7, 2009 at 2:36 am

    beware.. the double hyphen gets reduced to a single one on wordpress… the option must be prededed by two hyphens to work!

    • Husain Al-Khamis
      December 7, 2009 at 3:49 am

      Well, thanks for that, too!

    • Husain Al-Khamis
      December 7, 2009 at 4:05 am

      The funny thing is that even the double hyphen didn’t work.
      I had to use the HTML Entity Code –> -

  6. Roberto
    December 13, 2009 at 4:04 am

    Thanks a lot!
    It is exactly what I need!

    • Husain Al-Khamis
      December 13, 2009 at 6:43 am

      Any time, dude!

      Husain

  7. Morgan the Gold
    December 15, 2009 at 8:04 pm

    ubuntu 9.10 x64
    ok i installed it with the package manager

    m@ako:~/BOINC/projects/qah.uni-muenster.de$ ldd Amolqc-preRC1-501	linux-gate.so.1 =>  (0xf77b7000)
    	libdl.so.2 => /lib32/libdl.so.2 (0xf7799000)
    	libnsl.so.1 => /lib32/libnsl.so.1 (0xf7782000)
    	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7763000)
    	libstdc++.so.5 => not found
    	libpthread.so.0 => /lib32/libpthread.so.0 (0xf774a000)
    	libm.so.6 => /lib32/libm.so.6 (0xf7724000)
    	libc.so.6 => /lib32/libc.so.6 (0xf75e0000)
    	/lib/ld-linux.so.2 (0xf77b8000)

    I am guessing that it wants the 32bit version ? unfortunately I am too thick to get from

    sudo dpkg -i --force-architecture package_name.deb

    to anything that doesn’t produce errors, can You please help Me by translating that into actual code ?

    • Husain Al-Khamis
      December 15, 2009 at 9:10 pm

      Yes you are right, it needs the 32bit libstdc++5. OK, to make it straightforward for you:

      Download: libstdc++5_3.3.6-17ubuntu1_i386.deb

      starting from the directory you downloaded that package on run the above command by replacing the ‘package_name.deb’ with ‘libstdc++5_3.3.6-17ubuntu1_i386.deb’

      So, it will be:

      sudo dpkg -i --force-architecture libstdc++5_3.3.6-17ubuntu1_i386.deb

      That should work with you immediately!
      Good luck!

      Husain

  8. Morgan the Gold
    December 16, 2009 at 10:44 am

    Groovy that hit the spot :D
    Thankz eh !

  9. Jose Maria
    December 31, 2009 at 9:34 pm

    thanks happy 2010

    • Husain Al-Khamis
      January 1, 2010 at 1:36 am

      Any time! :)

  10. January 4, 2010 at 2:16 pm

    Props!!

    This is way easier then poluting your system with that ubuntuzilla project :)

    Tx & Grtz

    Gerard.

  11. AC
    January 9, 2010 at 9:26 am

    Awesome! I couldn’t install Coldfusion 9 without this fix! Thanks!

  12. valmaudib
    January 20, 2010 at 4:47 pm

    great job, thanks!

  13. January 30, 2010 at 3:08 pm

    Thanks man! This is a life-saver! :)

    • Husain Al-Khamis
      January 31, 2010 at 9:41 am

      Welcome man! ;)

  14. Matt Gately
    February 3, 2010 at 11:40 pm

    Thanks. That worked perfectly after nearly 2 days messing with different live CDs and different packages on Ubuntu.

    Caution: I had to take the “–force-architecture” route because for some reason it didn’t work the other way. It still showed the library files as missing. I believe it had to do with the fact that I had already tried to install generic debian packages for the libsctdc++5 libraries and they needed to be replaced in the correct manner by the dpkg utility.

    • Matt Gately
      February 3, 2010 at 11:45 pm

      Actually, it seems that there might have been a typo on my part when I manually copied the library files over. Forget my last post.

      • Husain Al-Khamis
        February 4, 2010 at 3:56 pm

        Matt,

        I’m so glad that this post has helped you resolve your issue, and I would like to thank you very much for sharing what you have experienced during this fix.

        Your comments mean a lot to me as the first one would help improve the post if what you faced was true, and the second one confirms that everything went smoothly afterwards!

        Thanks a lot.

  15. Tors
    February 4, 2010 at 2:53 pm

    Thank you, much joyfulness!

    • Husain Al-Khamis
      February 4, 2010 at 3:58 pm

      You are very welcome.

  16. YaKillaCJ
    February 13, 2010 at 3:16 am

    Thanx alot. I couldnt install RealVNC Enterprise 4.5 on Ubuntu Karmic because of this lil error. Quit and easy fix. ^_^

    • Husain Al-Khamis
      February 13, 2010 at 8:05 pm

      Any time dude.
      Thanks!

  17. Darrell
    February 15, 2010 at 4:11 am

    This is great. Thank you very much for posting this.

    • Husain Al-Khamis
      February 15, 2010 at 8:21 am

      Yep man.
      My pleasure!

  18. eimis
    February 15, 2010 at 12:43 pm

    Thanks! Solved my problem instantly!

  19. davidrobertlewis
    March 9, 2010 at 1:44 pm

    Hi Husain, you don’t perhaps know how to fix a libstdc++.so.6 problem? My system is having a versioning crisis after I tried to do this on my own. Wish I had seen this tutorial earlier. Now have major problems with my system – nothing runs, apt-get is refusing to do anything. I have a thread on ubuntu forum here http://ubuntuforums.org/showthread.php?t=1425470

    Would appreciate if you could take a look when you have the time. Thanks

  20. davidrobertlewis
    March 9, 2010 at 10:17 pm

    My Karmic has GCC 4.4.1, wondering which package I need to download to fix the problem?

  21. davidrobertlewis
    March 9, 2010 at 10:41 pm

    http://mirrors.kernel.org/ubuntu/pool/main/g/gcc-4.4/libstdc++6_4.4.1-4ubuntu9_i386.deb did it for me, thanks for being there, I guess, just the idea that somebody else did it too.

    • Husain Al-Khamis
      March 10, 2010 at 11:55 am

      Hi David,

      I’ve been away for sometime. So, I guess your problem has been solved!
      I can see from the error msg you posted in the Ubuntu Forum that your libstdc++6 was corrupted by somehow!
      So, Installing the libstdc++6 library again, as you did, must have solved the problem.
      Glad you solved your problem!

      Good luck.

  22. shak
    March 16, 2010 at 9:48 pm

    Husain,

    Thank you for the good info! I used this to fix my problem installing intel fortran compiler on 9.10.

    All the best,

    Shak

    • Husain Al-Khamis
      March 16, 2010 at 10:43 pm

      All the best for you, too :)
      Thanks a lot.

  23. dodi
    March 17, 2010 at 6:49 am

    wow…
    i solved my xlite installation problem with this nice article…
    helped me a lot…
    thank you…

    rgds//dodi

    • Husain Al-Khamis
      March 17, 2010 at 7:14 am

      Great Dodi :)

      Wondering about X-Lite, how do you compare it with Ekiga?
      Although, Ekiga is buggy right now!

      • dodi
        March 17, 2010 at 8:35 am

        i’ve used both x-lite and ekiga, but i haven’t compare it apple to apple..
        they both are good softphone.. maybe i’ll compare it soon & inform u then..

  24. Husain Al-Khamis
    March 17, 2010 at 5:41 pm

    That’s very kind of you..
    Thank you very much ;)

  25. April 14, 2010 at 5:57 pm

    Thanks a lot, I have some problems updating to 9.10 from 9.04 and this problems is the major pain…

    • Husain Al-Khamis
      April 15, 2010 at 5:48 pm

      Indeed it is..
      Good luck!

  26. e romana
    May 13, 2010 at 10:12 am

    Restored libstdc++5 on my 64b ubuntu 9.10 system seamlessly

    Thanks !!

    Intel Fortran started working again !

    • Husain Al-Khamis
      May 17, 2010 at 9:23 pm

      Glad that the post has helped..

  27. June 4, 2010 at 2:44 pm

    I use many Rebol programmes. None worked on lucid. Your fix fixed everything. Many thanks.

    • Husain Al-Khamis
      June 4, 2010 at 8:55 pm

      No problem!!
      I’m wondering what Rebol Programs are??

  28. June 5, 2010 at 8:52 am

    Ouote: “REBOL (Relative Expression Based Object Language, pronounced /ˈrɛbəl/ REB-əl) is a cross-platform data exchange language and a multi-paradigm dynamic programming language originally designed by Carl Sassenrath for network communications and distributed computing.” (from: http://en.wikipedia.org/wiki/REBOL).

    Visit http://rebol.com/

    I am an old Reboler. As languages go I love it. If I had not figured out, with your help I might add, how to get Rebol working on Ubuntu, I would have downgraded to the last version of Ubuntu that I could get Rebol working on and started looking for a different linux distro from there. Not being able to use Rebol is not an option. Especially as I have the Rebol SDK (Software Development Kit). I have always said, Rebol is what all computer languages should be like (IMHO).

  29. June 17, 2010 at 5:38 am

    Thanks for this help …

  30. June 17, 2010 at 5:38 am

    I REALLY APPRECIATE

  31. August 2, 2010 at 5:41 am

    Nice information, really helpfull for me(for xlite),,,

    regards, shezars

    • Husain Al-Khamis
      August 2, 2010 at 10:12 am

      Thanks a lot :)

  32. August 17, 2010 at 4:59 am

    Thank you for this valuable solution
    I love Ubunto

    • Husain Al-Khamis
      August 17, 2010 at 5:06 am

      You are welcome!
      BTW, I love Java!

      Great forum you have there…

  33. aman
    October 13, 2010 at 6:29 pm

    jeevan@ubuntu:~ dpkg-deb -x libstdc++5_3.3.6-17ubuntu1_i386.deb ./tmp
    dpkg-deb: failed to read archive `libstdc++5_3.3.6-17ubuntu1_i386.deb': No such file or directory

  34. Husain Al-Khamis
    October 14, 2010 at 8:16 pm

    Aman,

    make sure that you downloaded the right package and that it exists in the directory you are on!!
    Also, you will need root privileges to run the command, i.e. ‘sudo’

  35. Arend van der Kolk
    October 23, 2010 at 8:04 pm

    Hi Husain,

    good posts, it started OK finally. I owe you a beer if you visit Amsterdam.

    Arend

  36. pradeep
    October 26, 2010 at 7:47 pm

    Thanks a lot dude.. It helped a lot…

  37. January 28, 2011 at 5:43 am

    Simply, admirable what you have carried out here. It’s pleasing to appear you express in the heart as well as your clarity with this substantial content material could be effortlessly looked. Exceptional post and can appear toward your future update.

    • February 10, 2011 at 2:59 am

      Mellie, I appreciate your great words about this post!
      Thank you soooo much :)

  38. vikaswalia1984@gmail.com
    May 10, 2011 at 1:44 am

    Gr8 it worked fine,
    Nice post.
    Thanks

  39. Kevin
    March 26, 2013 at 3:19 am

    Hi Husain, I was wondering if you had messed with this libstdc5++ problem since 13.04 came into development… I have been able to run Grid Wars 2 on my 64bit octacore, but it’s VERY laggy and eventually force-closes. Is there anything that you would suggest to fix this problem? I’m using a Radeon 7970 GDDR5 512GB video card, so I know that this is not the problem. I’m convinced it has something to do with the libraries.

  1. December 2, 2009 at 2:07 am
  2. December 26, 2009 at 3:36 pm
  3. May 6, 2010 at 10:06 pm
  4. June 4, 2010 at 11:01 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: