北外镜像源走github的问题

问下安装包时候自动切换github源,是不是正常现象?因为经常遇到自动跑去连github这种情况。

(@v1.4) pkg> add Plots
Resolving package versions…
Installed Ogg_jll ───────────── v1.3.4+0
Installed Showoff ───────────── v0.3.1
Installed FFMPEG_jll ────────── v4.1.0+3
Installed x265_jll ──────────── v3.0.0+1
Installed Contour ───────────── v0.5.4
Installed LibVPX_jll ────────── v1.8.1+1
Installed RecipesPipeline ───── v0.1.11
Installed OpenSSL_jll ───────── v1.1.1+4
Installed Zlib_jll ──────────── v1.2.11+14
Installed Bzip2_jll ─────────── v1.0.6+2
Installed DataValueInterfaces ─ v1.0.0
Installed LAME_jll ──────────── v3.100.0+1
Installed FriBidi_jll ───────── v1.0.5+3
Installed Measures ──────────── v0.3.1
Installed StructArrays ──────── v0.4.4
Installed GeometryBasics ────── v0.2.15
Installed PlotUtils ─────────── v1.0.5
Installed FFMPEG ────────────── v0.3.0
Installed libass_jll ────────── v0.14.0+2
Installed x264_jll ──────────── v2019.5.25+2
Installed Opus_jll ──────────── v1.3.1+1
Installed IterTools ─────────── v1.3.0
Installed PlotThemes ────────── v2.0.0
Installed FreeType2_jll ─────── v2.10.1+2
Installed libfdk_aac_jll ────── v0.1.6+2
Installed Colors ────────────── v0.12.3
Installed libvorbis_jll ─────── v1.3.6+4
Installed FixedPointNumbers ─── v0.8.4
Installed ColorSchemes ──────── v3.9.0
Installed GeometryTypes ─────── v0.8.3
Cloning [91a5bcdd-55d7-5caf-9e0b-520d859cae80] Plots from https://github.com/JuliaPlots/Plots.jl.git
Fetching: [================================> ] 78.0 %
ERROR: failed to clone from https://github.com/JuliaPlots/Plots.jl.git, error: GitError(Code:ERROR, Class:SSL, SSL error: 0xffff8780 - SSL - The peer notified us that the connection is going to be closed)

(@v1.4) pkg>

和你当前的环境有关,通过设置 JULIA_DEPOT_PATH 环境变量来临时创建一个新的代码库

bash-3.2$ JULIA_DEPOT_PATH=$PWD/tmp JULIA_PKG_SERVER=https://mirrors.bfsu.edu.cn/julia/static julia --startup=no -e 'using Pkg; pkg"add Plots"'
 Installing known registries into `~/tmp`
######################################################################## 100.0%
      Added registry `General` to `~/tmp/registries/General`
  Resolving package versions...
  Installed FreeType2_jll ─────────────── v2.10.1+2
  Installed DataValueInterfaces ───────── v1.0.0
  Installed IniFile ───────────────────── v0.5.0
  Installed libfdk_aac_jll ────────────── v0.1.6+2
  Installed libass_jll ────────────────── v0.14.0+2
  Installed Ogg_jll ───────────────────── v1.3.4+0
  Installed libvorbis_jll ─────────────── v1.3.6+4
  Installed LAME_jll ──────────────────── v3.100.0+1
  Installed FriBidi_jll ───────────────── v1.0.5+3
  Installed IteratorInterfaceExtensions ─ v1.0.0
  Installed PlotThemes ────────────────── v2.0.0
  Installed x264_jll ──────────────────── v2019.5.25+2
  Installed Opus_jll ──────────────────── v1.3.1+1
  Installed TableTraits ───────────────── v1.0.0
  Installed RecipesPipeline ───────────── v0.1.11
  Installed RecipesBase ───────────────── v1.0.2
  Installed FFMPEG ────────────────────── v0.3.0
  Installed x265_jll ──────────────────── v3.0.0+1
  Installed MbedTLS_jll ───────────────── v2.16.6+1
  Installed LibVPX_jll ────────────────── v1.8.1+1
  Installed StructArrays ──────────────── v0.4.4
  Installed Adapt ─────────────────────── v2.0.2
  Installed OpenSSL_jll ───────────────── v1.1.1+4
  Installed PlotUtils ─────────────────── v1.0.5
  Installed GeometryBasics ────────────── v0.2.15
  Installed GR ────────────────────────── v0.51.0
  Installed FFMPEG_jll ────────────────── v4.1.0+3
  Installed Bzip2_jll ─────────────────── v1.0.6+2
  Installed GeometryTypes ─────────────── v0.8.3
  Installed MbedTLS ───────────────────── v1.0.2
  Installed Plots ─────────────────────── v1.5.7
  Installed Tables ────────────────────── v1.0.5
  Installed ColorSchemes ──────────────── v3.9.0
  Installed HTTP ──────────────────────── v0.8.17
