Pkg.update() throws an error

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:

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?

:slightly_smiling_face:

Philippe

Dear Philippe,

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

Philippe

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