You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Orange PI 3 LTS上.NET 5 arm64运行时libssl可用版本缺失问题

解决.NET 5在Ubuntu 22.04上启动时的libssl版本不兼容问题

问题原因

Ubuntu 22.04 LTS默认预装OpenSSL 3.0版本,但.NET 5.0运行时仅支持OpenSSL 1.1.x系列,版本不匹配导致启动时提示找不到可用的libssl库。

解决方案

1. 安装OpenSSL 1.1.x版本

执行以下命令安装兼容版本的libssl:

apt update && apt install libssl1.1

安装完成后验证版本:

openssl version

输出应显示类似OpenSSL 1.1.1n 15 Mar 2022的内容。

2. 配置.NET运行时指向OpenSSL 1.1(可选,若安装后仍报错)

临时生效:

export LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/libssl.so.1.1:/usr/lib/aarch64-linux-gnu/libcrypto.so.1.1:$LD_LIBRARY_PATH
export SSL_CERT_FILE=/usr/lib/ssl/cert.pem

永久生效:将上述两行添加到/etc/profile或用户目录下的~/.bashrc文件中,执行source /etc/profile(全局生效)或source ~/.bashrc(当前用户生效)使配置生效。

3. 重新启动.NET应用

执行启动命令:

dotnet "/opt/Services/Example/Example.WebApi.dll"

内容的提问来源于stack exchange,提问作者Roman

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 00:05:26