Installing the mentioned packages can break your system!
Those packages are not intended to be installed on a recent system.
This guide has more steps, but does not require installing incompatible packages to your system, which can cause serious problems.
The recommended way to use libssl1.1 is to unpack them to the game directory and modify the library search path with LD_LIBRARY_PATH.
Following steps are required to get stardew valley working on Ubuntu 20.10 (those steps should also work on other ubuntu/debian installaitons)
Go to the game data directory. The default path is:
$HOME/GOG Games/Stardew Valley/game
Bash:
cd "$HOME/GOG Games/Stardew Valley/game"
Download the udeb packages for libssl1.1 and libcrypto1.1:
Info about udeb:
https://wiki.debian.org/udeb
Code:
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/o/openssl/libssl1.1-udeb_1.1.0g-2ubuntu4_amd64.udeb
wget http://mirrors.edge.kernel.org/ubuntu/pool/main/o/openssl/libcrypto1.1-udeb_1.1.0g-2ubuntu4_amd64.udeb
After you have downloaded the udeb packages, the libraries must be extracted:
Code:
dpkg-deb -x libcrypto1.1-udeb_1.1.0g-2ubuntu4_amd64.udeb .
dpkg-deb -x libssl1.1-udeb_1.1.0g-2ubuntu4_amd64.udeb .
Edit the
StardewValley file, which is located in the game directory.
Bash:
gnome-text-editor StardewValley
Insert following line
AFTER #!/bin/bash
Bash:
#!/bin/bash
export LD_LIBRARY_PATH="$HOME/GOG Games/Stardew Valley/game/usr/lib"
Save the file and close the editor.
After this steps, Stardew Valley should start.