Paket
Paket copied to clipboard
SSL issue on Ubuntu 22.04?
dotnet paket install crashes with an SSL error.
$ dotnet paket install
Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
Resolving dependency graph...
Total time taken: 706 milliseconds
Paket failed with
-> Unable to retrieve package versions for 'Microsoft.NetCore.App.Ref'
-- CLOSED --
-- OPEN ----
Microsoft.NetCore.App.Ref (from /home/njlr/Documents/proj/paket.dependencies)
Microsoft.AspNetCore.App.Ref (from /home/njlr/Documents/proj/paket.dependencies)
FSharp.Core (from /home/njlr/Documents/proj/paket.dependencies)
Amazon.Lambda.Core (from /home/njlr/Documents/proj/paket.dependencies)
Amazon.Lambda.RuntimeSupport (from /home/njlr/Documents/proj/paket.dependencies)
-> Could not load resources from 'https://api.nuget.org/v3/index.json'
-> Request to 'https://api.nuget.org/v3/index.json' failed with unknown error (_safeGetFromUrl)
-> HttpRequestException: The SSL connection could not be established, see inner exception.
-> AuthenticationException: Authentication failed, see inner exception.
-> TypeInitializationException: The type initializer for 'SslMethods' threw an exception.
-> TypeInitializationException: The type initializer for 'Ssl' threw an exception.
-> TypeInitializationException: The type initializer for 'SslInitializer' threw an exception.
-> OpenSslCryptographicException: error:0E076071:configuration file routines:MODULE_RUN:unknown module name
paket.dependencies
source https://api.nuget.org/v3/index.json
storage: none
framework: net6.0, netstandard2.1
nuget Microsoft.NetCore.App.Ref
nuget Microsoft.AspNetCore.App.Ref
nuget FSharp.Core
nuget Amazon.Lambda.Core
nuget Amazon.Lambda.RuntimeSupport
System info:
$ dotnet --version
6.0.301
$ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
This appears to have solved it: https://stackoverflow.com/a/72137669/1256041
I guess this is a .NET issue rather than a Paket one?
I have the same system info as you but got
Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
Resolving dependency graph...
No usable version of libssl was found
Got around it by installing libssl1.0 from here.