# Error in Julia v1.11 when updating Registry or packages

**URL:** https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547
**Category:** General Usage
**Tags:** registry
**Created:** [May 22, 2024, 7:29am UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547 "2024-05-22T07:29:39Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![nandoconde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nandoconde/32/19497_2.png) [@nandoconde](https://discourse.julialang.org/u/nandoconde)
#### Post date: [May 22, 2024, 7:29am UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/1 "2024-05-22T07:29:39Z")

</div>

## Problem

I installed Julia with `juliaup` in Windows, and I am currently on v1.11 beta. When I try to run `] update` the following appears:

```julia
(@v1.11) pkg> update
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = RequestError: Failure when receiving data from the peer while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry C:\Users\fcpv\.julia\juliaup\julia-1.11.0-beta1+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Registry\Registry.jl:75
    Updating registry at `C:\Users\fcpv\.julia\registries\General.toml`
  No Changes to `C:\Users\fcpv\.julia\environments\v1.11\Project.toml`
  No Changes to `C:\Users\fcpv\.julia\environments\v1.11\Manifest.toml`

```

Plus, it takes a bit longer than my v1.10 instance (maybe 1 second or so) in launching and also in entering `Pkg` REPL mode.

## Current Julia version

```julia
julia> versioninfo()
Julia Version 1.11.0-beta1
Commit 08e1fc0abb (2024-04-10 08:40 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

```

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [May 22, 2024, 1:33pm UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/2 "2024-05-22T13:33:46Z")

</div>

The first issue could be a temporary network issue or perhaps your firewall is blocking something.

> [@nandoconde](#):
>
> Plus, it takes a bit longer than my v1.10 instance (maybe 1 second or so) in launching and also in entering `Pkg` REPL mode.

This is somewhat expected.

Details here:

> [@Should we distribute multiple official system images for Julia 1.11?](https://discourse.julialang.org/t/should-we-distribute-multiple-official-system-images-for-julia-1-11/107353):
>
> In Julia 1.11, REPL.jl and Pkg.jl are now independent packages and not standard in the system image. This will help slim down the system image and make Julia’s packaging more modular. REPL.jl and Pkg.jl will be able to updated independently of a Julia release. I’m also currently investigating how to decouple the two packages by making the Pkg REPL mode a package extension. However, having Pkg.jl and REPL.jl as independent packages will make startup of the interactive Julia experience slower tha…

---

<div class="post-metadata">

### Author: ![nandoconde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nandoconde/32/19497_2.png) [@nandoconde](https://discourse.julialang.org/u/nandoconde)
#### Post date: [May 22, 2024, 2:17pm UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/3 "2024-05-22T14:17:28Z")

</div>

I am using my home’s WiFi, but this is happening in a corporate laptop. Any way to check this?

---

<div class="post-metadata">

### Author: ![nandoconde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nandoconde/32/19497_2.png) [@nandoconde](https://discourse.julialang.org/u/nandoconde)
#### Post date: [May 27, 2024, 6:35am UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/4 "2024-05-27T06:35:56Z")

</div>

Sorry to ping again, it is really making it difficult for me to work in my corporate laptop. Pinging Stefan because I think he did some rework facing v1.11 regarding Pkg server infrastructure.

@mkitti  
@StefanKarpinski

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [May 27, 2024, 1:27pm UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/5 "2024-05-27T13:27:51Z")

</div>

Seems likely that your company laptop is setup to use some kind of firewall that’s blocking access to [pkg.julialang.org](http://pkg.julialang.org) and/or [storage.julialang.net](http://storage.julialang.net). That wouldn’t have changed in 1.11, however. I would talk to your sysadmins and get them to help you.

---

<div class="post-metadata">

### Author: ![nandoconde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nandoconde/32/19497_2.png) [@nandoconde](https://discourse.julialang.org/u/nandoconde)
#### Post date: [May 27, 2024, 3:09pm UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/6 "2024-05-27T15:09:26Z")

</div>

Is there any way to check at which point is the process failing? That might help them debug it.

Thanks for the help!

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [May 27, 2024, 5:12pm UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/7 "2024-05-27T17:12:08Z")

</div>

Usually a good starting point is to try

```julia
curl -L https://pkg.julialang.org/registries

```

---

<div class="post-metadata">

### Author: ![nandoconde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nandoconde/32/19497_2.png) [@nandoconde](https://discourse.julialang.org/u/nandoconde)
#### Post date: [May 28, 2024, 9:38pm UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/8 "2024-05-28T21:38:57Z")

</div>

> [@GunnarFarneback](#):
>
> ```julia
> curl -L https://pkg.julialang.org/registries
> 
> ```

This happens:

```bash
fcpv@ltfcpv MINGW64 ~
$ curl -L https://pkg.julialang.org/registries
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - The revocation function was unable to check revocation for the certificate.

```

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [May 28, 2024, 9:42pm UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/9 "2024-05-28T21:42:26Z")

</div>

Have you contacted your corporate IT regarding accessing `pkg.julialang.org`, particularly `storage.julialang.net`?

---

<div class="post-metadata">

### Author: ![nandoconde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nandoconde/32/19497_2.png) [@nandoconde](https://discourse.julialang.org/u/nandoconde)
#### Post date: [August 30, 2024, 7:10am UTC](https://discourse.julialang.org/t/error-in-julia-v1-11-when-updating-registry-or-packages/114547/10 "2024-08-30T07:10:25Z")

</div>

> [@nandoconde](#):
>
> > [@GunnarFarneback](#):
> >
> > ```julia-auto
> > curl -L https://pkg.julialang.org/registries
> > 
> > ```

A bit of a follow-up.

In my corporate machine I have both Windows and WSL installed. Both error in v1.11rc3 but none of them in v1.10.5, but the error in WSL is a bit more concrete (or maybe just different).

## WSL

```julia
fcpv@ltfcpv:~$ julia +1.11
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.11.0-rc3 (2024-08-26)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.11) pkg> up
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = RequestError: Cert verify failed: BADCERT_NOT_TRUSTED while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry ~/.julia/juliaup/julia-1.11.0-rc3+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/src/Registry/Registry.jl:77
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/.julia/environments/v1.11/Project.toml`
  No Changes to `~/.julia/environments/v1.11/Manifest.toml`

```

## Windows

```julia
PS C:\Users\fcpv> julia +1.11
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.11.0-rc3 (2024-08-26)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

(@v1.11) pkg> up
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = RequestError: Failure when receiving data from the peer while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry C:\Users\fcpv\.julia\juliaup\julia-1.11.0-rc3+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\Registry\Registry.jl:77
    Updating registry at `C:\Users\fcpv\.julia\registries\General.toml`
  No Changes to `C:\Users\fcpv\.julia\environments\v1.11\Project.toml`
  No Changes to `C:\Users\fcpv\.julia\environments\v1.11\Manifest.toml`

```

The `curl` that @GunnarFarneback suggested is successful in WSL and  
Powershell:  
**WSL:**

```bash
fcpv@ltfcpv:~$ curl -L https://pkg.julialang.org/registries
/registry/23338594-aafe-5451-b93e-139f81909106/16827a1f6b7be6e740a7f0fd6949d072b882926b

```

**Powershell**

```powershell
PS C:\Users\fcpv> Invoke-WebRequest -Uri https://pkg.julialang.org/registries

StatusCode : 200
StatusDescription : OK
Content : {47, 114, 101, 103...}
RawContent : HTTP/1.1 200 OK
                    Connection: keep-alive
                    X-lb-strategy: pkgservers_roundrobin
                    Accept-Ranges: bytes
                    Content-Length: 88
                    Content-Type: application/octet-stream
                    Date: Fri, 30 Aug 2024 07:08:43 GMT
                    ET...
Headers : {[Connection, keep-alive], [X-lb-strategy, pkgservers_roundrobin], [Accept-Ranges, bytes], [Content-Length,
                    88]...}
RawContentLength : 88

```

I can even access on Chrome to the page that `https://pkg.julialang.org/registries` redirects to, and it forwards me directly to the EU server.

Any help?
