Pkg.update(): GitError

I’m quite new to Julia, and after a fresh installation I’m running into the following error:

julia> Pkg.update()
INFO: Initializing package repository /home/jatotterdell/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:Invalid, Invalid version 0 on git_proxy_options)
 in #clone#112(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractCredentials}, ::Function, ::String, ::String) at ./libgit2/libgit2.jl:327
 in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64
 in macro expansion at ./REPL.jl:95 [inlined]
 in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68
julia> versioninfo()
Julia Version 0.5.1
Commit 6445c82* (2017-03-05 13:25 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libblas
  LAPACK: liblapack
  LIBM: libm
  LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)
pacman -Qs libgit
local/libgit2 1:0.25.1-1
    A linkable library for Git

Any help appreciated.

I had the same problem in Archlinux. The answer I found is:

  1. Install Downgrade
  2. Downgrade libgit2 to version 1:0.24.6-1

This question has been solved in Archlinux with a new package of Julia 0.5.1 compatible with libgit2 1:0.25.1-2.

Thanks, works after latest updates.