2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

git clone時にcurl 56 GnuTLS recv error (-110)で進まない

Posted at

問題

いつも通り、いや結構久々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.

やったね!

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?