# Fail to clone when installing Pkg; Class: SSL

**URL:** <https://discourse.julialang.org/t/fail-to-clone-when-installing-pkg-class-ssl/21265>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [February 27, 2019, 1:54pm UTC](https://discourse.julialang.org/t/fail-to-clone-when-installing-pkg-class-ssl/21265 "2019-02-27T13:54:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nedlmf](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nedlmf](https://discourse.julialang.org/u/nedlmf)\
**Post date:** [February 27, 2019, 1:54pm UTC](https://discourse.julialang.org/t/fail-to-clone-when-installing-pkg-class-ssl/21265/1 "2019-02-27T13:54:49Z")

</div>

Hi Guys,

I am running a bit of a problem when installing packages on mac (OS 10.14.3).

This is what Julia returned after entering Pkg.add(“Gadfly”)

> **ERROR:** failed to clone from [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git), error: GitError(Code:ERROR, Class:SSL, unexpected return value from ssl handshake -9806)
> 
> Stacktrace:
> 
> [1] **pkgerror(** ::String **)** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:120**
> 
> [2] **#clone#3(** ::String, ::Base.Iterators.Pairs{Symbol,LibGit2.CachedCredentials,Tuple{Symbol},NamedTuple{(:credentials,),Tuple{LibGit2.CachedCredentials}}}, ::Function, ::String, ::String **)** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/GitTools.jl:111**
> 
> [3] **(::getfield(Pkg.GitTools, Symbol(“#kw##clone”)))(** ::NamedTuple{(:header, :credentials),Tuple{String,LibGit2.CachedCredentials}}, ::typeof(Pkg.GitTools.clone), ::String, ::String **)** at **./none:0**
> 
> [4] **(::getfield(Pkg.Types, Symbol(“##87#89”)))(** ::LibGit2.CachedCredentials **)** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:1103**
> 
> [5] **shred!(** ::getfield(Pkg.Types, Symbol(“##87#89”)), ::LibGit2.CachedCredentials **)** at **./secretbuffer.jl:184**
> 
> [6] **clone\_or\_cp\_registries(** ::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}, ::String **)** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:1102**
> 
> [7] **clone\_or\_cp\_registries** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:1087** [inlined]
> 
> [8] **clone\_default\_registries()** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:1037**
> 
> [9] **find\_registered!(** ::Pkg.Types.EnvCache, ::Array{String,1}, ::Array{Base.UUID,1} **)** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:1312**
> 
> [10] **registry\_resolve!(** ::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1} **)** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Types.jl:949**
> 
> [11] **#add\_or\_develop#15(** ::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1} **)** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:47**
> 
> [12] **#add\_or\_develop** at **./none:0** [inlined]
> 
> [13] **#add\_or\_develop#14** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:31** [inlined]
> 
> [14] **#add\_or\_develop** at **./none:0** [inlined]
> 
> [15] **#add\_or\_develop#13** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:29** [inlined]
> 
> [16] **#add\_or\_develop** at **./none:0** [inlined]
> 
> [17] **#add\_or\_develop#12(** ::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:mode,),Tuple{Symbol}}}, ::Function, ::String **)** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:28**
> 
> [18] **#add\_or\_develop** at **./none:0** [inlined]
> 
> [19] **#add#20** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:59** [inlined]
> 
> [20] **add(** ::String **)** at **/Users/osx/buildbot/slave/package\_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:59**
> 
> [21] top-level scope at **none:0**

This is the versioninfo()

Julia Version 1.1.0  
Commit 80516ca202 (2019-01-21 21:24 UTC)  
Platform Info:  
OS: macOS (x86\_64-apple-darwin14.5.0)  
CPU: Intel(R) Core™ i5-5257U CPU @ 2.70GHz  
WORD\_SIZE: 64  
LIBM: libopenlibm  
LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)

How should I fix this? Thank you very much!
