# Pkg.update(): GitError

**URL:** <https://discourse.julialang.org/t/pkg-update-giterror/3368>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 25, 2017, 8:54am UTC](https://discourse.julialang.org/t/pkg-update-giterror/3368 "2017-04-25T08:54:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jatotterdell](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jatotterdell/32/18309_2.png) [@jatotterdell](https://discourse.julialang.org/u/jatotterdell)\
**Post date:** [April 25, 2017, 8:54am UTC](https://discourse.julialang.org/t/pkg-update-giterror/3368/1 "2017-04-25T08:54:57Z")

</div>

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

```julia
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
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)

```

```julia
pacman -Qs libgit
local/libgit2 1:0.25.1-1
    A linkable library for Git

```

Any help appreciated.

---

<div class="post-metadata">

**Author:** ![Juan\_Carlos\_Cuchi](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Juan\_Carlos\_Cuchi](https://discourse.julialang.org/u/Juan_Carlos_Cuchi)\
**Post date:** [April 26, 2017, 1:35pm UTC](https://discourse.julialang.org/t/pkg-update-giterror/3368/2 "2017-04-26T13:35:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Juan\_Carlos\_Cuchi](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Juan\_Carlos\_Cuchi](https://discourse.julialang.org/u/Juan_Carlos_Cuchi)\
**Post date:** [April 26, 2017, 5:48pm UTC](https://discourse.julialang.org/t/pkg-update-giterror/3368/3 "2017-04-26T17:48:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jatotterdell](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jatotterdell/32/18309_2.png) [@jatotterdell](https://discourse.julialang.org/u/jatotterdell)\
**Post date:** [April 26, 2017, 9:13pm UTC](https://discourse.julialang.org/t/pkg-update-giterror/3368/4 "2017-04-26T21:13:31Z")

</div>

Thanks, works after latest updates.
