I’ve lost like, 4 hours yesterday looking for a fix and would rather less people lose that same amount of time so here’s my findings.
It turns out Unity Hub is reliant on OpenSSL 1.1, an outdated library that I understand is no longer even available in 22.04 at all. Your choices are then either to install an old deb designed for an older version of Ubuntu (which I don’t recommend for obvious reasons) or to just compile the libraries from the official OpenSSL source as the following Stackoverflow thread explains gracefully.
For those who want the answer directly here, I’ll paste the message from Brandon Moretz, the original author of the fix, up to the point where it matters to us.
Get build tools:
sudo apt-get install build-essential checkinstall zlib1g-dev -y
Make working dir:
mkdir openssl-v1.1.1 && cd openssl-v1.1.1
Get Open SSL 1.1.1 latest version:
tar -xvzf openssl-1.1.1o.tar.gz
cd openssl-1.1.1o```
*Configure build:*
```chmod +x ./config
./config```
*Build it (j = ncores)*
```make -j 4```
*Test it:*
```make test```
*If everything works, move the libs to your local lib.*
```sudo mv libssl.so.1.1 /usr/lib/x86_64-linux-gnu/
sudo mv libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/```