文章目录
前言
编译WRT时常因git下载github或其他外链源码失败,导致编译异常GnuTLS recv error,总结了两种解决方法。
一、错误原因: GnuTLS recv error (-110): The TLS connection was non-properly terminated
具体报错信息如下:
Cloning into 'gramine'...
fatal: unable to access 'https://github.com/gramineproject/gramine.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
二、解决办法一
apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1000000000
三、解决方案二
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