Julia 1.4 can't update registry

I have a VM running Manjaro on the test branch. I wanted to check if Julia 1.4 made has made it onto the test branch so I fired up the VM updated it and yes 1.4 has made it into test.

So I wanted to test it. I hadn’t installed Juno in Atom, so I figured I’d do that first. Added uber-juno to Atom. Started Julia in the tray…and “Outdated version of Atom.jl” (0.12.7)…okay weird, I just installed it, why the old version. Tried to update, didn’t update.

Found an old post about the registry being dirty, figured I’d try that…didn’t help…ended up with a different error. Okay, start over, deleted ~/.julia. Now I just can’t update.

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.0 (2020-03-21)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |

(@v1.4) pkg> update
    Cloning default registries into `~/.julia`
    Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:Invalid, invalid version 0 on git_proxy_options)

I can open https://github.com/JuliaRegistries/General.git in a browser just fine…Not sure what is going on.

Some more information…When I start under Atom with ~/.julia deleted I get:

Hold on tight while we are installing some packages for you.
This should only take a few seconds...

 Activating environment at `~/.julia/environments/v1.4/Project.toml`
    Cloning default registries into `~/.julia`
    Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: LoadError: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:Invalid, invalid version 0 on git_proxy_options)
Stacktrace:
 [1] top-level scope at /home/pixel/.atom/packages/julia-client/script/boot_repl.jl:21
in expression starting at /home/pixel/.atom/packages/julia-client/script/boot_repl.jl:1
caused by [exception 1]
GitError(Code:ERROR, Class:Invalid, invalid version 0 on git_proxy_options)
Stacktrace:
 [1] top-level scope at /home/pixel/.atom/packages/julia-client/script/boot_repl.jl:21
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.0 (2020-03-21)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |

julia> 

However when I look in that directory it only has a logs folder with 2 empty files (manifest_usage.toml and repl_history.jl)…there is no “environments” directory.

Not sure if this is the distro’s issue or 1.4…

Looks like you are not using the official binaries, so then I am guessing you have libgit version 0.99 and running into Bug: compatibility with http-parser 2.9.3 and libgit2 0.99.0-2 · Issue #35043 · JuliaLang/julia · GitHub. Other users report that downgrading libgit2 solves your problem.

1 Like