Downloading artifact: libass
Downloading artifact: FreeType2
Downloading artifact: Ogg
Downloading artifact: libvorbis
Downloading artifact: libfdk_aac
Downloading artifact: LAME
Downloading artifact: FriBidi
Downloading artifact: Opus
Downloading artifact: x264
Downloading artifact: x265
Downloading artifact: MbedTLS
Downloading artifact: LibVPX
Downloading artifact: OpenSSL
Downloading artifact: Bzip2
Downloading artifact: FFMPEG
Updating `~/tmp/environments/v1.5/Project.toml`
  [91a5bcdd] + Plots v1.5.7
Updating `~/tmp/environments/v1.5/Manifest.toml`
  [79e6a3ab] + Adapt v2.0.2
  [6e34b625] + Bzip2_jll v1.0.6+2
  [35d6a980] + ColorSchemes v3.9.0
  [d38c429a] + Contour v0.5.4
  [e2d170a0] + DataValueInterfaces v1.0.0
  [c87230d0] + FFMPEG v0.3.0
  [b22a6f82] + FFMPEG_jll v4.1.0+3
  [d7e528f0] + FreeType2_jll v2.10.1+2
  [559328eb] + FriBidi_jll v1.0.5+3
  [28b8d3ca] + GR v0.51.0
  [5c1252a2] + GeometryBasics v0.2.15
  [4d00f742] + GeometryTypes v0.8.3
  [cd3eb016] + HTTP v0.8.17
  [83e8ac13] + IniFile v0.5.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [682c06a0] + JSON v0.21.0
  [c1c5ebd0] + LAME_jll v3.100.0+1
  [dd192d2f] + LibVPX_jll v1.8.1+1
  [739be429] + MbedTLS v1.0.2
  [c8ffd9c3] + MbedTLS_jll v2.16.6+1
  [442fdcdd] + Measures v0.3.1
  [e7412a2a] + Ogg_jll v1.3.4+0
  [458c3c95] + OpenSSL_jll v1.1.1+4
  [91d4177d] + Opus_jll v1.3.1+1
  [69de0a69] + Parsers v1.0.7
  [ccf2f8ad] + PlotThemes v2.0.0
  [995b91a9] + PlotUtils v1.0.5
  [91a5bcdd] + Plots v1.5.7
  [3cdcf5f2] + RecipesBase v1.0.2
  [01d81517] + RecipesPipeline v0.1.11
  [992d4aef] + Showoff v0.3.1
  [09ab397b] + StructArrays v0.4.4
  [3783bdb8] + TableTraits v1.0.0
  [bd369af6] + Tables v1.0.5
  [0ac62f75] + libass_jll v0.14.0+2
  [f638f0a6] + libfdk_aac_jll v0.1.6+2
  [f27f6e37] + libvorbis_jll v1.3.6+4
  [1270edf5] + x264_jll v2019.5.25+2
  [dfaa095f] + x265_jll v3.0.0+1
  [8bb1440f] + DelimitedFiles
   Building GR ───→ `~/tmp/packages/GR/8mv9N/deps/build.log`
   Building Plots → `~/tmp/packages/Plots/LWw1t/deps/build.log`

