Peer reports incompatible or unsupported protocol version.
1、问题
[root@rhelpc1 software]# git clone https://github.com/BGI-shenzhen/PopLDdecay.git Cloning into 'PopLDdecay'... fatal: unable to access 'https://github.com/BGI-shenzhen/PopLDdecay.git/': Peer reports incompatible or unsupported protocol version.
2、查看git版本
[root@rhelpc1 software]# git --version ## 1.8.3.1版本 git version 1.8.3.1
3、下载git安装包
[root@rhelpc1 software]# wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz --2022-04-04 15:47:16-- https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 147.75.95.133, 2604:1380:3000:1500::1 Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|147.75.95.133|:443... connected. ERROR: cannot verify mirrors.edge.kernel.org's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’: Issued certificate has expired. To connect to mirrors.edge.kernel.org insecurely, use `--no-check-certificate'. [root@rhelpc1 software]# wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz --no-check-certificate ## 下载安装包 --2022-04-04 15:47:27-- https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 147.75.95.133, 2604:1380:3000:1500::1 Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|147.75.95.133|:443... connected. WARNING: cannot verify mirrors.edge.kernel.org's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’: Issued certificate has expired. HTTP request sent, awaiting response... 200 OK Length: 5928730 (5.7M) [application/x-gzip] Saving to: ‘git-2.9.5.tar.gz’ 100%[===========================================================================================>] 5,928,730 3.92MB/s in 1.4s 2022-04-04 15:47:29 (3.92 MB/s) - ‘git-2.9.5.tar.gz’ saved [5928730/5928730]
4、编译安装
[root@rhelpc1 software]# tar -xzvf git-2.9.5.tar.gz [root@rhelpc1 software]# cd git-2.9.5/ [root@rhelpc1 git-2.9.5]# ./configure [root@rhelpc1 git-2.9.5]# make [root@rhelpc1 git-2.9.5]# make install
5、测试版本
[root@rhelpc1 git-2.9.5]# pwd /home/software/git-2.9.5 [root@rhelpc1 git-2.9.5]# /home/software/git-2.9.5/git --version git version 2.9.5
6、使用新版本git
[root@rhelpc1 software]# /home/software/git-2.9.5/git clone https://github.com/BGI-shenzhen/PopLDdecay.git Cloning into 'PopLDdecay'... fatal: unable to access 'https://github.com/BGI-shenzhen/PopLDdecay.git/': Peer reports incompatible or unsupported protocol version.
问题依据没有解决。
7、查看系统
[root@rhelpc1 software]# hostnamectl Static hostname: rhelpc1 Icon name: computer Chassis: n/a Machine ID: 7dcb3b04ae354b138b8a02219c0e5dcb Boot ID: b3da3411014840358591722adf02ad99 Virtualization: vmware Operating System: Red Hat Enterprise Linux Server 7.0 (Maipo) CPE OS Name: cpe:/o:redhat:enterprise_linux:7.0:GA:server Kernel: Linux 3.10.0-123.el7.x86_64 Architecture: x86_64
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律