Failed to download from https://pkg.julialang.org/registry

I am running Julia 1.9.4 in a Linux partition (Ubuntu 22.04.02 LTS) under Windows 11 / WSL.

I am trying to create a project template using the following file (Template.Judyn.jl) with the command

using PkgTemplates
include(“Template.JuDyn.jl”)
tmpl(“JuDyn”)

File

using PkgTemplates
tmpl = Template(;
user=“mgeradin”,
authors=“Michel Geradin mgeradin@gmail.com and contributors”,
dir=“~/Projects/Julia/JUDYN”,
host=“https://github.com”,
julia=v"1.8",
plugins=[
ProjectFile(;
version=v"0.0.1"),
SrcDir(),
Tests(;
project=true),
Readme(;
destination=“README.md”),
License(;
name=“MIT”,
path=nothing,
destination=“LICENSE.md”),
Git(;
ignore=String[“.jld”, “src/.h5”,
“test/.jld”, “test/src/.h5”],
name=nothing,
email=nothing,
ssh=false,
jl=true,
manifest=true,
gpgsign=false),
Documenter{Nothing}(;
assets=String,
logo=Logo(),
canonical_url=nothing,
devbranch=nothing,
edit_link=:devbranch,
makedocs_kwargs=Dict{Symbol,Any}()),
],
)

and I get the following output

julia> tmpl(“JuDyn”)

[ Info: Running prehooks
[ Info: Running hooks
Activating new project at ~/Projects/Julia/JUDYN/JuDyn/test
Updating registry at ~/.julia/registries/General.toml
┌ Error: Some registries failed to update:
│ — /home/michel22/.julia/registries/General.toml — failed to download from https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/128add4e3c418c723616a4edc835a57711149afc. Exception: RequestError: HTTP/2 200 (Failed receiving HTTP2 data: 56(Failure when receiving data from the peer)) while requesting https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/128add4e3c418c723616a4edc835a57711149afc
└ @ Pkg.Registry /opt/julia-1.9.4/share/julia/stdlib/v1.9/Pkg/src/Registry/Registry.jl:510
Resolving package versions…
Updating ~/Projects/Julia/JUDYN/JuDyn/test/Project.toml
[8dfed614] + Test
Updating ~/Projects/Julia/JUDYN/JuDyn/test/Manifest.toml
[2a0f44e3] + Base64
[b77e0a4c] + InteractiveUtils
[56ddb016] + Logging
[d6f4376e] + Markdown
[9a3f8284] + Random
[ea8e919c] + SHA v0.7.0
[9e88b42a] + Serialization
[8dfed614] + Test
Activating project at ~/.julia/environments/v1.9
Activating new project at ~/Projects/Julia/JUDYN/JuDyn/docs
Resolving package versions…
Downloaded artifact: OpenSSL
Downloaded artifact: OpenSSL
Activating project at ~/.julia/environments/v1.9
ERROR: Unable to automatically download/install artifact ‘OpenSSL’ from sources listed in ‘/home/michel22/.julia/packages/OpenSSL_jll/OoZAG/Artifacts.toml’.
Sources attempted:

Stacktrace: …

=============================================================

Can you tell me how to resolve the problem? It seems to be an problem of authorization.

Thank you in advance.

Are you behind a proxy or firewall or something similar?

1 Like