# Package updated but not available (12 hours latter)

**URL:** https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718
**Category:** General Usage
**Tags:** package
**Created:** [May 24, 2021, 11:41am UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718 "2021-05-24T11:41:41Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [May 24, 2021, 11:41am UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/1 "2021-05-24T11:41:41Z")

</div>

Yesterday I released a [new patch version of a package](https://github.com/m3g/ComplexMixtures.jl). It is still not available here for update.

```julia
(@v1.6) pkg> up ComplexMixtures
    Updating registry at `~/.julia/registries/General`
  No Changes to `~/.julia/environments/v1.6/Project.toml`
  No Changes to `~/.julia/environments/v1.6/Manifest.toml`

(@v1.6) pkg> status ComplexMixtures
      Status `~/.julia/environments/v1.6/Project.toml`
  [6f35c628] ComplexMixtures v0.4.20

```

There is something going wrong with the the repository?

---

<div class="post-metadata">

### Author: ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)
#### Post date: [May 24, 2021, 11:49am UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/2 "2021-05-24T11:49:03Z")

</div>

Hmm… Everything looks fine

```julia
(tmp) pkg> add ComplexMixtures
    Updating registry at `~/.julia/registries/General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Resolving package versions...
   Installed ProgressMeter ─── v1.6.2
   Installed ThreadPools ───── v1.2.1
   Installed FortranFiles ──── v0.6.0
   Installed PDBTools ──────── v0.12.10
   Installed Chemfiles_jll ─── v0.9.3+1
   Installed Chemfiles ─────── v0.9.3
   Installed ComplexMixtures ─ v0.4.21

```

Have you tried to `add` it in fresh project? Are you using GitHub version of the package or `dev`?

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [May 24, 2021, 11:55am UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/3 "2021-05-24T11:55:29Z")

</div>

> [@Skoffer](#):
>
> Have you tried to `add` it in fresh project? Are you using GitHub version of the package or `dev` ?

The only thing that worked is to add the version explicitly:

```julia
(NEWTEST) pkg> add ComplexMixtures#v0.4.21
     Cloning git-repo `https://github.com/m3g/ComplexMixtures.jl.git`
   Resolving package versions...
    Updating `~/Drive/Work/JuliaPlay/NEWTEST/Project.toml`
  [6f35c628] ~ ComplexMixtures v0.4.20 ⇒ v0.4.21 `https://github.com/m3g/ComplexMixtures.jl.git#v0.4.21`
    Updating `~/Drive/Work/JuliaPlay/NEWTEST/Manifest.toml`
  [6f35c628] ~ ComplexMixtures v0.4.20 ⇒ v0.4.21 `https://github.com/m3g/ComplexMixtures.jl.git#v0.4.21`
Precompiling project...
  1 dependency successfully precompiled in 4 seconds (21 already precompiled)

(NEWTEST) pkg> status ComplexMixtures
      Status `~/Drive/Work/JuliaPlay/NEWTEST/Project.toml`
  [6f35c628] ComplexMixtures v0.4.21 `https://github.com/m3g/ComplexMixtures.jl.git#v0.4.21`

```

But by default the previous version is installed still:

```julia
(@v1.6) pkg> remove ComplexMixtures
    Updating `~/.julia/environments/v1.6/Project.toml`
  [6f35c628] - ComplexMixtures v0.4.20
    Updating `~/.julia/environments/v1.6/Manifest.toml`
  [6f35c628] - ComplexMixtures v0.4.20

(@v1.6) pkg> status ComplexMixtures
  No Matches in `~/.julia/environments/v1.6/Project.toml`

(@v1.6) pkg> add ComplexMixtures
    Updating registry at `~/.julia/registries/General`
   Resolving package versions...
    Updating `~/.julia/environments/v1.6/Project.toml`
  [6f35c628] + ComplexMixtures v0.4.20
    Updating `~/.julia/environments/v1.6/Manifest.toml`
  [6f35c628] + ComplexMixtures v0.4.20

(@v1.6) pkg> activate NEWTEST
  Activating environment at `~/Drive/Work/JuliaPlay/NEWTEST/Project.toml`

(NEWTEST) pkg> add ComplexMixtures
   Resolving package versions...
    Updating `~/Drive/Work/JuliaPlay/NEWTEST/Project.toml`
  [6f35c628] + ComplexMixtures v0.4.20
    Updating `~/Drive/Work/JuliaPlay/NEWTEST/Manifest.toml`
  [b99e7846] + BinaryProvider v0.5.10
  [46823bd8] + Chemfiles v0.9.3
  [6f35c628] + ComplexMixtures v0.4.20

```

---

<div class="post-metadata">

### Author: ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)
#### Post date: [May 24, 2021, 1:38pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/4 "2021-05-24T13:38:13Z")

</div>

Silly question on my side, maybe, but…

> [@lmiq](#):
>
> ```julia
> (@v1.6) pkg> activate NEWTEST
> Activating environment at `~/Drive/Work/JuliaPlay/NEWTEST/Project.toml`
> 
> ```

I notice that it says `Activating environment ...`, not “ **new** environment”. So there was already a `Project.toml` in that environment. Could it be that it contained some other dependency incompatible with the newest version of ComplexMixtures?

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [May 24, 2021, 1:48pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/5 "2021-05-24T13:48:38Z")

</div>

Nope (probably that was that I ran the command twice for some copy/pasting that I forgot):

```julia
(@v1.6) pkg> activate yetanothernewtest
  Activating new environment at `~/Drive/Work/JuliaPlay/yetanothernewtest/yetanothernewtest/Project.toml`

(yetanothernewtest) pkg> add ComplexMixtures
    Updating registry at `~/.julia/registries/General`
   Resolving package versions...
    Updating `~/Drive/Work/JuliaPlay/yetanothernewtest/yetanothernewtest/Project.toml`
  [6f35c628] + ComplexMixtures v0.4.20
...

```

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [May 24, 2021, 1:58pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/6 "2021-05-24T13:58:26Z")

</div>

Tip: use `pkg> activate --temp` to get a guaranteed fresh environment, every time.

Is version `0.4.21` available in `~/.julia/registries/General/C/ComplexMixtures/Versions.toml`? If no, your problem is that your registry isn’t up to date, possibly because your package server is lagging with updates. If yes, dependency problems in your environment would usually be the likely suspect.

---

<div class="post-metadata">

### Author: ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)
#### Post date: [May 24, 2021, 2:00pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/7 "2021-05-24T14:00:30Z")

</div>

And is your copy of the registry correctly updated? Your output does not show the line

`Updating git-repo `https://github.com/JuliaRegistries/General.git`

after `Updating registry`…

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [May 24, 2021, 2:02pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/8 "2021-05-24T14:02:50Z")

</div>

> [@heliosdrm](#):
>
> Your output does not show the line
> 
> `Updating git-repo `[https://github.com/JuliaRegistries/General.git`](https://github.com/JuliaRegistries/General.git%60)
> 
> after `Updating registry` …

That is normal if getting the registry from a package server rather than from git. And indeed, switching to a git provided registry is one way of working around a lagging package server.

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [May 24, 2021, 2:04pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/9 "2021-05-24T14:04:44Z")

</div>

> [@GunnarFarneback](#):
>
> Tip: use `pkg> activate --temp` to get a guaranteed fresh environment, every time.

Nice, but with the same result.

> [@GunnarFarneback](#):
>
> Is version `0.4.21` available in `~/.julia/registries/General/C/ComplexMixtures/Versions.toml` ?

No, it is not.

> [@heliosdrm](#):
>
> Your output does not show the line

It does not indeed:

```julia
(@v1.6) pkg> activate --temp
  Activating new environment at `/tmp/jl_r1EeFt/Project.toml`

(jl_r1EeFt) pkg> add ComplexMixtures
    Updating registry at `~/.julia/registries/General`
   Resolving package versions...
    Updating `/tmp/jl_r1EeFt/Project.toml`
  [6f35c628] + ComplexMixtures v0.4.20
    Updating `/tmp/jl_r1EeFt/Manifest.toml`
  [b99e7846] + BinaryProvider v0.5.10
...

```

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [May 24, 2021, 2:05pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/10 "2021-05-24T14:05:39Z")

</div>

> [@GunnarFarneback](#):
>
> If yes, dependency problems in your environment would usually be the likely suspect.

any way to sort that out? I updated everything already.

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [May 24, 2021, 2:08pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/11 "2021-05-24T14:08:14Z")

</div>

Your answer was no, so that clause doesn’t apply.

To switch to a git provided registry, run Julia with the environment variable `JULIA_PKG_SERVER` set to `""` (empty string) and do

```julia
pkg> registry rm General
pkg> registry add General

```

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [May 24, 2021, 2:14pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/12 "2021-05-24T14:14:01Z")

</div>

That did the trick. Where ever my registry could have changed? (I never did that).

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [May 24, 2021, 2:45pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/13 "2021-05-24T14:45:25Z")

</div>

With some Windows exceptions, Julia 1.5 and 1.6 will use a package server by default, including for the registry. So unless your Julia depot was created by an earlier version, it’s expected that your registry is package server provided.

---

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [May 24, 2021, 4:20pm UTC](https://discourse.julialang.org/t/package-updated-but-not-available-12-hours-latter/61718/14 "2021-05-24T16:20:33Z")

</div>

> [@GunnarFarneback](#):
>
> So unless your Julia depot was created by an earlier version,

that may well be it, thanks
