# Pkg.update() throws an error

**URL:** <https://discourse.julialang.org/t/pkg-update-throws-an-error/10797>\
**Category:** General Usage\
**Created:** [May 9, 2018, 1:16pm UTC](https://discourse.julialang.org/t/pkg-update-throws-an-error/10797 "2018-05-09T13:16:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philippe\_Maincon1](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Post date:** [May 9, 2018, 1:16pm UTC](https://discourse.julialang.org/t/pkg-update-throws-an-error/10797/1 "2018-05-09T13:16:45Z")

</div>

Hi,

In Julia 0.6, I type  
`Pkg.update()`  
which is the usual procedure to update all my packages. But this time, it throws an error:

```julia
INFO: Updating METADATA...
METADATA cannot be updated. Resolve problems manually in C:\Users\philippem\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\METADATA.
GitError(Code:ECERTIFICATE, Class:OS, user cancelled certificate check: )
macro expansion at .\libgit2\error.jl:99 [inlined]
#fetch#41(::Base.LibGit2.FetchOptions, ::String, ::Function, ::Base.LibGit2.GitRemote, ::Array{AbstractString,1}) at .\libgit2\remote.jl:226
(::Base.LibGit2.#kw##fetch)(::Array{Any,1}, ::Base.LibGit2.#fetch, ::Base.LibGit2.GitRemote, ::Array{AbstractString,1}) at .\<missing>:0
#fetch#84(::String, ::String, ::Array{AbstractString,1}, ::Nullable{Base.LibGit2.AbstractCredentials}, ::Function, ::Base.LibGit2.GitRepo) at .\libgit2\libgit2.jl:312
(::Base.Pkg.Entry.##33#39)(::Base.LibGit2.GitRepo) at .\pkg\entry.jl:371
with(::Base.Pkg.Entry.##33#39, ::Base.LibGit2.GitRepo) at .\libgit2\types.jl:608
update(::String, ::Set{String}) at .\pkg\entry.jl:354
(::Base.Pkg.Dir.##3#6{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}})() at .\pkg\dir.jl:33
cd(::Base.Pkg.Dir.##3#6{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}}, ::String) at .\file.jl:59
withenv(::Base.Pkg.Dir.##2#5{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}},String}, ::Pair{String,String}, ::Vararg{Pair{String,String},N} where N) at .\env.jl:157
#cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N} where N) at .\pkg\dir.jl:32
update() at .\pkg\pkg.jl:228
include_string(::String, ::String) at .\loading.jl:515
eval(::Module, ::Any) at .\boot.jl:235
(::Atom.##61#64)() at C:\Users\philippem\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\Atom\src\eval.jl:102
withpath(::Atom.##61#64, ::Void) at C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Users\philippem\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\CodeTools\src\utils.jl:30
withpath(::Function, ::Void) at C:\Users\philippem\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\Atom\src\eval.jl:38
macro expansion at C:\Users\philippem\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\Atom\src\eval.jl:101 [inlined]
(::Atom.##60#63{Dict{String,Any}})() at .\task.jl:80
in update at base\pkg\pkg.jl:228
in #cd#1 at base\pkg\dir.jl:32
in withenv at base\env.jl:157
in cd at base\file.jl:59
in #3 at base\pkg\dir.jl:33
in update at base\pkg\entry.jl:354
in with at base\libgit2\types.jl:608
in #33 at base\pkg\entry.jl:378

```

… and I am baffled about what I can do to fix this. Any good suggestions?

🙂

Philippe

---

<div class="post-metadata">

**Author:** ![Philippe\_Maincon1](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Post date:** [May 14, 2018, 1:16pm UTC](https://discourse.julialang.org/t/pkg-update-throws-an-error/10797/2 "2018-05-14T13:16:14Z")

</div>

Dear Philippe,

Since nobody seems to be in a position to help, here is the solution. Enjoy!

Philippe

> [@Errors for Git / Pkg](https://discourse.julialang.org/t/errors-for-git-pkg/9351):
>
> There have been various reports of issues running package operations recently. They manifest as one of the following messages on running any package operations, such as Pkg.init or Pkg.add: ERROR: GitError(Code:ERROR, Class:Net, SSL error: error:1407742E:SSL routines:SSL23\_GET\_SERVER\_HELLO:tlsv1 alert protocol version) or ERROR: GitError(Code:ECERTIFICATE, Class:OS, user cancelled certificate check: ) This is happening because GitHub stopped supporting TLS 1.0 in February: The error occu…

---

<div class="post-metadata">

**Author:** ![jottka](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jottka](https://discourse.julialang.org/u/jottka)\
**Post date:** [August 1, 2018, 1:39pm UTC](https://discourse.julialang.org/t/pkg-update-throws-an-error/10797/3 "2018-08-01T13:39:59Z")

</div>

I had a similar problem and “git config --global http.sslVerify false” mitigated the problem. It’s not recommended from a security perspective of course.  
Cheers, Jörg
