我使用 Digital Ocean 和 Ubuntu 24.04 (LTS) x64 droplet + 此脚本 https://github.com/Yenthe666/InstallScript/tree/17.0 安装时出现以下错误。如果我禁用外部-
我使用 Digital Ocean 和 Ubuntu 24.04 (LTS) x64 droplet + 此脚本 https://github.com/Yenthe666/InstallScript/tree/17.0
安装时出现以下错误。
如果我禁用外部管理环境,我会收到另一个有关 idna 3.6 的错误(请参阅下面的第二个错误)。
有谁能解决这个问题?
谢谢你!
---- Install python packages/requirements ----
error: externally-managed-environment
× This environment is externally managed
> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
IDDNA 错误
Installing collected packages: idna, greenlet, geoip2, ebaysdk, docutils, decorator, chardet, beautifulsoup4, Babel, zeep, vobject, reportlab, ofxparse, gevent, freezegun, cryptography, pyopenssl
Attempting uninstall: idna
Found existing installation: idna 3.6
ERROR: Cannot uninstall idna 3.6, RECORD file not found. Hint: The package was installed by debian.
我有一个连接到 SQL Server 数据库的 .NET Core 控制台应用程序。该应用程序在 Windows 上运行良好,但在 Ubuntu 上运行它时遇到 SSL/TLS 握手失败...
我有一个连接到 SQL Server 数据库的 .NET Core 控制台应用程序。该应用程序在 Windows 上运行良好,但在 Ubuntu 22.04 LTS VM 上运行它时遇到 SSL/TLS 握手失败。
class Program
{
static void Main()
{
var connectionString = "Data Source=DB*****;Initial Catalog=efdfdApi;User Id=useridd;Password=*****;Connect Timeout=30;Encrypt=false;TrustServerCertificate=true;Application Intent=ReadWrite;MultiSubnetFailover=false";
try
{
using (var connection = new SqlConnection(connectionString))
{
connection.Open();
Console.WriteLine("Connection successful!");
}
}
catch (Exception ex)
{
Console.WriteLine($"Connection failed: {ex.Message}");
}
}
}
问题 :当我
dotnet TestConnection.dll
在 Ubuntu VM 上执行时,出现以下错误:连接失败:已成功与服务器建立连接,但在登录前握手期间发生错误。(提供程序:SSL 提供程序,错误:31 - 加密(ssl/tls)握手失败)
附加信息 :
p5
p6
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.1" />
我用过这些
sudo apt-get 更新
sudo apt-get install -y libssl-dev ca-certificates libkrb5-dev
sudo apt-get 安装 openssl
sudo apt-get 更新
sudo apt-get install -y libssl-dev ca-certificates libkrb5-dev
sudo apt-get 安装 ca 证书
当从 Ubuntu 上的 .NET Core 连接到 SQL Server 时,我应该采取什么步骤来排除故障并解决此 SSL/TLS 握手失败?