Problem adding LinearAlgebra


#1

Hi I got the same problem when I tried to pkg add LinerAlgebra

import Pkg
Pkg.add(“LinerAlgebra”)
Updating registry at C:\Users\bj\.julia\registries\General
Updating git-repo https://github.com/JuliaRegistries/General.git
Fetching: [========================================>] 100.0 %.0 %.6 %.4 % ] 19.6 %> ] 23.7 % [=============> ] 32.0 % % [==================> ] 42.8 %Fetching: [==================> ] 44.8 % [====================> ] 48.5 %] 52.6 % ] 54.6 %> ] 67.0 %70.1 % %86.1 %Fetching: [=====================================> ] 92.3 %========================================>] 98.5 %
The following package names could not be resolved:

  • LinerAlgebra (not found in project, manifest or registry)
    Please specify by known name=uuid.

Stacktrace:
[1] pkgerror(::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:120
[2] #ensure_resolved#43(::Bool, ::Function, ::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:900
[3] #ensure_resolved at .\none:0 [inlined]
[4] #add_or_develop#13(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:59
[5] #add_or_develop at .\none:0 [inlined]
[6] #add_or_develop#12 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:29 [inlined]
[7] #add_or_develop at .\none:0 [inlined]
[8] #add_or_develop#11 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:28 [inlined]
[9] #add_or_develop at .\none:0 [inlined]
[10] #add_or_develop#10 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:27 [inlined]
[11] #add_or_develop at .\none:0 [inlined]
[12] #add#18 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:69 [inlined]
[13] add(::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:69
[14] top-level scope at In[25]:2

Then I tried rm(joinpath(homedir(), “.julia”, “registries”); recursive=true)

And it fetched a bit more but still didn’t work.

rm(joinpath(homedir(), “.julia”, “registries”); recursive=true)

Pkg.add(“LinerAlgebra”)
Cloning default registries into C:\Users\bj.julia\registries
Cloning registry General from “https://github.com/JuliaRegistries/General.git
[1mFetching: [========================================>] 99.9 %0.0 % ] 1.2 %> ] 1.8 %8 % ] 3.4 %==> ] 4.0 % % %Fetching: [====> ] 7.6 %2 % ] 8.8 %Fetching: [====> ] 9.4 % ] 10.2 %.1 %13.3 %.1 %> ] 14.8 %=======> ] 16.0 %] 16.5 %] 18.5 %] 19.5 %.7 % ] 22.4 %1 %> ] 24.6 %Fetching: [===========> ] 25.1 % [===========> ] 26.6 %28.8 %> ] 29.2 %> ] 30.2 % %=============> ] 31.1 %.3 %> ] 32.9 %33.3 %Fetching: [==============> ] 34.7 %> ] 35.3 %===============> ] 35.6 %.1 %38.8 %8 % [=================> ] 40.2 %Fetching: [=================> ] 40.8 %] 41.4 %> ] 42.6 % ] 43.5 %==================> ] 44.4 %4 %] 46.5 %====================> ] 48.1 %> ] 49.5 % %=====================> ] 50.8 %=====================> ] 52.0 %53.3 %Fetching: [======================> ] 54.7 %55.3 %Fetching: [=======================> ] 57.1 %Fetching: [========================> ] 57.6 %Fetching: [========================> ] 60.0 % ] 60.5 %Fetching: [=========================> ] 62.4 %> ] 63.4 %Fetching: [==========================> ] 64.8 %Fetching: [===========================> ] 66.0 %3 % ] 67.1 %.7 % [============================> ] 68.2 % ] 69.2 %7 %.3 % %Fetching: [==============================> ] 74.5 % [===============================> ] 75.6 % %] 76.9 % %3 %Fetching: [================================> ] 79.6 %Fetching: [=================================> ] 81.2 %81.8 %] 82.8 %4 %Fetching: [==================================> ] 84.0 % ] 86.0 % ] 86.5 %.7 % [====================================> ] 88.3 %====================================> ] 88.9 %Fetching: [====================================> ] 89.7 %Fetching: [=====================================> ] 90.1 % %Fetching: [======================================> ] 92.7 %93.9 %======================================> ] 94.6 %95.1 % ] 96.0 %] 97.4 % [========================================>] 99.1 %99.7 %
The following package names could not be resolved:

  • LinerAlgebra (not found in project, manifest or registry)
    Please specify by known name=uuid.

Stacktrace:
[1] pkgerror(::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:120
[2] #ensure_resolved#43(::Bool, ::Function, ::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Types.jl:900
[3] #ensure_resolved at .\none:0 [inlined]
[4] #add_or_develop#13(::Symbol, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:59
[5] #add_or_develop at .\none:0 [inlined]
[6] #add_or_develop#12 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:29 [inlined]
[7] #add_or_develop at .\none:0 [inlined]
[8] #add_or_develop#11 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:28 [inlined]
[9] #add_or_develop at .\none:0 [inlined]
[10] #add_or_develop#10 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:27 [inlined]
[11] #add_or_develop at .\none:0 [inlined]
[12] #add#18 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:69 [inlined]
[13] add(::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:69
[14] top-level scope at In[27]:1


Pkg.add("IJulia") can not work
#2

I’ve split this off into its own post since it’s unrelated to the other topic.

You don’t need to add LinearAlgebra to use it as it’s a standard library, but note the spelling — it’s using LinearAlgebra not LinerAlgebra.


#3

Hey mbauman thanks for your help. I realize the problem right after I posted it…
I think my problem was that normally when there is no such package, then the error will return no such package then I realize something’s wrong with the package name.
But here it was fetching… and fetching more so I never thought about the package name…

But It’s such stupid mistake. Maybe you can delete this post…