# Registry failed to update

**URL:** <https://discourse.julialang.org/t/registry-failed-to-update/17840>\
**Category:** General Usage\
**Created:** [November 22, 2018, 4:08am UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840 "2018-11-22T04:08:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrods](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amrods/32/2543_2.png) [@amrods](https://discourse.julialang.org/u/amrods)\
**Post date:** [November 22, 2018, 4:08am UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/1 "2018-11-22T04:08:10Z")

</div>

Since a few days ago I’m getting a warning when I `]up`:

```julia
(v1.0) pkg> up
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating registry at `~/.julia/registries/JuliaPOMDP`
  Updating git-repo `https://github.com/JuliaPOMDP/Registry`
┌ Warning: Some registries failed to update:
│ — /Users/amrods/.julia/registries/General — failed to fetch from repo
└ @ Pkg.API /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:157
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.0/Manifest.toml`
 [no changes]

```

That is bothering me a little, how do I fix that warning? How do I remove those custom registries?

---

<div class="post-metadata">

**Author:** ![duzaichuan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/duzaichuan/32/206666_2.png) [@duzaichuan](https://discourse.julialang.org/u/duzaichuan)\
**Post date:** [November 26, 2018, 9:48pm UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/2 "2018-11-26T21:48:14Z")

</div>

Suffering from the same issue.  
julia 1.0.2

---

<div class="post-metadata">

**Author:** ![jstrube](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jstrube/32/525_2.png) [@jstrube](https://discourse.julialang.org/u/jstrube)\
**Post date:** [November 26, 2018, 11:40pm UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/4 "2018-11-26T23:40:05Z")

</div>

AFAIU It’s not a problem with the custom registries, but rather with the general one.  
I think the following should work:

```julia
cd ~/.julia/registries/General
git stash
git pull
git stash drop

```

Then try `] up` again in julia.

---

<div class="post-metadata">

**Author:** ![Patrick\_Dubus](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@Patrick\_Dubus](https://discourse.julialang.org/u/Patrick_Dubus)\
**Post date:** [November 29, 2018, 8:02am UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/5 "2018-11-29T08:02:26Z")

</div>

I have the same problem with Julia 1.0.2 but I am on windows. How to run git … ?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Rohan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rohan/32/6202_2.png) [@Rohan](https://discourse.julialang.org/u/Rohan)\
**Post date:** [November 29, 2018, 8:57am UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/6 "2018-11-29T08:57:12Z")

</div>

Me too!

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [November 29, 2018, 10:07am UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/7 "2018-11-29T10:07:07Z")

</div>

> [@Patrick\_Dubus](#):
>
> How to run git … ?

Another (perhaps simpler) solution is to just delete the `.julia/registries/General` folder and it will be installed again automatically.

---

<div class="post-metadata">

**Author:** ![Patrick\_Dubus](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@Patrick\_Dubus](https://discourse.julialang.org/u/Patrick_Dubus)\
**Post date:** [November 29, 2018, 4:16pm UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/8 "2018-11-29T16:16:20Z")

</div>

Unfortunatly, this solution is not working for me (and few other after looking to the forum).

(v1.0) pkg\> update  
Resolving package versions…  
ERROR: Unsatisfiable requirements detected for package HTTPClient [0862f596]:  
HTTPClient [0862f596] log:  
├─HTTPClient [0862f596] has no known versions!  
└─restricted to versions \* by an explicit requirement — no versions left

---

<div class="post-metadata">

**Author:** ![Patrick\_Dubus](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@Patrick\_Dubus](https://discourse.julialang.org/u/Patrick_Dubus)\
**Post date:** [November 29, 2018, 4:20pm UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/9 "2018-11-29T16:20:27Z")

</div>

I have removed the folder .git located into the .julia/registries/General and the error message has gone but … no update (may be because no packages have been changed). To be confirmed.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [November 29, 2018, 4:38pm UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/10 "2018-11-29T16:38:58Z")

</div>

> [@Patrick\_Dubus](#):
>
> I have removed the folder .git located into the .julia/registries/General and the error message has gone

Well, if you remove `.git` it is just a regular folder, so obviously it can’t be updated.

> [@Patrick\_Dubus](#):
>
> Unfortunatly, this solution is not working for me

Try removing `.julia/registries/` completely.

---

<div class="post-metadata">

**Author:** ![Patrick\_Dubus](https://avatars.discourse-cdn.com/v4/letter/p/c77e96/32.png) [@Patrick\_Dubus](https://discourse.julialang.org/u/Patrick_Dubus)\
**Post date:** [November 29, 2018, 5:38pm UTC](https://discourse.julialang.org/t/registry-failed-to-update/17840/11 "2018-11-29T17:38:32Z")

</div>

Removing completely the .julia/registries solve the problem.

Many thanks.
