Can't play Baldurs Gate II (libssl.so.1.0.0)

I installed BG2 from the Lutris GOG installer. I tried to play it, and it fails because it can’t find libssl.so.1.0.0. After reading some similar issues, I used Linux Installer to install libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb from here: Index of /ubuntu/pool/main/o/openssl1.0

This didn’t resolve the issue. Anyone know how to resolve the issue or some things i could try?

Is this a bug with BG2 or lutris?

./BaldursGateII: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

It looks like the Lutris script does not include a workaround for the reliance of BG2:EE on an obsolete OpenSSL library.

What you could do is fetch openssl_1.0.0.tar.xz from Index of /resources/openssl/, extract x86_64/libssl.so.1.0.0 and x86_64/libcrypto.so.1.0.0 from this archive, then run the game with:

LD_LIBRARY_PATH="/path/to/directory-including-libraries" ./BaldursGateII

This should probably be included directly into the actions of the Lutris script, but I don’t know Lutris well enough to submit a patch.

1 Like

Alterative

Link from : 1.0.2n-1ubuntu5.3 : libssl1.0.0 : amd64 : Bionic (18.04) : Ubuntu

$ wget https://launchpadlibrarian.net/413030694/libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb
$ sudo apt install ./libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb

But right : must be in Lutris installer

Edit : https link

1 Like

If you have to download libraries from the web, don’t do it from any other site, do it from sites you trust.

Edit: additional note: the security.ubuntu.com URL is an http URL and thus, not secure. So we can not easily verify if this site is actually owned by Canonical.

If you want to avoid downloading random libs from the web, it might be useful to look on your own machine first. For instance, if you have steam installed then you have Linux runtimes installed. And these have many of the old libs which older games need.

For libssl, these are located here:

/home/tfk/.local/share/Steam/ubuntu12_32/steam-runtime/lib/i386-linux-gnu/libssl.so.1.0.0
/home/tfk/.local/share/Steam/ubuntu12_32/steam-runtime/lib/x86_64-linux-gnu/libssl.so.1.0.0

I always copy the so file itself to the game’s directory. Most games have a local lib directory, so there is where I put it. Some of those libs are links and the actual so lib is somewhere else, so I double check if I actually have the lib.

If the game has a lib directory, then it might not even be necessary to set the LD_LIBRARY_PATH variable.

1 Like

You’re totally right about link . I update for a https link. https://launchpadlibrarian.net/

Else : still needed in the script, i don’t have this steam-runtime personally.

A README file is included under the URL I shared, explaining what are the provided library builds: https://downloads.dotslashplay.it/resources/openssl/README.

Of course anyone should feel free to rebuild these themselves if they do not trust what we share with ./play.it. But let’s keep in mind that several Linux distributions decided to trust us: play.it package versions - Repology

The point of my post was to create a bit of awareness so that people know what they are doing. And how to determine if a link is to be trusted or not. My advise would always be to use a distro’s repository as this is an extra layer of security. If it is in a repository then an extra set of eyes have seen it.

Remember, for people coming from Windows this downloading stuff from random websites is what they are used to. This is a classic target for social engineering attacks.

@vv222 If you are trusted by various distro’s then make sure that you have a package in the repositories. Let the system work in all our favor.

And you are right to do it, especially when it is to give warnings about installing outdated, unmaintained libraries related to security.

The Repology link I shared above is a list of distros providing packages for ./play.it :wink:

1 Like

Note when i installed Balders Gate II, I didn’t use a script and it worked fine. Might work better just installing the exe.

Most of the scripts on Lutris are woefully out of date. With that said, open them up if you have problems and look how they did workarounds.

Note that the GE Wine Runners will solve 95% of all problems with all games. Run those for most runners.

This thread is about the native Linux build of Baldur’s Gate 2 Enhanced Edition, not the Windows build.