# Pkg Error: Expected LinearAlgebra to be registered

**URL:** <https://discourse.julialang.org/t/pkg-error-expected-linearalgebra-to-be-registered/47315>\
**Category:** General Usage\
**Tags:** question\
**Created:** [September 26, 2020, 2:51pm UTC](https://discourse.julialang.org/t/pkg-error-expected-linearalgebra-to-be-registered/47315 "2020-09-26T14:51:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Post date:** [September 26, 2020, 2:51pm UTC](https://discourse.julialang.org/t/pkg-error-expected-linearalgebra-to-be-registered/47315/1 "2020-09-26T14:51:18Z")

</div>

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.

```julia
               _
   _ _ _(_)_ | 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

```julia
               _
   _ _ _(_)_ | 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

```julia
               _
   _ _ _(_)_ | 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?

---

<div class="post-metadata">

**Author:** ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Post date:** [September 27, 2020, 4:27am UTC](https://discourse.julialang.org/t/pkg-error-expected-linearalgebra-to-be-registered/47315/2 "2020-09-27T04:27:10Z")

</div>

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