Search Unity

Workaround for libssl issue on Ubuntu 22.04

Discussion in 'Linux' started by AlfieBooth, Apr 22, 2022.

  1. AlfieBooth

    AlfieBooth

    Joined:
    Dec 2, 2013
    Posts:
    31
    Hi all. If when opening the editor on the new LTS 22.04 you get the error 'No useable version of libssl' it's due to a change in the libssl version.
    The fix that worked for me was manually downloading the 'libssl1.0.0_1.0.2n-1ubuntu5.8_amd64.deb' package from http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/

    NOTE: download the right version for your architecture

    then, in the download location:
    sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.8_amd64.deb

    restart the unity editor and hopefully you're back in the game.
     
  2. bebeto135

    bebeto135

    Joined:
    Apr 24, 2022
    Posts:
    1
    Hi, I had the same problem and I fixed it. Additionally it can help to use the .NET 3.1 Version (just delete your current .net version and install the 3.1 one) and to delete your old libssl version.
    libssl 1.1.1 also works with Unity 2021.3.1f1.
     
  3. KevinWelton

    KevinWelton

    Joined:
    Jul 26, 2018
    Posts:
    239
    The issue right now is that we currently use .NET 5 in the Linux builds, which dynamically loads either OpenSSL 1.0 or 1.1. But Ubuntu 22.04 only includes OpenSSL 3.

    We are definitely aware of it and are considering a few solutions.
     
  4. Invector

    Invector

    Joined:
    Jun 23, 2015
    Posts:
    966
    Are guys able to install Plastic SCM on Ubuntu 22.04? It's currently the only issue that is preventing me from dropping Windows right now
     
  5. Deleted User

    Deleted User

    Guest

    Thanks a lot, Alfie.

    Before doing so, I also had to
    sudo apt install libssl-dev
    .

    So if another one of you is having trouble doing that, maybe that'll solve it.
     
  6. kibi_unity

    kibi_unity

    Joined:
    Dec 29, 2021
    Posts:
    6
    Sorry, just to add that I now have this problem on my Ubuntu 22.04 - I really would like some sort of fix asap!
     
  7. LevonRavel

    LevonRavel

    Joined:
    Feb 26, 2014
    Posts:
    179
    Here is a fix that will allow you to run the editor
    if your using i386 just replace the _amd64.deb with _i386.deb

    wget "http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb"
    wget "http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0-dev_1.0.2n-1ubuntu5.10_amd64.deb"
    sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb
    sudo dpkg -i libssl1.0-dev_1.0.2n-1ubuntu5.10_amd64.deb
     
    bajwaIF, HelenL, zenc90 and 6 others like this.
  8. kibi_unity

    kibi_unity

    Joined:
    Dec 29, 2021
    Posts:
    6
    Thank you! I am now on version 1.0.2
    And thank you for your service
     
  9. fjjoubert

    fjjoubert

    Joined:
    Oct 10, 2021
    Posts:
    3
    I just started getting this error out of the blue on Pop!_OS 22.04 LTS after working with Unity on Linux for over 4 months now.
     
    Metthatron and Drigster like this.
  10. Drigster

    Drigster

    Joined:
    May 9, 2020
    Posts:
    1
    Did you fix it?
     
    markmozza likes this.
  11. markmozza

    markmozza

    Joined:
    Oct 16, 2015
    Posts:
    86
  12. saint-jess

    saint-jess

    Joined:
    Sep 29, 2022
    Posts:
    1
  13. Wismgari

    Wismgari

    Joined:
    Mar 1, 2015
    Posts:
    4
    Still an issue, the Unity Hub doesn't even load on a fresh install of 22.04. Sits there with the Unity logo and a spinning circle beneath it doing nothing. No errors, no activity, no sign of life. If this was your first impression of Unity, it would not be a good one...

    Fortunately I've been using Unity on 22.04 for a few months now... so I knew it *should* work. The difference I now know, is that my old PC had been upgraded from 20.04- > 21.04 -> 21.10 -> 22.04 so it must have had older libs in place that Unity needs.

    On my fresh install of 22.04 and figuring it was the Hub that was at fault, I eventually realised I could install Unity without the Hub and going through the manual license activation got to my project with the libssl error in the editor. Finally, an actual error message! That lead me here and to the fixes above - thank you all!

    With the older libssl installed, the Hub actually loads.
     
    Skade88 likes this.
  14. maskedkni8

    maskedkni8

    Joined:
    Jan 27, 2018
    Posts:
    1
  15. ten_dlabaja

    ten_dlabaja

    Joined:
    Jul 11, 2021
    Posts:
    2
    What can I do when I'm running Fedora 36? Downgrading openssl to 1.1 would probably break my system. The log file looks like this: https://pastebin.com/26aud3ZM (I have a valid PRO license btw).
     
    Last edited: Oct 29, 2022
  16. ChiwTheNeko

    ChiwTheNeko

    Joined:
    Mar 24, 2022
    Posts:
    136
    I'm running Fedora 36 and I didn't have to do anything special to get the official Unity Hub package working.
     
  17. synasius

    synasius

    Joined:
    Nov 22, 2013
    Posts:
    8
    tokar_dev and riceqrispy like this.
  18. tomachinz

    tomachinz

    Joined:
    Mar 2, 2019
    Posts:
    15
    Daniyal03002608048 likes this.
  19. LevonRavel

    LevonRavel

    Joined:
    Feb 26, 2014
    Posts:
    179
    Your welcome :)
     
  20. zaid_mermam

    zaid_mermam

    Joined:
    Mar 13, 2020
    Posts:
    1

    thank you so much, this fix helped me and fixed the problem perfectly
    IMPORTANT NOTE:
    Do not install the .udeb version, install the .deb version that he mentioned based on your cpu arch
     
  21. arnoxar24

    arnoxar24

    Joined:
    Dec 19, 2022
    Posts:
    2
    thanks a lot...problem fixed
     
  22. festaumberto182

    festaumberto182

    Joined:
    Jan 13, 2016
    Posts:
    3
    this also worked for me on 22.04 LTS, thanks
     
  23. fargred

    fargred

    Joined:
    Jan 4, 2023
    Posts:
    1
    Hi everyone, I'm on 22.04.1 LTS and installing the older libssl package did not work for me unfortunately. The error persists and I'm out of ideas at this point, as most other online discussions about this problem lead back to this forum thread...
     
    Last edited: Jan 5, 2023
  24. LarsGavris

    LarsGavris

    Joined:
    Jul 14, 2022
    Posts:
    1
    I'm also running 22.04.1 LTS and the initial solution worked for me. Just make sure to not download the -dev version!
    At first I mistakenly downloaded libssl1.0-dev_1.0.2n-1ubuntu5.10_i386.deb which didn't solve my problem.
    Once I installed libssl1.0.0_1.0.2n-1ubuntu5.10_i386.deb, Unity was up and running!
     
    BlaqueC and MH_Robotics like this.
  25. jochoalions

    jochoalions

    Joined:
    Jan 8, 2023
    Posts:
    3
    I am having the same problem, and have followed the instructions listed above. In addition, I have done sudo apt-get check and sudo apt --fix-broken install both of which upgraded some packages and removed others. I am running on an Intel Processor, so I used the libssl1.0.0_1.0.2n-1ubuntu5.10_i386.deb but Unity Editor still reports "No usable version of libssl was found" error (on a beginner 3D template). Are there other ways in Ubuntu 22.04 to find out what is broken or what is missing?
     
  26. orentol

    orentol

    Joined:
    Feb 15, 2014
    Posts:
    1
    The problem doenst exist with Unity 2022.2.2.
    Works great on Ubuntu 22.04 with libssl3
    Unity 2021 doesnt work on same system because of libssl3
     
  27. AndyEdmondson

    AndyEdmondson

    Joined:
    Jan 19, 2023
    Posts:
    1
    Thank you! Installing 2022.2.0b works for me without messing about with libssl!
     
    josephsonsjoseph and orentol like this.
  28. DrAgOKira

    DrAgOKira

    Joined:
    Jan 28, 2023
    Posts:
    1
    ArtBIT likes this.
  29. mavinii

    mavinii

    Joined:
    Dec 13, 2022
    Posts:
    1
  30. tokar_dev

    tokar_dev

    Joined:
    Feb 1, 2017
    Posts:
    9
    Hi Linux Mint community!
    For editor version: 2021.3.16. Fixed by this answer. With .gpg keyring warning for Mint 21.1 but it's works anyway.
     
    rxmarccall likes this.
  31. odhariatirth

    odhariatirth

    Joined:
    Mar 5, 2023
    Posts:
    1
    Simply just open terminal and copy paste text below and it will solve libssl problem.
    echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
    sudo apt-get update
    sudo apt-get install libssl1.1
     
  32. DeflatedBadger

    DeflatedBadger

    Joined:
    Jun 14, 2018
    Posts:
    1

    Thanks mate, tried a bunch of fixes and no joy, but this got it working quick and easy!
     
    Chimango and Bastienre4 like this.
  33. unity_PrgRkS23TR7LuA

    unity_PrgRkS23TR7LuA

    Joined:
    Mar 23, 2023
    Posts:
    1
    what's the latest solution of it? because i don't want to downgrade my openssl.
     
    sfjohansson likes this.
  34. awesome1661

    awesome1661

    Joined:
    Dec 2, 2017
    Posts:
    1
    It is ridiculous that a year later this issue still exists. Upgrade to openssl3 Unity and make this problem go away.
     
    Ares2048 likes this.
  35. rsschatz01

    rsschatz01

    Joined:
    Mar 27, 2023
    Posts:
    1
    Thank you!!!
     
  36. Alvacodez

    Alvacodez

    Joined:
    Dec 2, 2022
    Posts:
    2
    on following the steps u had listed, i still get the error below

    Selecting previously unselected package libssl1.0-dev:amd64.
    dpkg: regarding libssl1.0-dev_1.0.2n-1ubuntu5.11_amd64.deb containing libssl1.0-dev:amd64:
    libssl1.0-dev conflicts with libssl-dev
    libssl-dev:amd64 (version 3.0.5-2ubuntu2.1) is present and installed.

    dpkg: error processing archive libssl1.0-dev_1.0.2n-1ubuntu5.11_amd64.deb (--install):
    conflicting packages - not installing libssl1.0-dev:amd64
    Errors were encountered while processing:
    libssl1.0-dev_1.0.2n-1ubuntu5.11_amd64.deb
     
  37. Alvacodez

    Alvacodez

    Joined:
    Dec 2, 2022
    Posts:
    2
    I also faced a similar challenge on ubuntu 22.04.1 LTS and i just simply ran the following cli commands at once


    sudo add-apt-repository ppa:rael-gc/rvm
    sudo apt-get update
    sudo apt install libssl1.0-dev

    make sure you are connected to the internet.
     
  38. Kahlis

    Kahlis

    Joined:
    Jan 14, 2017
    Posts:
    6
    Last edited: Apr 4, 2023
  39. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    985
    Chudroy, ntc-tor and Quetalasj like this.
  40. The-Real-Zap

    The-Real-Zap

    Joined:
    Jan 23, 2015
    Posts:
    7
    Wow, you wrote this on the date 22.04 :D
     
    AlfieBooth likes this.
  41. zhaoyuan_zeng

    zhaoyuan_zeng

    Joined:
    Jun 5, 2023
    Posts:
    2
    It really helps. Thank you!
     
  42. AlfieBooth

    AlfieBooth

    Joined:
    Dec 2, 2013
    Posts:
    31
    I wish that was intentional
     
  43. Goosejack

    Goosejack

    Joined:
    Apr 18, 2021
    Posts:
    1
    I'm having the same issue on Debian, but the only solutions listed here involve installing Ubuntu files. Is there a distribution-agnostic solution to 'No usable version of libssl was found'?
     
  44. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    985
    Ubuntu is the only distro official supported by a whole host of companies for client side software. From Unity, MS, Google, Chinese GPUs, etc.
    I would stick with Ubuntu for game dev situations for many reasons. Not just Unity.
     
  45. LevonRavel

    LevonRavel

    Joined:
    Feb 26, 2014
    Posts:
    179
    So today I decided to give Ubuntu 22.04 a try again and installed the unityhub 3.5.0, the hub just sits without opening or doing anything just a spinning wheel with a logo. I decided to try a few work arounds that are known of but still same issue, the fix for some reason if you never used the appimage you cannot agree to the terms and agreements..

    1 sudo apt remove unityhub
    2 sudo apt autoremove
    3 https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage
    4 right click that package /properties/permissions/allow exectuing file as program
    5 open up the terminal browse to the folder where that package lives and do ./UnityHub.AppImage
    6 you will be greeted with a nice agreement form agree
    7 close the console
    8.
    wget -qO - https://hub.unity3d.com/linux/keys/public | sudo apt-key add -
    sudo apt update
    sudo apt-get install unityhub
    unityhub

    be patient the spinner will still go but eventually it will open up to a site for you to log in then launch the rest of the application.
     
  46. lamberete

    lamberete

    Joined:
    Nov 9, 2023
    Posts:
    1
    I'm on Debian bookworm and I've managed to solve this by installing openssl1.1 from bullseye repositories.
    Here are the links for openssl and its libssl dependency:

    https://packages.debian.org/bullseye/openssl
    https://packages.debian.org/bullseye/amd64/libssl1.1

    Choose the ones for your architecture (will likely be amd64), and install them with
    sudo apt install [path to openssl file] [path to libssl file]

    (you must use paths, so if you are in the downloads folder, use ./filename for both files).

    Recomendation to Unity: you may solve this by adding openssl1.1 and libssl1.1 packages on your ubuntu/debian repository and make unityhub depend on them.
     
    Last edited: Nov 9, 2023
  47. bajwaIF

    bajwaIF

    Joined:
    Dec 8, 2020
    Posts:
    1
    thanks alot.... that worked for me
     
    LevonRavel likes this.