试了下,还是会自动连github,应该是北外源响应机制问题,估计瞬间没稳定时间超过T秒自动转备选github,看让北外源那边把T的阀值设置大些,让北外源多响应一会说不定OK。

~/Desktop$ JULIA_DEPOT_PATH=$PWD/tmp JULIA_PKG_SERVER=https://mirrors.bfsu.edu.cn/julia/static julia --startup=no -e ‘using Pkg; pkg"add Plots"’
Cloning default registries into `~/Desktop/tmp`
######################################################################## 100.0%
Added registry `General` to `~/Desktop/tmp/registries/General`
Resolving package versions…
Installed DataAPI ───────────────────── v1.3.0
Installed LibVPX_jll ────────────────── v1.8.1+1
Installed FFMPEG_jll ────────────────── v4.1.0+3
Installed StructArrays ──────────────── v0.4.4
Installed StatsBase ─────────────────── v0.33.0
Installed TableTraits ───────────────── v1.0.0
Installed FFMPEG ────────────────────── v0.3.0
Installed IterTools ─────────────────── v1.3.0
Installed Adapt ─────────────────────── v2.0.2
Installed Contour ───────────────────── v0.5.4
Installed DataStructures ────────────── v0.17.19
Installed x264_jll ──────────────────── v2019.5.25+2
Installed FreeType2_jll ─────────────── v2.10.1+2
Installed Opus_jll ──────────────────── v1.3.1+1
Installed OpenSSL_jll ───────────────── v1.1.1+4
Installed Bzip2_jll ─────────────────── v1.0.6+2
Installed IteratorInterfaceExtensions ─ v1.0.0
Installed PlotThemes ────────────────── v2.0.0
Installed SortingAlgorithms ─────────── v0.3.1
Installed OrderedCollections ────────── v1.3.0
Installed x265_jll ──────────────────── v3.0.0+1
Installed Measures ──────────────────── v0.3.1
Installed FixedPointNumbers ─────────── v0.8.4
Installed libfdk_aac_jll ────────────── v0.1.6+2
Installed FriBidi_jll ───────────────── v1.0.5+3
Installed GeometryBasics ────────────── v0.2.15
Installed Colors ────────────────────── v0.12.3
Installed Reexport ──────────────────── v0.2.0
Installed DataValueInterfaces ───────── v1.0.0
Installed MbedTLS ───────────────────── v1.0.2
Installed Ogg_jll ───────────────────── v1.3.4+0
Installed libvorbis_jll ─────────────── v1.3.6+4
Installed PlotUtils ─────────────────── v1.0.5
Installed NaNMath ───────────────────── v0.3.4
Installed LAME_jll ──────────────────── v3.100.0+1
Installed StaticArrays ──────────────── v0.12.4
Installed Zlib_jll ──────────────────── v1.2.11+14
Installed Missings ──────────────────── v0.4.3
Installed IniFile ───────────────────── v0.5.0
Installed GR ────────────────────────── v0.51.0
Installed MbedTLS_jll ───────────────── v2.16.6+1
Installed Parsers ───────────────────── v1.0.7
Installed Showoff ───────────────────── v0.3.1
Installed Requires ──────────────────── v1.0.1
Installed RecipesBase ───────────────── v1.0.2
Installed libass_jll ────────────────── v0.14.0+2
Installed JSON ──────────────────────── v0.21.0
Installed RecipesPipeline ───────────── v0.1.11
Installed GeometryTypes ─────────────── v0.8.3
Installed ColorSchemes ──────────────── v3.9.0
Cloning [cd3eb016-35fb-5094-929b-558a96fad6f3] HTTP from https://github.com/JuliaWeb/HTTP.jl.git
Installed HTTP ──────────────────────── v0.8.17
Cloning [91a5bcdd-55d7-5caf-9e0b-520d859cae80] Plots from https://github.com/JuliaPlots/Plots.jl.git
Fetching: [===============> ] 36.5 %

还是一样走github,最后卡顿在36.5%停止了。

应该是北外镜像站有一部分数据缺失导致的,同步工具大概有点bug,没有成功检查出哪些包缺失了

京ICP备17009874号-2