Cant install OpenSpecFun_jll

ok, thanks for your reply!

@giordano
I met the following error, could you help me to fix this?

ERROR: Unable to automatically install 'OpenBLAS' from '/home/jkwwwwow/.julia/packages/OpenBLAS_jll/rnsmb/Artifacts.toml'
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] ensure_artifact_installed(::String, ::Dict{String,Any}, ::String; platform::Pkg.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:894
 [3] ensure_all_artifacts_installed(::String; platform::Pkg.BinaryPlatforms.Platform, pkg_uuid::Nothing, include_lazy::Bool, verbose::Bool, quiet_download::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:958
 [4] download_artifacts(::Pkg.Types.Context, ::Array{String,1}; platform::Pkg.BinaryPlatforms.Linux, verbose::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:616
 [5] download_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; platform::Pkg.BinaryPlatforms.Linux, verbose::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:595
 [6] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:1091
 [7] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:159
 [8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:112
 [9] #add#27 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:109 [inlined]
 [10] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:109 [inlined]
 [11] #add#24 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:107 [inlined]
 [12] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:107 [inlined]
 [13] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:106
 [14] add(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/API.jl:106
 [15] top-level scope at REPL[2]:1 

By the way, do you know how to obtain the hash tree number to specific package?

Try this in a REPL to debug the issue:

]add https://github.com/giordano/DebugArtifacts.jl.git
using DebugArtifacts
debug_artifact("OpenBLAS")

Please copy here the output of the last command

I usually get the hash tree number in the error message when you get the mismatch hash tree error. Otherwise I do not know

I got this error message:

julia> using DebugArtifacts
[ Info: Precompiling DebugArtifacts [4f05f810-3073-4646-a23d-fd50056b1323]

julia> debug_artifact("OpenBLAS")
[ Info: Platform: Linux(:x86_64, libc=:glibc, compiler_abi=CompilerABI(libgfortran_version=v"4.0.0", cxxstring_abi=:cxx11))
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
 OS: Linux (x86_64-pc-linux-gnu)
 CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
 WORD_SIZE: 64
 LIBM: libopenlibm
 LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

[ Info: Downloading Artifacts.toml to /tmp/jl_NEi5Nn/Artifacts.toml...
##O#- #                                                                       
curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接
ERROR: Could not download https://raw.githubusercontent.com/JuliaBinaryWrappers/OpenBLAS_jll.jl/master/Artifacts.toml to /tmp/jl_NEi5Nn/Artifacts.toml:
ProcessFailedException(Base.Process[Process(`curl -C - '-#' -f -o /tmp/jl_NEi5Nn/Artifacts.toml -L https://raw.githubusercontent.com/JuliaBinaryWrappers/OpenBLAS_jll.jl/master/Artifacts.toml`, ProcessExited(7))])
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] download(::String, ::String; verbose::Bool, auth_header::Nothing) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/PlatformEngines.jl:853
[3] (::DebugArtifacts.var"#3#4"{String,Pkg.BinaryPlatforms.Linux,String})(::String) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:57
[4] mktempdir(::DebugArtifacts.var"#3#4"{String,Pkg.BinaryPlatforms.Linux,String}, ::String; prefix::String) at ./file.jl:682
[5] mktempdir at ./file.jl:680 [inlined] (repeats 2 times)
[6] debug_artifact(::String, ::Pkg.BinaryPlatforms.Linux) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:53
[7] debug_artifact(::String) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:43
[8] top-level scope at REPL[5]:1
caused by [exception 1]
failed process: Process(`curl -C - '-#' -f -o /tmp/jl_NEi5Nn/Artifacts.toml -L https://raw.githubusercontent.com/JuliaBinaryWrappers/OpenBLAS_jll.jl/master/Artifacts.toml`, ProcessExited(7)) [7]

Stacktrace:
[1] pipeline_error at ./process.jl:525 [inlined]
[2] run(::Cmd, ::Tuple{Base.DevNull,Base.TTY,Base.TTY}; wait::Bool) at ./process.jl:440
[3] run(::Cmd, ::Tuple{Base.DevNull,Base.TTY,Base.TTY}) at ./process.jl:438
[4] download(::String, ::String; verbose::Bool, auth_header::Nothing) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/PlatformEngines.jl:848
[5] (::DebugArtifacts.var"#3#4"{String,Pkg.BinaryPlatforms.Linux,String})(::String) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:57
[6] mktempdir(::DebugArtifacts.var"#3#4"{String,Pkg.BinaryPlatforms.Linux,String}, ::String; prefix::String) at ./file.jl:682
[7] mktempdir at ./file.jl:680 [inlined] (repeats 2 times)
[8] debug_artifact(::String, ::Pkg.BinaryPlatforms.Linux) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:53
[9] debug_artifact(::String) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:43
[10] top-level scope at REPL[5]:1

What to do next?

Is GitHub blocked for you?

Since you use Julia v1.4, you can try using PkgServer. Set the following environment variable

export JULIA_PKG_SERVER=https://geo.pkg.julialang.org

in your shell and restart Julia. If this works, add this setting in the init file of your shell to make it persistent

Still unable to connect to GitHub, the error message is the same as before:

(gymlab) jkwwwwow@jkwwwwow:~$ export JULIA_PKG_SERVER=https://geo.pkg.julialang.org
(gymlab) jkwwwwow@jkwwwwow:~$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.4.2 (2020-05-23)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using DebugArtifacts;debug_artifact("OpenBLAS")
[ Info: Platform: Linux(:x86_64, libc=:glibc, compiler_abi=CompilerABI(libgfortran_version=v"4.0.0", cxxstring_abi=:cxx11))
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_PKG_SERVER = https://geo.pkg.julialang.org

[ Info: Probing for download engine...
[ Info: Probing curl as a possibility...
[ Info:   Probe successful for curl
[ Info: Found download engine curl
[ Info: Probing for compression engine...
[ Info: Probing tar as a possibility...
[ Info:   Probe successful for tar
[ Info: Found compression engine tar
[ Info: Downloading Artifacts.toml to /tmp/jl_wiZp5B/Artifacts.toml...
#=#=#                                                                         
curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接
ERROR: Could not download https://raw.githubusercontent.com/JuliaBinaryWrappers/OpenBLAS_jll.jl/master/Artifacts.toml to /tmp/jl_wiZp5B/Artifacts.toml:
ProcessFailedException(Base.Process[Process(`curl -C - '-#' -f -o /tmp/jl_wiZp5B/Artifacts.toml -L https://raw.githubusercontent.com/JuliaBinaryWrappers/OpenBLAS_jll.jl/master/Artifacts.toml`, ProcessExited(7))])
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] download(::String, ::String; verbose::Bool, auth_header::Nothing) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/PlatformEngines.jl:853
 [3] (::DebugArtifacts.var"#3#4"{String,Pkg.BinaryPlatforms.Linux,String})(::String) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:57
 [4] mktempdir(::DebugArtifacts.var"#3#4"{String,Pkg.BinaryPlatforms.Linux,String}, ::String; prefix::String) at ./file.jl:682
 [5] mktempdir at ./file.jl:680 [inlined] (repeats 2 times)
 [6] debug_artifact(::String, ::Pkg.BinaryPlatforms.Linux) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:53
 [7] debug_artifact(::String) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:43
 [8] top-level scope at REPL[1]:1
caused by [exception 1]
failed process: Process(`curl -C - '-#' -f -o /tmp/jl_wiZp5B/Artifacts.toml -L https://raw.githubusercontent.com/JuliaBinaryWrappers/OpenBLAS_jll.jl/master/Artifacts.toml`, ProcessExited(7)) [7]

Stacktrace:
 [1] pipeline_error at ./process.jl:525 [inlined]
 [2] run(::Cmd, ::Tuple{Base.DevNull,Base.TTY,Base.TTY}; wait::Bool) at ./process.jl:440
 [3] run(::Cmd, ::Tuple{Base.DevNull,Base.TTY,Base.TTY}) at ./process.jl:438
 [4] download(::String, ::String; verbose::Bool, auth_header::Nothing) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/PlatformEngines.jl:848
 [5] (::DebugArtifacts.var"#3#4"{String,Pkg.BinaryPlatforms.Linux,String})(::String) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:57
 [6] mktempdir(::DebugArtifacts.var"#3#4"{String,Pkg.BinaryPlatforms.Linux,String}, ::String; prefix::String) at ./file.jl:682
 [7] mktempdir at ./file.jl:680 [inlined] (repeats 2 times)
 [8] debug_artifact(::String, ::Pkg.BinaryPlatforms.Linux) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:53
 [9] debug_artifact(::String) at /home/jkwwwwow/.julia/packages/DebugArtifacts/VcVh2/src/DebugArtifacts.jl:43
 [10] top-level scope at REPL[1]:1 

Can I install this pkg manually? Since it can’t be installed automatically, just like the Fritz_Ratnasamy do as previous massages on this thread. But I’m not sure where should I unzip this downloaded pkg, he just show how to install the OpenSpecFun_jll manually. What about the others?

Can you try to install the package like you did before now? DebugArtifacts.jl is only to understand what’s the problem, which should be clear now: you can’t access some parts of GitHub

Thanks for your suggestion, I have solved the installation problem I encountered when using the command Pkg.add(), although I don’t know why it works.
When I try to reinstall Julia according to the method here, I found that the last two steps of the installation part I did not do before. So I just added those two commands in the terminal
sudo cp -r julia-1.4.2 /opt/
sudo ln -s /opt/julia-1.4.2/bin/julia /usr/local/bin/julia
and then it can automatically install the packages I need.

That was the whole point of using PkgServer