我的julia版本信息
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) Silver 4210 CPU @ 2.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, cascadelake)
我安装的包的信息:
Status `~/.julia/environments/v1.5/Project.toml`
[6e4b80f9] BenchmarkTools v0.5.0
[c5f51814] CUDAdrv v6.3.0
[5ae59095] Colors v0.12.4
[3a865a2d] CuArrays v2.2.2
[aaf54ef3] DistributedArrays v0.6.6
[e30172f5] Documenter v0.26.3
[5789e2e9] FileIO v1.4.4
[1a297f60] FillArrays v0.10.0
[0c68f7d7] GPUArrays v3.4.1
[7073ff75] IJulia v1.22.0
[9a2cd570] KrylovMethods v0.6.0
[46dd5b70] Pardiso v0.5.1
[27ebfcd6] Primes v0.5.0
[295af30f] Revise v3.1.6
[90137ffa] StaticArrays v0.12.5
[64499a7a] WriteVTK v1.8.0
[8ba89e20] Distributed
[de0858da] Printf
[2f01184e] SparseArrays
但是当我添加包时,就会报错,换了好几个版本都会报错.
julia> import Pkg; Pkg.add("MKLSparse")
Updating registry at `~/.julia/registries/General`
######################################################################## 100.0%
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
┌ Warning: could not download https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/3ac942945378c6708fa819d079264c6308096881
└ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:1123
ERROR: SystemError: opening file "/tmp/jl_ume7US/Registry.toml": No such file or directory
Stacktrace:
[1] systemerror(::String, ::Int32; extrainfo::Nothing) at ./error.jl:168
[2] #systemerror#48 at ./error.jl:167 [inlined]
[3] systemerror at ./error.jl:167 [inlined]
[4] open(::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing) at ./iostream.jl:284
[5] open at ./iostream.jl:273 [inlined]
[6] open(::Base.var"#294#295"{Tuple{}}, ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./io.jl:323
[7] open at ./io.jl:323 [inlined]
[8] read at ./io.jl:408 [inlined]
[9] parsefile at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/ext/TOML/src/TOML.jl:50 [inlined]
[10] read_registry(::String; cache::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:1044
[11] (::Pkg.Types.var"#107#110"{String})(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:1132
[12] mktempdir(::Pkg.Types.var"#107#110"{String}, ::String; prefix::String) at ./file.jl:709
[13] mktempdir(::Function, ::String) at ./file.jl:707 (repeats 2 times)
[14] update_registries(::Pkg.Types.Context, ::Array{Pkg.Types.RegistrySpec,1}; force::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:1119
[15] update_registries at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:1106 [inlined] (repeats 2 times)
[16] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:172
[17] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:139
[18] #add#21 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
[19] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
[20] #add#20 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:66 [inlined]
[21] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:66 [inlined]
[22] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:65
[23] add(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:65
[24] top-level scope at REPL[3]:1
请问这个怎么解决?