# Can not add new packages on Manjaro Linux

**URL:** <https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373>\
**Category:** General Usage\
**Tags:** question, package\
**Created:** [April 10, 2020, 9:58pm UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373 "2020-04-10T21:58:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tofi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tofi/32/11919_2.png) [@Tofi](https://discourse.julialang.org/u/Tofi)\
**Post date:** [April 10, 2020, 9:58pm UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373/1 "2020-04-10T21:58:17Z")

</div>

I just installed Julia 1.4 from the Manjaro Linux repository. When I try to add new packages to Julia, I get an error message:

```julia
(@v1.4) pkg> add Plots
    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)      

```

Can anyone help with this please?

---

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [April 11, 2020, 2:20am UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373/2 "2020-04-11T02:20:12Z")

</div>

It looks like there is a problem with the Manjaro Julia package…you will need to use the official binaries:

> **[Download Julia](https://julialang.org/downloads/)**
>
> The official website for the Julia Language. Julia is a language that is fast, dynamic, easy to use, and open source. Click here to learn more.

---

<div class="post-metadata">

**Author:** ![cirocavani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cirocavani/32/207286_2.png) [@cirocavani](https://discourse.julialang.org/u/cirocavani)\
**Post date:** [April 11, 2020, 3:01am UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373/3 "2020-04-11T03:01:22Z")

</div>

I think it is the same problem.

[https://github.com/JuliaLang/julia/pull/35232](https://github.com/JuliaLang/julia/pull/35232)

---

<div class="post-metadata">

**Author:** ![alejandromerchan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alejandromerchan/32/10500_2.png) [@alejandromerchan](https://discourse.julialang.org/u/alejandromerchan)\
**Post date:** [April 11, 2020, 4:11am UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373/4 "2020-04-11T04:11:40Z")

</div>

I had a problem a while back in Manjaro because I installed Julia from the AUR. I just removed everything, downloaded the original binaries and it works.

---

<div class="post-metadata">

**Author:** ![Igor\_Douven](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/igor_douven/32/8433_2.png) [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Post date:** [April 11, 2020, 8:29am UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373/5 "2020-04-11T08:29:11Z")

</div>

I had this problem in Arch. Solved by adding `export JULIA_PKG_SERVER=pkg.julialang.org` to my .zshrc file (you might have to add it to your .bashrc file, depending on which shell you use).

---

<div class="post-metadata">

**Author:** ![Tofi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tofi/32/11919_2.png) [@Tofi](https://discourse.julialang.org/u/Tofi)\
**Post date:** [April 11, 2020, 10:03am UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373/6 "2020-04-11T10:03:23Z")

</div>

Thank you! That solved the problem for me!

---

<div class="post-metadata">

**Author:** ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Post date:** [April 11, 2020, 11:42am UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373/7 "2020-04-11T11:42:15Z")

</div>

I am getting a similar, but slightly different error (on Manjaro as well):

```julia
 julia> versioninfo()
Julia Version 1.4.0
Commit b8e9a9ecc6 (2020-03-21 16:36 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_PKG_SERVER = pkg.julialang.org
  JULIA_NUM_THREADS = 2

(@v1.4) pkg> up
   Updating registry at `~/.julia/registries/General`
ERROR: GitError(Code:ENOTFOUND, Class:Odb, object not found - no match for id (77ebcf65f902e1d597f08e94c20efaa3c1a30033))
Stacktrace:
 [1] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/error.jl:101 [inlined]
 [2] LibGit2.GitTree(::LibGit2.GitRepo, ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/repository.jl:142
 [3] isdiff(::LibGit2.GitRepo, ::String, ::String; cached::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/LibGit2.jl:155
 [4] #isdirty#112 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/LibGit2.jl:132 [inlined]
 [5] isdirty at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/LibGit2/src/LibGit2.jl:132 [inlined] (repeats 2 times)
 [6] update_registries(::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}; force::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Types.jl:1073
 [7] up(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; level::Pkg.Types.UpgradeLevel, mode::Pkg.Types.PackageMode, update_registry::Bool, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:207
 [8] up at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:201 [inlined]
 [9] #up#47 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:196 [inlined]
 [10] up(::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:196
 [11] do_cmd!(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:403
 [12] do_cmd(::REPL.LineEditREPL, ::String; do_rethrow::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:381
 [13] do_cmd at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:376 [inlined]
 [14] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/REPLMode/REPLMode.jl:542
 [15] #invokelatest#1 at ./essentials.jl:712 [inlined]
 [16] invokelatest at ./essentials.jl:711 [inlined]
 [17] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/LineEdit.jl:2354
 [18] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:1055
 [19] run_repl(::REPL.AbstractREPL, ::Any) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:206
 [20] (::Base.var"#764#766"{Bool,Bool,Bool,Bool})(::Module) at ./client.jl:383
 [21] #invokelatest#1 at ./essentials.jl:712 [inlined]
 [22] invokelatest at ./essentials.jl:711 [inlined]
 [23] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:367
 [24] exec_options(::Base.JLOptions) at ./client.jl:305
 [25] _start() at ./client.jl:484

```

I already changed the `JULIA_PKG_SERVER` as described here. I’m using the official binaries. Is this a known problem or should I open an issue?

---

<div class="post-metadata">

**Author:** ![Igor\_Douven](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/igor_douven/32/8433_2.png) [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Post date:** [April 11, 2020, 12:24pm UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373/8 "2020-04-11T12:24:52Z")

</div>

Possibly. But maybe first try

```julia
using Pkg

Pkg.update()

```

to see whether you get the same error.

---

<div class="post-metadata">

**Author:** ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Post date:** [April 11, 2020, 12:45pm UTC](https://discourse.julialang.org/t/can-not-add-new-packages-on-manjaro-linux/37373/9 "2020-04-11T12:45:14Z")

</div>

That shouldn’t make any difference, it ends up calling exactly the same internals. My problem was that my clone of `General` somehow got corrupted, so I had to delete `~/.julia/registries/General` and get a fresh master from `https://github.com/JuliaRegistries/General`. Packages I manually added by url were also corrupted, here I did a `grep -r <UUID>`, deleted all occurrences in `~/.julia/environments/v1.4/Manifest.toml` and -`Project.toml` manually and the corresponding folder in `~/.julia/clones`. I believe this was because my computer shut down involuntarily and I still had an open julia session.
