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

 

posted @ 2022-04-04 16:07  小鲨鱼2018  阅读(326)  评论(0编辑  收藏  举报