# Could not download registries

**URL:** https://discourse.julialang.org/t/could-not-download-registries/118486
**Category:** General Usage
**Tags:** pkg-update
**Created:** [August 22, 2024, 1:21pm UTC](https://discourse.julialang.org/t/could-not-download-registries/118486 "2024-08-22T13:21:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Stephen](https://discourse.julialang.org/u/Stephen)
#### Post date: [August 22, 2024, 1:21pm UTC](https://discourse.julialang.org/t/could-not-download-registries/118486/1 "2024-08-22T13:21:41Z")

</div>

```julia
 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

```

---

<div class="post-metadata">

### Author: ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)
#### Post date: [August 22, 2024, 9:06pm UTC](https://discourse.julialang.org/t/could-not-download-registries/118486/2 "2024-08-22T21:06:41Z")

</div>

> [@Stephen](#):
>
> `Recv failure: 连接被对方重置`

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](https://discourse.julialang.org/t/why-is-it-so-hard-to-install-packages-in-julia-from-china/87566/11)

---

<div class="post-metadata">

### Author: ![Stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Stephen](https://discourse.julialang.org/u/Stephen)
#### Post date: [August 22, 2024, 11:36pm UTC](https://discourse.julialang.org/t/could-not-download-registries/118486/3 "2024-08-22T23:36:40Z")

</div>

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

 ![屏幕截图_20240823_073250](https://global.discourse-cdn.com/julialang/original/3X/1/d/1dc477548b5ed4ca7e7f38cd44bb47dafab5a31b.png)

When excuting `versioninfo()` gives:

```julia
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

```

---

<div class="post-metadata">

### Author: ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)
#### Post date: [August 23, 2024, 2:49am UTC](https://discourse.julialang.org/t/could-not-download-registries/118486/4 "2024-08-23T02:49:50Z")

</div>

> [@Stephen](#):
>
> ```julia
> 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
> 
> ```

How did you install Julia? If you used your distros package manager then uninstall and reinstall via [juliaup](https://github.com/JuliaLang/juliaup) (should also be mentioned on top of [Download Julia](https://julialang.org/downloads/))

---

<div class="post-metadata">

### Author: ![Stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Stephen](https://discourse.julialang.org/u/Stephen)
#### Post date: [August 23, 2024, 12:10pm UTC](https://discourse.julialang.org/t/could-not-download-registries/118486/5 "2024-08-23T12:10:59Z")

</div>

> [@abraemer](#):
>
> via [juliaup](https://github.com/JuliaLang/juliaup)

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

---

<div class="post-metadata">

### Author: ![Stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Stephen](https://discourse.julialang.org/u/Stephen)
#### Post date: [August 25, 2024, 10:43am UTC](https://discourse.julialang.org/t/could-not-download-registries/118486/6 "2024-08-25T10:43:22Z")

</div>

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

> **Error**
>
> ```julia
> 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
> 
> ```

---

<div class="post-metadata">

### Author: ![hz-xiaxz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hz-xiaxz/32/209585_2.png) [@hz-xiaxz](https://discourse.julialang.org/u/hz-xiaxz)
#### Post date: [August 25, 2024, 1:44pm UTC](https://discourse.julialang.org/t/could-not-download-registries/118486/7 "2024-08-25T13:44:40Z")

</div>

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

```bash
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…

---

<div class="post-metadata">

### Author: ![Stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Stephen](https://discourse.julialang.org/u/Stephen)
#### Post date: [August 26, 2024, 12:46pm UTC](https://discourse.julialang.org/t/could-not-download-registries/118486/8 "2024-08-26T12:46:08Z")

</div>

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

 ![屏幕截图_20240826_204059](https://global.discourse-cdn.com/julialang/original/3X/e/a/eaba3bdba1c8ee13c2e20db8eeb6838752feb84d.png)

Thanks anyway!
