# Pkg update stuck at 100%

**URL:** <https://discourse.julialang.org/t/pkg-update-stuck-at-100/93283>\
**Category:** General Usage\
**Created:** [January 19, 2023, 1:42pm UTC](https://discourse.julialang.org/t/pkg-update-stuck-at-100/93283 "2023-01-19T13:42:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre-haessig](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pierre-haessig/32/217129_2.png) [@pierre-haessig](https://discourse.julialang.org/u/pierre-haessig)\
**Post date:** [January 19, 2023, 1:42pm UTC](https://discourse.julialang.org/t/pkg-update-stuck-at-100/93283/1 "2023-01-19T13:42:37Z")

</div>

I also got hit by this problem on Linux with Julia 1.8.5 (except that package update hangs at 100% rather than 99.9%…).

I’ve updated the thread with the solution ([Pkg.update in Julia 1.5 uses github - #5 by pierre-haessig](https://discourse.julialang.org/t/pkg-update-in-julia-1-5-uses-github/44331/5)) because removing and adding back the General registry didn’t make a change (unless I missed something): the URL of my General is still `https://github.com/JuliaRegistries/General.git`.

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [January 20, 2023, 4:57am UTC](https://discourse.julialang.org/t/pkg-update-stuck-at-100/93283/2 "2023-01-20T04:57:36Z")

</div>

What is the output of the following command?

```julia
julia> readdir(joinpath(DEPOT_PATH[1], "registries"))
2-element Vector{String}:
 "General.tar.gz"
 "General.toml"

julia> versioninfo()

```

Seeing at your general has a URL, perhaps you have disabled the package server? What is `ENV["JULIA_PKG_SERVER"]` ?

P.S. It would probably be a good idea to start your own thread since we’re not sure your problem is the same as this one.

---

<div class="post-metadata">

**Author:** ![pierre-haessig](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pierre-haessig/32/217129_2.png) [@pierre-haessig](https://discourse.julialang.org/u/pierre-haessig)\
**Post date:** [January 20, 2023, 8:36pm UTC](https://discourse.julialang.org/t/pkg-update-stuck-at-100/93283/3 "2023-01-20T20:36:40Z")

</div>

Thanks @mkitti for helping!

I’ve the same output for `readdir(joinpath(DEPOT_PATH[1], "registries"))` as you: there are two “General…” files in that folder. Version info is 1.8.5 (the standard Linux binary freshly updated from [Download Julia](https://julialang.org/downloads/)).

As for the environment variable, it seems unset:

```julia
julia> ENV["JULIA_PKG_SERVER"]
ERROR: KeyError: key "JULIA_PKG_SERVER" not found

```

Now, I don’t know how the package manager handles caches of a registry and perhaps not many changes occurred since yesterday, but today when running package update, I get a near instantaneous response:

```julia
pkg> update
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/.julia/environments/v1.8/Project.toml`
  No Changes to `~/.julia/environments/v1.8/Manifest.toml`

```

And indeed it would be worth putting this in another thread, but I think only moderators can split threads (Edit: I’ve add the “off-topic” private flag on my first post above).

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [January 20, 2023, 8:57pm UTC](https://discourse.julialang.org/t/pkg-update-stuck-at-100/93283/4 "2023-01-20T20:57:43Z")

</div>

So it sounds like this was a transient issue? Perhaps some local network connectivity problem?
