Cannot update packages

Hello,

I am using Julia 1.5.3 under WSL2. I haven’t updated the packages for a couple of months and tried to update them. But I got the following error:

(@v1.5) pkg> up
   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/3689ed8a4374242a1dd78df375a68e0486cad1f5
└ @ Pkg.Types ~/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:1123
ERROR: SystemError: opening file "/tmp/jl_Ori00s/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 /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/ext/TOML/src/TOML.jl:50 [inlined]
 [10] read_registry(::String; cache::Bool) at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:1044
 [11] (::Pkg.Types.var"#107#110"{String})(::String) at /home/zwwi/julia-1.5.3/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 /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:1119
 [15] up(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; level::Pkg.Types.UpgradeLevel, mode::Pkg.Types.PackageMode, update_registry::Bool, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:227
 [16] up at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:221 [inlined]
 [17] #up#37 at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
 [18] up(::Array{Pkg.Types.PackageSpec,1}) at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67
 [19] do_cmd!(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:404
 [20] do_cmd(::REPL.LineEditREPL, ::String; do_rethrow::Bool) at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:382
 [21] do_cmd at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:377 [inlined]
 [22] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/Pkg/src/REPLMode/REPLMode.jl:546
 [23] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [24] invokelatest at ./essentials.jl:709 [inlined]
 [25] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/LineEdit.jl:2355
 [26] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /home/zwwi/julia-1.5.3/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:1144
 [27] (::REPL.var"#38#42"{REPL.LineEditREPL,REPL.REPLBackendRef})() at ./task.jl:356

The same error happened if I switch to julia versions 1.5.0, 1.5.2 that I installed previously, as well as with version 1.6.0-beta1.

I checked that the https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/3689ed8a4374242a1d d78df375a68e0486cad1f5 could be downloaded with wget.

The error could not be resolved by removing the folder ~/.julia/registries/General.

Any hints are welcome. Thank you.