当我打开Unity并进行一些项目时,错误就会出现。找不到可用版本的libssl。

发布于 2025-01-25 23:46:39 字数 144 浏览 2 评论 0 原文

我是Linux Ubuntu的新手。我正在使用Ubuntu 22.04。最近,我下载了Unity,并显示错误“未找到Libssl的可用版本”如何解决此问题,请帮助我! 我试图找到解决这个问题的解决方案,但我什么也没发现。 (我正在使用Linux,而我是Linux的新手) 。

i am new to linux ubuntu . i am using ubuntu 22.04 . recently i downloaded unity and it is showing error " no usable version of libssl was found " How to fix this PLease help me !!
i tried to find solution for this problem and i found nothing .
( i am using linux and i am new to linux )
.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

另类 2025-02-01 23:46:39

您需要下载丢失的libssl库并安装它

$ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
$ sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb

You need to download the missing libssl library and install it

$ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
$ sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
乙白 2025-02-01 23:46:39

ubuntu


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

For Ubuntu


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

红墙和绿瓦 2025-02-01 23:46:39

此错误的原因在于不兼容的版本 在您的机器上打开SSL ,并且需要团结。 Ubuntu 22.04安装每个默认值打开SSL 3.0 ,但Linux的Unity当前使用 .net5 每个默认值,因此只能使用 打开SSL 1.0或1.1 < /strong>

要解决此问题,您需要将计算机上的开放式SSL降级到1.0或1.1。我从

我还从

Unity意识到此问题如See 在这里

编辑:我必须重新启动计算机以使错误消失。

The reason for this error lies in incompatible versions of Open ssl on your machine and needed from Unity. Ubuntu 22.04 installs Open ssl 3.0 per default but Unity for Linux currently uses .Net5 per default and therefore can only run with Open ssl 1.0 or 1.1.

To fix this, you need to downgrade your Open ssl on your machine to either 1.0 or 1.1. I tested 1.0.2 version from the link Jeff Chen commented below rainman's answer.

I also tested the wget method from this answer over on askubuntu just with the downloaded package and it worked like a charm for me.

Unity is aware of this problem as seen here.

Edit: I had to restart my computer for the error to disappear.

生来就爱笑 2025-02-01 23:46:39

您需要安装libssl1.1

# download package with wget
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb

# install package locally
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb

原始GIST帖子:

You need to install libssl1.1

# download package with wget
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb

# install package locally
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb

original gist post:

https://gist.github.com/joulgs/c8a85bb462f48ffc2044dd878ecaa786

零度° 2025-02-01 23:46:39

您必须安装OpenSSL 1.1

下载并按以下步骤安装:

wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
tar -xzvf openssl-1.1.1q.tar.gz
cd openssl-1.1.1q
sudo ./config
sudo make install 

openssl version -v 

我不确定,但是您也可以设置 ln

sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` 

如果收到此错误:

openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

使用此命令进行修复: ldconfig 安装后

You have to install the openssl 1.1

Download and Install it by the following steps:

wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
tar -xzvf openssl-1.1.1q.tar.gz
cd openssl-1.1.1q
sudo ./config
sudo make install 

openssl version -v 

I'm not sure but you can set ln too:

sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` 

and if you get this error:

openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

fix it with this command: ldconfig after install

很酷又爱笑 2025-02-01 23:46:39

统一2022.2.2存在问题。
与libssl3一起在Ubuntu 22.04上的运作良好
统一2021由于libssl3而无法在同一系统上工作

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

回忆那么伤 2025-02-01 23:46:39

我知道这个问题是关于Ubuntu的,但是仅适用于可能正在谷歌搜索的任何人...在RHEL / CENTOS / ROCKY上,您可以安装:

dnf install compat-openssl11

这将根据需要安装库,以兼容与不支持OpenSSL 3的旧版应用程序。

I know this question is about Ubuntu, but just for anyone who might be Googling... On RHEL / CentOS / Rocky you can install:

dnf install compat-openssl11

This will install just the libraries as needed for compatibility with legacy applications that do not support OpenSSL 3.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文