Skip to content

SSL issue on Ubuntu 22.04? #4166

Open
Open

Agent suggestions

Public preview

Description

@njlr

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

Activity

  1. changed the title [-]SSL Issue on Ubuntu 22.04?[/-] [+]SSL issue on Ubuntu 22.04?[/+] on Jul 11, 2022
  2. njlr commented on Jul 11, 2022

    @njlr
    Author

    This appears to have solved it: https://stackoverflow.com/a/72137669/1256041

    I guess this is a .NET issue rather than a Paket one?

  3. hyazinthh commented on Jul 12, 2022

    @hyazinthh

    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.

  4. 64J0 commented on Sep 3, 2024

    @64J0

    I'm having this same problem of No usable version of libssl was found using Ubuntu 24.04.

  5. 64J0 commented on Oct 9, 2024

    @64J0

    Got this error now:

    -> 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
    

    Related issues:

  6. Thorium commented on Jan 15, 2025

    @Thorium
    Member

    Hi, did you find anything? E.g. TypeProvider SDK build works with Windows but Ubuntu crashes on
    No usable version of libssl was found:
    https://github.com/fsprojects/FSharp.TypeProviders.SDK/actions/runs/12778200278/job/35620537312
    Trying to install the libssl manually to CI, it says: libssl-dev is already the newest version (3.0.13-0ubuntu3.4).

    Edit: This seems to be an issue with ubuntu-latest; however, hard-coding to version ubuntu-22.04 seems to help.

  7. gretmn102 commented on Nov 8, 2026

    @gretmn102

    Try use:

    OPENSSL_CONF=/dev/null dotnet paket install

    It helped me as a temporary solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions