ERROR: "/tmp/jl_F8q8cm/Registry.toml": No such file in Julia REPL

ERROR: "/tmp/jl_F8q8cm/Registry.toml": No such file in Julia REPL

我正在尝试通过包管理器更新当前环境中的包,但出现以下错误:

(@v1.6) pkg> update
    Updating registry at `~/.julia/registries/General`
┌ Warning: could not download https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/46715bc8c87dc9f8d86b589ce090af6fcca81565
└ @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:1156
ERROR: "/tmp/jl_F8q8cm/Registry.toml": No such file
Stacktrace:
  [1] error(::String, ::String)
    @ Base ./error.jl:42

知道可能出了什么问题吗?

似乎通用注册表的 link 已损坏。解决这个问题所需要做的就是:

] registry rm General

]up

up命令为运行.

时,默认删除通用注册表然后重新添加