Could not download registries

 Installing known registries into `~/.julia`

ERROR: could not download https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/b39454141b62a8b7203e96a34b9ba6cd7f79815d 
Exception: RequestError: HTTP/2 301 (Recv failure: 连接被对方重置) while requesting https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/b39454141b62a8b7203e96a34b9ba6cd7f79815d

Are you in China perhaps? There were posts here before where the Chinese firewall blocked access to the pkgregistry. You’ll have to use a proxy or VPN I think.
Maybe have look here for more info: Why is it so hard to install packages in julia from China? - #11 by ToucheSir

I do have used a proxy and link to https://pkg.julialang.org/ sucess:

When excuting versioninfo() gives:

Julia Version 1.10.4
Commit 48d4fd4843 (2024-06-04 10:41 UTC)
Build Info:

    Note: This is an unofficial build, please report bugs to the project
    responsible for this build and not to the Julia project unless you can
    reproduce the issue using official builds available at https://julialang.org/downloads

Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: 12 × AMD Ryzen 5 5600H with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 12 default, 0 interactive, 6 GC (on 12 virtual cores)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 12

How did you install Julia? If you used your distros package manager then uninstall and reinstall via juliaup (should also be mentioned on top of Download Julia)

Thanks, Problem solved by
curl -fsSL https://install.julialang.org | sh
in zsh Konsole

Still unsolved, only the first time installing juliaup and julia works. Same error throws when I tried update today

Error
Installing known registries into `~/.julia`
ERROR: could not download https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/c556cdb9129d57bb386adc68f132ed8fd1eb4217 
Exception: RequestError: HTTP/2 301 (Recv failure: 连接被对方重置) while requesting https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/c556cdb9129d57bb386adc68f132ed8fd1eb4217

Hi, use the mirror sites of julia registry may help.
Try

export JULIAUP_SERVER=https://mirror.nju.edu.cn/julia-releases/ # Linux & macOS
export JULIA_PKG_SERVER=https://mirrors.nju.edu.cn/julia

Write them into your .zshrc if you want it be set everytime you login.

Also, if you are using a WSL, then the proxy may fail due to internet connection settings for WSL. I’m non-expert in this question, but if you really ran into one, I can provide some hacky solution…

I’m using Manjaro, actually, I should specify the mirror site in julia extension setting (I’m using vscode) :

Thanks anyway!