Blog

Ubuntu 11.10 error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory

A quick solution is to install the libssl 0.9.8 package with the following command:

sudo apt-get install libssl0.9.8

Thanks to Rob who commented below and provided an answer on stackoverflow

I just upgraded from ubuntu 11.04 to 11.10 with a fresh install, by keeping my old home folder so not loosing my personal data, but only formatting the whole system partition. After reinstalling my most important development software I still couldn’t run django’s server. I kept getting the followering error:

error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
Also this error you will get: 
1python: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory

It seems this problem was because the virtualenv was still using the previous python libraries, which linked to a no longer there ssl package, what I did was create a new virtualenv and problem was solved. Anybody know a better way? Is there a way to update virtualenv to a new python version?

  • Rob

    Do you have exact steps to do this? I hit the same problem, but I’m new to Ubuntu, and it might take me a while to figure this out. I’m guessing a lot of people will hit the same problem.

    • http://samos-it.com Sam Stoelinga

      Hi Rob, when do you exactly hit the problem, because seems you can get it in a lot of different ways. Maybe you could try running this command as a simple fix: sudo apt-get install libssl0.9.8

  • http://www.maurer.me Andrew Maurer

    Thanks for this! Fixed my problem after the upgrade of Ubuntu 11.10. I ran the apt-get install

    • http://samos-it.com Sam Stoelinga

      Hehe glad it helped :) Thanks for confirming that one is working, will keep it in the beginning of the post, so people dont have to read a lot :P

  • xpress razor

    Thanks, it even solves desura and many game problems in ubuntu 12.04 beta 2

  • http://twitter.com/SuporteTecID Suporte TecnicoID

    all it is running fine in GNU/Lunux KDu-2.0-Alpha 6…..KDu is Ubuntu based 12.04 stable…..