問題
いつも通り、いや結構久々WSL2上でgit clone
をしてみたところ、clone出来ない事象が発生する。
XXXXXX@XXXXXX:~/git$ git clone https://github.com/The-Japan-DataScientist-Society/100knocks-preprocess.git
Cloning into '100knocks-preprocess'...
remote: Enumerating objects: 1798, done.
remote: Counting objects: 100% (593/593), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 1798 (delta 523), reused 513 (delta 494), pack-reused 1205
Receiving objects: 100% (1798/1798), 20.91 MiB | 5.44 MiB/s, done.
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
Resolving deltas: 100% (1004/1004), done.
ちょっと前に実施した際は上手くいっていたので、設定の問題ではないはず。
環境
- Windows10
- WSL2
- Ubuntu 20.04
調査結果
https://taktak.jp/2023/07/01/4492/
https://stackoverflow.com/questions/52529639/gnutls-recv-error-110-the-tls-connection-was-non-properly-terminated/52530617#52530617
うーん。zscalerね…。またか…。
しかもgitの再ビルドが必要なの…?
解決法
stackoverflowにはいくつかの解決法が書いてあるが、直近の方が望ましそうなので自分が上手くいった手順を記載する。
sudo apt remove git -y
sudo apt update && sudo apt upgrade
DEBIAN_FRONTEND=noninteractive
sudo apt install build-essential autoconf dh-autoreconf libcurl4-openssl-dev \
tcl-dev gettext asciidoc docbook2x install-info \
libexpat1-dev libz-dev -y
wget https://raw.githubusercontent.com/paul-nelson-baker/git-openssl-shellscript/master/compile-git-with-openssl.sh .
./compile-git-with-openssl.sh -skiptests
これをやってgit cloneを再度試してみる。
XXXXXX@XXXXXX:~/git$ git clone https://github.com/The-Japan-DataScientist-Society/100knocks-preprocess.git
Cloning into '100knocks-preprocess'...
remote: Enumerating objects: 1798, done.
remote: Counting objects: 100% (593/593), done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 1798 (delta 523), reused 513 (delta 494), pack-reused 1205
Receiving objects: 100% (1798/1798), 20.91 MiB | 5.54 MiB/s, done.
Resolving deltas: 100% (1004/1004), done.
やったね!