Julia 1.6.0 packages installation

How to solve this problem:
Some packages have a happy installation and others do not!

(@v1.6) pkg> add Plots
    Updating registry at `C:\Users\hermesr\.julia\registries\General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:976
   Resolving package versions...
     Cloning [2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91] StatsBase from https://github.com/JuliaStats/StatsBase.jl.git
ERROR: failed to clone from https://github.com/JuliaStats/StatsBase.jl.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)

(@v1.6) pkg> add OhMyREPL
   Resolving package versions...
     Cloning [0796e94c-ce3b-5d07-9a54-7f471281c624] Tokenize from https://github.com/JuliaLang/Tokenize.jl.git
ERROR: failed to clone from https://github.com/JuliaLang/Tokenize.jl.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)

(@v1.6) pkg> add Roots
   Resolving package versions...
    Updating `C:\Users\hermesr\.julia\environments\v1.6\Project.toml`
  [f2b01f46] + Roots v1.0.8
    Updating `C:\Users\hermesr\.julia\environments\v1.6\Manifest.toml`
  [f2b01f46] + Roots v1.0.8
  Progress [========================================>]  1/1
1 dependency successfully precompiled in 7 seconds (1 already precompiled)

(@v1.6) pkg> add SpecialFunctions
   Resolving package versions...
     Cloning [34da2185-b29b-5c13-b0c7-acf172513d20] Compat from https://github.com/JuliaLang/Compat.jl.git
ERROR: failed to clone from https://github.com/JuliaLang/Compat.jl.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)
(@v1.6) pkg> st
      Status `C:\Users\hermesr\.julia\environments\v1.6\Project.toml`
  [a8cc5b0e] Crayons v4.0.4
  [f2b01f46] Roots v1.0.8
  [ade2ca70] Dates
(@v1.6) pkg>

julia> VERSION
v"1.6.0"
julia> Sys.CPU_NAME
"ivybridge"
julia> Sys.KERNEL
:NT
julia> Sys.MACHINE
"x86_64-w64-mingw32"
julia> Sys.STDLIB
"C:\\Users\\hermesr\\AppData\\Local\\Programs\\Julia-1.6.0\\share\\julia\\stdlib\\v1.6"
julia> Sys.iswindows()
true


Z:\>NET CONFIG
The following running services can be controlled:

   Server
   Workstation
NET SHARE

Share name   Resource                        Remark

-------------------------------------------------------------------------------
C$           C:\                             Default share
IPC$                                         Remote IPC
ADMIN$       C:\Windows                      Remote Admin

1 Like

Maybe an error with your network connection?

Okay. But why are some packages installed and others not?
As shown in the post above

This has already happened to me on Windows 10.
I deleted the .julia folder and installed everything again. It will take a while but it worked for me.

1 Like

HELP ME!!!
I deleted the .julia folder.
And now I can’t install anything. Previously, before deleting the .julia folder, in Julia 1.6.0 at least some packages were installed.
I had an experience very similar to JuMP installation issue in Julia v1.6 Domains Optimization (Mathematical) package jump
unfortunately I uninstalled Julia 1.5.4; being installed was that I managed to install some packages in Julia 1.6.0 and others not!

  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0 (2021-03-24)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.6) pkg> up
  Installing known registries into `C:\Users\hermesr\.julia`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:976
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:976
     Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)

(@v1.6) pkg> add Roots
  Installing known registries into `C:\Users\hermesr\.julia`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:976
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:976
     Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)

(@v1.6) pkg>
1 Like

Delete the .julia directory again. Set JULIA_PKG_SERVER to “”.

ENV["JULIA_PKG_SERVER"] = ""

and then try to update.

Note that you should be able to have both 1.5.4 and 1.6 installed side-by-side.

1 Like
julia> ENV["JULIA_PKG_SERVER"] = ""
""

(@v1.6) pkg> up
  Installing known registries into `C:\Users\hermesr\.julia`
     Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)

(@v1.6) pkg>  add Roots
  Installing known registries into `C:\Users\hermesr\.julia`
     Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)

(@v1.6) pkg>
1 Like

Installed Julia 1.5.4 again.

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.4 (2021-03-11)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.5) pkg> up
   Updating registry at `C:\Users\hermesr\.julia\registries\General`
No Changes to `C:\Users\hermesr\.julia\environments\v1.5\Project.toml`
No Changes to `C:\Users\hermesr\.julia\environments\v1.5\Manifest.toml`

(@v1.5) pkg> add Crayons
  Resolving package versions...
  Installed Crayons ─ v4.0.4
Updating `C:\Users\hermesr\.julia\environments\v1.5\Project.toml`
  [a8cc5b0e] + Crayons v4.0.4
Updating `C:\Users\hermesr\.julia\environments\v1.5\Manifest.toml`
  [a8cc5b0e] + Crayons v4.0.4

(@v1.5) pkg> OhMyREPL
ERROR: Could not determine command

(@v1.5) pkg> add OhMyREPL
  Resolving package versions...
  Installed Pipe ──────── v1.3.0
  Installed Artifacts ─── v1.3.0
  Installed fzf_jll ───── v0.24.4+0
  Installed JLFzf ─────── v0.1.3
  Installed Tokenize ──── v0.5.15
  Installed JLLWrappers ─ v1.2.0
  Installed OhMyREPL ──── v0.5.10
Updating `C:\Users\hermesr\.julia\environments\v1.5\Project.toml`
  [5fb14364] + OhMyREPL v0.5.10
Updating `C:\Users\hermesr\.julia\environments\v1.5\Manifest.toml`
  [56f22d72] + Artifacts v1.3.0
  [1019f520] + JLFzf v0.1.3
  [692b3bcd] + JLLWrappers v1.2.0
  [5fb14364] + OhMyREPL v0.5.10
  [b98c9c47] + Pipe v1.3.0
  [0796e94c] + Tokenize v0.5.15
  [214eeab7] + fzf_jll v0.24.4+0
  [2a0f44e3] + Base64
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [44cfe95a] + Pkg
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [cf7118a7] + UUIDs

(@v1.5) pkg>

Julia 1.6.0

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0 (2021-03-24)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.6) pkg> up
    Updating registry at `C:\Users\hermesr\.julia\registries\General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:976
  No Changes to `C:\Users\hermesr\.julia\environments\v1.6\Project.toml`
  No Changes to `C:\Users\hermesr\.julia\environments\v1.6\Manifest.toml`

(@v1.6) pkg> add Roots
   Resolving package versions...
     Cloning [f2b01f46-fcfa-551c-844a-d8ac1e96c665] Roots from https://github.com/JuliaMath/Roots.jl.git
ERROR: failed to clone from https://github.com/JuliaMath/Roots.jl.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)

julia> ENV["JULIA_PKG_SERVER"] = ""
""

(@v1.6) pkg> add Roots
   Resolving package versions...
     Cloning [f2b01f46-fcfa-551c-844a-d8ac1e96c665] Roots from https://github.com/JuliaMath/Roots.jl.git
ERROR: failed to clone from https://github.com/JuliaMath/Roots.jl.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)

(@v1.6) pkg>
1 Like

I wonder if some of the solutions in these older posts may be relevant.

1 Like

OK, I have a crazy idea. Can you manually clone these packages using git outside of Julia?

Basically clone https://github.com/JuliaMath/Roots.jl.git to C:\Users\hermesr\.julia\dev\Roots. Then do pkg> dev Roots.