# Could not download https://pkg.julialang.org/registries and cannot precompile \`CUDA.jl\` + addrspaceptr not defined

**URL:** <https://discourse.julialang.org/t/could-not-download-https-pkg-julialang-org-registries-and-cannot-precompile-cuda-jl-addrspaceptr-not-defined/47344>\
**Category:** New to Julia\
**Tags:** question, package, pkg, cuda\
**Created:** [September 27, 2020, 2:14am UTC](https://discourse.julialang.org/t/could-not-download-https-pkg-julialang-org-registries-and-cannot-precompile-cuda-jl-addrspaceptr-not-defined/47344 "2020-09-27T02:14:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaepil\_Lee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaepil_lee/32/9146_2.png) [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)\
**Post date:** [September 27, 2020, 2:14am UTC](https://discourse.julialang.org/t/could-not-download-https-pkg-julialang-org-registries-and-cannot-precompile-cuda-jl-addrspaceptr-not-defined/47344/1 "2020-09-27T02:14:00Z")

</div>

Hi Julia users!

As the new version came out and having a LOT of problems installing/precompiling `CUDA.jl`, `CUDAnative.jl`, `CuArrays.jl`, I decided to freshly reinstall Julia 1.5.2. However, I see the specified error message:

```julia
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.5.2 (2020-09-23)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.5) pkg> add IJulia InstantiateFromURL
 Installing known registries into `C:\Users\jaepil\.julia`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Types.jl:951
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Types.jl:951

```

It seems the server is down and it shows `502 Bad Gateway`. Since using `"https://github.com/JuliaRegistries/General.git"` does not update `CUDA.jl` (v0.1.0), I can’t seem to use CUDA. So…

1. How can I fix `could not download https://pkg.julialang.org/registries`?
2. How can I update `CUDA.jl` and its companion packages to get it running?

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![Jaepil\_Lee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaepil_lee/32/9146_2.png) [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)\
**Post date:** [September 27, 2020, 3:59am UTC](https://discourse.julialang.org/t/could-not-download-https-pkg-julialang-org-registries-and-cannot-precompile-cuda-jl-addrspaceptr-not-defined/47344/2 "2020-09-27T03:59:34Z")

</div>

For those future readers who are having similar questions:

1. `could not download https://pkg.julialang.org/registries` is returned when the server is down.
2. `CUDAnative.jl`, `CUDAapi.jl` are deprecated.

---

<div class="post-metadata">

**Author:** ![qsong](https://avatars.discourse-cdn.com/v4/letter/q/d07c76/32.png) [@qsong](https://discourse.julialang.org/u/qsong)\
**Post date:** [September 27, 2020, 1:22pm UTC](https://discourse.julialang.org/t/could-not-download-https-pkg-julialang-org-registries-and-cannot-precompile-cuda-jl-addrspaceptr-not-defined/47344/3 "2020-09-27T13:22:54Z")

</div>

So when will the server go alive? Are there any notice about down time of the server?

---

<div class="post-metadata">

**Author:** ![Jaepil\_Lee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jaepil_lee/32/9146_2.png) [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)\
**Post date:** [October 2, 2020, 3:52pm UTC](https://discourse.julialang.org/t/could-not-download-https-pkg-julialang-org-registries-and-cannot-precompile-cuda-jl-addrspaceptr-not-defined/47344/4 "2020-10-02T15:52:36Z")

</div>

I see that it is on and off. So I reran the whole process hoping it does not close. Eventually it worked.

---

<div class="post-metadata">

**Author:** ![wulan87](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wulan87/32/20084_2.png) [@wulan87](https://discourse.julialang.org/u/wulan87)\
**Post date:** [November 13, 2020, 1:06pm UTC](https://discourse.julialang.org/t/could-not-download-https-pkg-julialang-org-registries-and-cannot-precompile-cuda-jl-addrspaceptr-not-defined/47344/6 "2020-11-13T13:06:03Z")

</div>

Hi! I found this work for me for the same problem. So I started to update / upgrade my powershell from 2 into powershell 5:) (I use windows)
