Tencent virtual machine doesn’t know why it can’t git clone, and an error is reported:
fatal: unable to access 'https://github.com/asdf-vm/asdf-plugins.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
plugin ruby not found in repository
After checking, you need to use libcurl4 OpenSSL dev to replace gnutls to compile GIT.
sudo apt-get install build-essential fakeroot dpkg-dev
mkdir ~/git-openssl
cd ~/git-openssl
sudo apt-get source git
sudo apt-get build-dep git
If there is an error that the source code cannot be found, use the command sudo vim /etc/apt/sources.list to open the file and uncomment the line with deb_src, save and run sudo apt update, and then execute the last command above.
Then:
sudo apt-get install libcurl4-openssl-dev
sudo dpkg-source -x git_2.17.1-1ubuntu0.9.dsc
cd git_2.17.1 # Actual version may differ
Then edit the Debian/control file and use the command sudo VIM deebian/control to change all libcurl4 gnutls dev to libcurl4 OpenSSL dev. (I only met one libcurl4 gnutls dev here)
then run the command:
# This step will take a long time, wait patiently
sudo dpkg-buildpackage -rfakeroot -b
sudo dpkg -i git_2.17.1-1ubuntu0.9_amd64.deb
That’s it. Just git again
+ git clone https://github.com/asdf-vm/asdf.git /root/.asdf --depth 1
Cloning into '/root/.asdf'...
+ echo -e '\n. $HOME/.asdf/asdf.sh'
+ echo -e '\n. $HOME/.asdf/completions/asdf.bash'
+ echo -e 'legacy_version_file = yes'
+ asdf plugin-add ruby
initializing plugin repository...Cloning into '/root/.asdf/repository'...
————————————————————————————Renew
I did it again in the afternoon. There was still the same problem. Finally, the reset agent solved it perfectly
git config --global --unset https.https://github.com.proxy
git config --global --unset http.https://github.com.proxy
Read More:
- [Solved] Git Clone Error: The TLS connection was non-properly terminated.
- [Solved] git error: RPC failed; curl 56 Recv failure:Connection was resetB/s
- [Solved] OpenSSL ssL_read: Connection was aborted,errno 10053
- [Solved] Qt Error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
- Connection was reset, errno 10054 Error [How to Solve]
- Git push error: error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
- [Solved] Ubuntu 20.04 LTS Install k8s Error: The connection to the server localhost:8080 was refused
- [Solved] Git push Error: remote: Support for password authentication was removed on August 13, 2021.
- [Solved] fatal: not in a git directory Error: Command failed with exit 128: git
- Git push Submit to Remote Error: “remote: Support for password authentication was removed on August 13, 2021.“
- [Solved] zabbix Error: Cannot perform request: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small
- [Solved] pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- [Solved] when using jupyter notebook, “terminated worker error” appears
- [Solved] kubelet Startup Error: cannot find network namespace for the terminated container
- [Solved] FileUploadException: the request was rejected because no multipart boundary was found
- [Solved] ngrok 1.7 Build Error: remote error: tls: bad certificate
- How to Fix Error Cannot find command ‘git‘ – do you have ‘git‘ installed and in your PATH?
- PLSQL even oracle11g problem on 64-bit machine: SQL*Net not properly installed and ORA-12154:TNS: cannot handle service name
- Git pull and Git pull origin master Warning: Pulling without specifying how to reconcile divergent branches
- SourceTree Git Error: remote: HTTP Basic: Access denied fatal: Authentication failed