# Just switched machines, got "ERROR: expected package \`IfElse \[615f187c\]\` to be registered"

**URL:** <https://discourse.julialang.org/t/just-switched-machines-got-error-expected-package-ifelse-615f187c-to-be-registered/48600>\
**Category:** General Usage\
**Created:** [October 18, 2020, 9:41pm UTC](https://discourse.julialang.org/t/just-switched-machines-got-error-expected-package-ifelse-615f187c-to-be-registered/48600 "2020-10-18T21:41:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuel\_Ainsworth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samuel_ainsworth/32/15644_2.png) [@Samuel\_Ainsworth](https://discourse.julialang.org/u/Samuel_Ainsworth)\
**Post date:** [October 18, 2020, 9:41pm UTC](https://discourse.julialang.org/t/just-switched-machines-got-error-expected-package-ifelse-615f187c-to-be-registered/48600/1 "2020-10-18T21:41:31Z")

</div>

I just moved my project from one machine running Julia 1.5.1 to another machine running 1.5.2, and tried running `] instantiate`. The first time I got an error: `ERROR: expected package `IfElse [615f187c]` to be registered`, but then I just ran the exact same command and it worked… What’s up with that? It certainly seems buggy…

There also seem to be loads of others coming across similar things:

- [Can't instantiate project with two unregistered packages](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703)
- [ERROR: expected package `PkgAuthentication [4722fa14]` to be registered - #2 by stv1314](https://discourse.julialang.org/t/error-expected-package-pkgauthentication-4722fa14-to-be-registered/40215/2)
- [https://github.com/JuliaLang/Pkg.jl/issues/1098](https://github.com/JuliaLang/Pkg.jl/issues/1098)
- [julia - ERROR: expected package `PkgAuthentication [4722fa14]` to be registered - Stack Overflow](https://stackoverflow.com/questions/62028826/error-expected-package-pkgauthentication-4722fa14-to-be-registered)

```julia
skainswo@zh-ws1:~/dev/research/julia/odecontrol$ julia --project
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.5.2 (2020-09-23)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(odecontrol) pkg> instantiate
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: expected package `IfElse [615f187c]` to be registered

(odecontrol) pkg> instantiate
    Cloning git-repo `https://github.com/JuliaDiff/ReverseDiff.jl`
  Installed Sundials_jll ─────────── v5.2.0+1
  Installed UnPack ───────────────── v1.0.2
  Installed ParameterizedFunctions ─ v5.6.0
  Installed LaTeXStrings ─────────── v1.2.0
  Installed Unitful ──────────────── v1.4.1
  Installed DataStructures ───────── v0.18.6
  Installed LineSearches ─────────── v7.1.0
  Installed AbstractAlgebra ──────── v0.10.0
  Installed x265_jll ─────────────── v3.0.0+3
  Installed ArrayInterface ───────── v2.13.3
  Installed Compat ───────────────── v3.17.0
  Installed ExponentialUtilities ─── v1.8.0
  Installed FiniteDiff ───────────── v2.7.0
  Installed Polynomials ──────────── v1.1.9
  Installed DocStringExtensions ──── v0.8.3
  Installed Contour ──────────────── v0.5.5
  Installed PlotUtils ────────────── v1.0.7
  Installed ExprTools ────────────── v0.1.2
  Installed OpenBLAS_jll ─────────── v0.3.10+0
  Installed SuiteSparse_jll ──────── v5.4.0+9
  Installed GeometryBasics ───────── v0.3.1
  Installed GPUCompiler ──────────── v0.6.1
  Installed ColorTypes ───────────── v0.10.9
  Installed Colors ───────────────── v0.12.4
  Installed CanonicalTraits ──────── v0.2.2
  Installed Flux ─────────────────── v0.11.1
  Installed OpenSSL_jll ──────────── v1.1.1+6
  Installed LLVM ─────────────────── v2.0.0
  Installed LibVPX_jll ───────────── v1.9.0+1
  Installed DiffEqDiffTools ──────── v1.7.0
  Installed SIMDPirates ──────────── v0.8.25
  Installed SymbolicUtils ────────── v0.5.1
  Installed ChainRulesCore ───────── v0.9.10
  Installed IRTools ──────────────── v0.4.1
  Installed Zygote ───────────────── v0.5.6
  Installed Calculus ─────────────── v0.5.1
  Installed PDMats ───────────────── v0.10.1
  Installed SparseDiffTools ──────── v1.10.0
  Installed Roots ────────────────── v1.0.5
  Installed FreeType2_jll ────────── v2.10.1+5
  Installed HTTP ─────────────────── v0.8.19
  Installed Ogg_jll ──────────────── v1.3.4+2
  Installed Missings ─────────────── v0.4.4
  Installed FastClosures ─────────── v0.3.2
  Installed libvorbis_jll ────────── v1.3.6+6
  Installed IfElse ───────────────── v0.1.0
  Installed Artifacts ────────────── v1.3.0
  Installed FFMPEG_jll ───────────── v4.3.1+4
  Installed XML2_jll ─────────────── v2.9.10+3
  Installed RecursiveArrayTools ──── v2.7.1
  Installed FriBidi_jll ──────────── v1.0.5+6
  Installed JuliaVariables ───────── v0.2.3
  Installed JLSO ─────────────────── v2.3.3
  Installed PGFPlotsX ────────────── v1.2.10
  Installed FFMPEG ───────────────── v0.4.0
  Installed DiffEqPhysics ────────── v3.6.0
  Installed MLStyle ──────────────── v0.4.6
  Installed MKL_jll ──────────────── v2020.2.254+0
  Installed x264_jll ─────────────── v2020.7.14+2
  Installed Libiconv_jll ─────────── v1.16.0+7
  Installed Juno ─────────────────── v0.8.4
  Installed GPUArrays ────────────── v5.2.1
  Installed Crayons ──────────────── v4.0.4
  Installed DistributionsAD ──────── v0.6.9
  Installed OpenSpecFun_jll ──────── v0.5.3+4
  Installed ArrayLayouts ─────────── v0.3.8
  Installed NNlib ────────────────── v0.7.4
  Installed TimeZones ────────────── v1.4.0
  Installed ColorSchemes ─────────── v3.10.1
  Installed FillArrays ───────────── v0.8.14
  Installed FFTW ─────────────────── v1.2.4
  Installed Requires ─────────────── v1.1.0
  Installed DiffEqSensitivity ────── v6.31.5
  Installed Memento ──────────────── v1.1.1
  Installed Distributions ────────── v0.23.8
  Installed Zlib_jll ─────────────── v1.2.11+18
  Installed libass_jll ───────────── v0.14.0+4
  Installed Grisu ────────────────── v1.0.0
  Installed OffsetArrays ─────────── v1.3.0
  Installed GeneralizedGenerated ─── v0.2.7
  Installed RecipesPipeline ──────── v0.1.13
  Installed Sundials ─────────────── v4.3.0
  Installed Bzip2_jll ────────────── v1.0.6+5
  Installed NameResolution ───────── v0.1.5
  Installed JSON ─────────────────── v0.21.1
  Installed FiniteDifferences ────── v0.10.8
  Installed StatsBase ────────────── v0.33.1
  Installed Parsers ──────────────── v1.0.10
  Installed StochasticDiffEq ─────── v6.26.0
  Installed ArgParse ─────────────── v1.1.0
  Installed GR ───────────────────── v0.52.0
  Installed JLLWrappers ──────────── v1.1.2
  Installed CUDA ─────────────────── v1.3.3
  Installed PrettyPrint ──────────── v0.2.0
  Installed Plots ────────────────── v1.6.4
  Installed ModelingToolkit ──────── v3.20.0
  Installed libfdk_aac_jll ───────── v0.1.6+4
  Installed Adapt ────────────────── v2.3.0
  Installed OrdinaryDiffEq ───────── v5.42.9
  Installed CEnum ────────────────── v0.4.1
  Installed DiffEqJump ───────────── v6.10.1
  Installed LoopVectorization ────── v0.8.26
  Installed Opus_jll ─────────────── v1.3.1+3
  Installed EarCut_jll ───────────── v2.1.5+0
  Installed DiffEqCallbacks ──────── v2.14.1
  Installed Tracker ──────────────── v0.2.12
  Installed Intervals ────────────── v1.4.2
  Installed NLsolve ──────────────── v4.4.1
  Installed DelayDiffEq ──────────── v5.24.2
  Installed LAME_jll ─────────────── v3.100.0+3
  Installed QuadGK ───────────────── v2.4.1
  Installed OrderedCollections ───── v1.3.1
  Installed Latexify ─────────────── v0.14.0
  Installed DSP ──────────────────── v0.6.8
  Installed DiffEqFlux ───────────── v1.21.0
  Installed FilePathsBase ────────── v0.9.5
  Installed FFTW_jll ─────────────── v3.3.9+6
  Installed MbedTLS_jll ──────────── v2.16.8+0
  Installed SimpleTraits ─────────── v0.9.3
  Installed ChainRules ───────────── v0.7.18
  Installed Functors ─────────────── v0.1.0
  Installed TextWrap ─────────────── v1.0.1
  Installed VectorizationBase ────── v0.12.33
  Installed LightGraphs ──────────── v1.3.0
  Installed RecipesBase ──────────── v1.1.0
  Installed DiffEqBase ───────────── v6.47.0
  Installed Showoff ──────────────── v0.3.2
  Installed NLSolversBase ────────── v7.5.0
  Installed DiffEqNoiseProcess ───── v5.3.1
  Installed UnicodePlots ─────────── v1.3.0
  Installed ProgressMeter ────────── v1.3.3
Downloading artifact: Sundials
Downloading artifact: SuiteSparse
Downloading artifact: OpenBLAS
Downloading artifact: LibVPX
Downloading artifact: FreeType2
Downloading artifact: FFMPEG
Downloading artifact: FriBidi
Downloading artifact: x264
Downloading artifact: Bzip2
Downloading artifact: EarCut
Downloading artifact: MbedTLS
   Building TimeZones → `~/.julia/packages/TimeZones/tx0tt/deps/build.log`
   Building FFTW ─────→ `~/.julia/packages/FFTW/DMUbN/deps/build.log`
   Building GR ───────→ `~/.julia/packages/GR/BwGt2/deps/build.log`
   Building Plots ────→ `~/.julia/packages/Plots/4EfKl/deps/build.log`

(odecontrol) pkg>

```

---

<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:** [October 19, 2020, 1:25am UTC](https://discourse.julialang.org/t/just-switched-machines-got-error-expected-package-ifelse-615f187c-to-be-registered/48600/2 "2020-10-19T01:25:11Z")

</div>

I’m assuming that the package `IfElse` is this one from @ChrisRackauckas in SciML:  
[https://github.com/SciML/IfElse.jl](https://github.com/SciML/IfElse.jl)

Looks like it was added relatively recently. You might be able to avoid this by first updating the registry using `]registry up` and then using `instantiate`.

This looks most related to  
[https://github.com/JuliaLang/Pkg.jl/issues/1212](https://github.com/JuliaLang/Pkg.jl/issues/1212)
