Pkg Error: Expected LinearAlgebra to be registered

I am trying to test the master branch of OffsetArrays.jl on julia 1.5.2 and encountering a strange error that I’ve not seen before.

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.2 (2020-09-23)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.5) pkg> activate .
 Activating environment at `~/Dropbox/JuliaPackages/OffsetArrays.jl/Project.toml`

(OffsetArrays) pkg> test
    Testing OffsetArrays
┌ Error: Pkg.Types.PkgError("expected package `LinearAlgebra [37e2e46d]` to be registered")
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1427
ERROR: expected package `LinearAlgebra [37e2e46d]` to be registered

The test works correctly on 1.5.1

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.1 (2020-08-25)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.5) pkg> activate .
 Activating environment at `~/Dropbox/JuliaPackages/OffsetArrays.jl/Project.toml`

(OffsetArrays) pkg> st
Project OffsetArrays v1.2.1
Status `~/Dropbox/JuliaPackages/OffsetArrays.jl/Project.toml` (empty project)

(OffsetArrays) pkg> test
    Testing OffsetArrays
Status `/tmp/jl_cTbnxg/Project.toml`
  [4c88cf16] Aqua v0.4.10
  [aafaddc9] CatIndices v0.2.1
  [e30172f5] Documenter v0.25.2
  [6fe1bfb0] OffsetArrays v1.2.1 `~/Dropbox/JuliaPackages/OffsetArrays.jl`
  [8bb1440f] DelimitedFiles
  [37e2e46d] LinearAlgebra
  [8dfed614] Test
  [...]

as well as on nightly

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-DEV.1056 (2020-09-25)
 _/ |\__'_|_|_|\__'_|  |  Commit 122237bd0d (0 days old master)
|__/                   |

(@v1.6) pkg> activate .
 Activating environment at `~/Dropbox/JuliaPackages/OffsetArrays.jl/Project.toml`

(OffsetArrays) pkg> st
Project OffsetArrays v1.2.1
Status `~/Dropbox/JuliaPackages/OffsetArrays.jl/Project.toml` (empty project)

(OffsetArrays) pkg> test
    Testing OffsetArrays
Status `/tmp/jl_ETn6Ad/Project.toml`
  [4c88cf16] Aqua v0.4.10
  [aafaddc9] CatIndices v0.2.1
  [e30172f5] Documenter v0.25.2
  [6fe1bfb0] OffsetArrays v1.2.1 `~/Dropbox/JuliaPackages/OffsetArrays.jl`
  [8bb1440f] DelimitedFiles
  [37e2e46d] LinearAlgebra
  [8dfed614] Test
  [...]

I wonder why this error is being raised, and what can I do to fix this?

Turned out to be a corrupt julia installation. Not sure how that happened, but fixed by re-downloading the binary.

1 Like