运行git clone
命令时出现以下报错:
fatal: unable to access 'https://github.com/.../': Peer reports incompatible or unsupported protocol version.
更新nss
与curl
即可:yum update nss curl
[root@wenhairu.com ~]# git clone https://github.com/TelegramMessenger/MTProxy
Cloning into 'MTProxy'...
fatal: unable to access 'https://github.com/TelegramMessenger/MTProxy/': Peer reports incompatible or unsupported protocol version.
[root@wenhairu.com ~]# yum update nss curl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.rit.edu
* epel: fedora-epel.mirrors.tds.net
* extras: mirror.umd.edu
* updates: mirror.us-midwest-1.nexcess.net
Resolving Dependencies
--> Running transaction check
---> Package curl.x86_64 0:7.29.0-46.el7 will be updated
---> Package curl.x86_64 0:7.29.0-51.el7 will be an update
--> Processing Dependency: libcurl = 7.29.0-51.el7 for package: curl-7.29.0-51.el7.x86_64
---> Package nss.x86_64 0:3.15.4-7.el7_0 will be updated
--> Processing Dependency: nss = 3.15.4-7.el7_0 for package: nss-sysinit-3.15.4-7.el7_0.x86_64
--> Processing Dependency: nss(x86-64) = 3.15.4-7.el7_0 for package: nss-tools-3.15.4-7.el7_0.x86_64
---> Package nss.x86_64 0:3.36.0-7.1.el7_6 will be an update
--> Processing Dependency: nss-util >= 3.36.0-1.1 for package: nss-3.36.0-7.1.el7_6.x86_64
--> Processing Dependency: nss-softokn(x86-64) >= 3.36.0-1 for package: nss-3.36.0-7.1.el7_6.x86_64
--> Processing Dependency: nss-pem(x86-64) for package: nss-3.36.0-7.1.el7_6.x86_64
--> Running transaction check
---> Package libcurl.x86_64 0:7.29.0-46.el7 will be updated
--> Processing Dependency: libcurl = 7.29.0-46.el7 for package: libcurl-devel-7.29.0-46.el7.x86_64
---> Package libcurl.x86_64 0:7.29.0-51.el7 will be an update
---> Package nss-pem.x86_64 0:1.0.3-5.el7 will be installed
---> Package nss-softokn.x86_64 0:3.15.4-2.el7 will be updated
---> Package nss-softokn.x86_64 0:3.36.0-5.el7_5 will be an update
---> Package nss-sysinit.x86_64 0:3.15.4-7.el7_0 will be updated
---> Package nss-sysinit.x86_64 0:3.36.0-7.1.el7_6 will be an update
---> Package nss-tools.x86_64 0:3.15.4-7.el7_0 will be updated
---> Package nss-tools.x86_64 0:3.36.0-7.1.el7_6 will be an update
---> Package nss-util.x86_64 0:3.36.0-1.el7_5 will be updated
---> Package nss-util.x86_64 0:3.36.0-1.1.el7_6 will be an update
--> Running transaction check
---> Package libcurl-devel.x86_64 0:7.29.0-46.el7 will be updated
---> Package libcurl-devel.x86_64 0:7.29.0-51.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================
Package Arch Version Repository Size
================================================================================================
Updating:
curl x86_64 7.29.0-51.el7 base 269 k
nss x86_64 3.36.0-7.1.el7_6 updates 835 k
Installing for dependencies:
nss-pem x86_64 1.0.3-5.el7 base 74 k
Updating for dependencies:
libcurl x86_64 7.29.0-51.el7 base 221 k
libcurl-devel x86_64 7.29.0-51.el7 base 302 k
nss-softokn x86_64 3.36.0-5.el7_5 base 315 k
nss-sysinit x86_64 3.36.0-7.1.el7_6 updates 62 k
nss-tools x86_64 3.36.0-7.1.el7_6 updates 515 k
nss-util x86_64 3.36.0-1.1.el7_6 updates 78 k
Transaction Summary
================================================================================================
Install ( 1 Dependent package)
Upgrade 2 Packages (+6 Dependent packages)
Total download size: 2.6 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/9): libcurl-devel-7.29.0-51.el7.x86_64.rpm | 302 kB 00:00:00
(2/9): nss-3.36.0-7.1.el7_6.x86_64.rpm | 835 kB 00:00:00
(3/9): nss-pem-1.0.3-5.el7.x86_64.rpm | 74 kB 00:00:00
(4/9): libcurl-7.29.0-51.el7.x86_64.rpm | 221 kB 00:00:00
(5/9): nss-softokn-3.36.0-5.el7_5.x86_64.rpm | 315 kB 00:00:00
(6/9): nss-util-3.36.0-1.1.el7_6.x86_64.rpm | 78 kB 00:00:00
(7/9): curl-7.29.0-51.el7.x86_64.rpm | 269 kB 00:00:00
(8/9): nss-tools-3.36.0-7.1.el7_6.x86_64.rpm | 515 kB 00:00:00
(9/9): nss-sysinit-3.36.0-7.1.el7_6.x86_64.rpm | 62 kB 00:00:00
------------------------------------------------------------------------------------------------
Total 2.0 MB/s | 2.6 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : nss-util-3.36.0-1.1.el7_6.x86_64 1/17
Updating : nss-softokn-3.36.0-5.el7_5.x86_64 2/17
Installing : nss-pem-1.0.3-5.el7.x86_64 3/17
Updating : nss-sysinit-3.36.0-7.1.el7_6.x86_64 4/17
Updating : nss-3.36.0-7.1.el7_6.x86_64 5/17
Updating : libcurl-7.29.0-51.el7.x86_64 6/17
Updating : curl-7.29.0-51.el7.x86_64 7/17
Updating : libcurl-devel-7.29.0-51.el7.x86_64 8/17
Updating : nss-tools-3.36.0-7.1.el7_6.x86_64 9/17
Cleanup : nss-tools-3.15.4-7.el7_0.x86_64 10/17
Cleanup : curl-7.29.0-46.el7.x86_64 11/17
Cleanup : libcurl-devel-7.29.0-46.el7.x86_64 12/17
Cleanup : libcurl-7.29.0-46.el7.x86_64 13/17
Cleanup : nss-sysinit-3.15.4-7.el7_0.x86_64 14/17
Cleanup : nss-3.15.4-7.el7_0.x86_64 15/17
Cleanup : nss-softokn-3.15.4-2.el7.x86_64 16/17
Cleanup : nss-util-3.36.0-1.el7_5.x86_64 17/17
Verifying : nss-3.36.0-7.1.el7_6.x86_64 1/17
Verifying : nss-util-3.36.0-1.1.el7_6.x86_64 2/17
Verifying : nss-tools-3.36.0-7.1.el7_6.x86_64 3/17
Verifying : nss-pem-1.0.3-5.el7.x86_64 4/17
Verifying : nss-sysinit-3.36.0-7.1.el7_6.x86_64 5/17
Verifying : curl-7.29.0-51.el7.x86_64 6/17
Verifying : libcurl-devel-7.29.0-51.el7.x86_64 7/17
Verifying : libcurl-7.29.0-51.el7.x86_64 8/17
Verifying : nss-softokn-3.36.0-5.el7_5.x86_64 9/17
Verifying : nss-softokn-3.15.4-2.el7.x86_64 10/17
Verifying : nss-util-3.36.0-1.el7_5.x86_64 11/17
Verifying : nss-3.15.4-7.el7_0.x86_64 12/17
Verifying : curl-7.29.0-46.el7.x86_64 13/17
Verifying : nss-sysinit-3.15.4-7.el7_0.x86_64 14/17
Verifying : nss-tools-3.15.4-7.el7_0.x86_64 15/17
Verifying : libcurl-devel-7.29.0-46.el7.x86_64 16/17
Verifying : libcurl-7.29.0-46.el7.x86_64 17/17
Dependency Installed:
nss-pem.x86_64 0:1.0.3-5.el7
Updated:
curl.x86_64 0:7.29.0-51.el7 nss.x86_64 0:3.36.0-7.1.el7_6
Dependency Updated:
libcurl.x86_64 0:7.29.0-51.el7 libcurl-devel.x86_64 0:7.29.0-51.el7
nss-softokn.x86_64 0:3.36.0-5.el7_5 nss-sysinit.x86_64 0:3.36.0-7.1.el7_6
nss-tools.x86_64 0:3.36.0-7.1.el7_6 nss-util.x86_64 0:3.36.0-1.1.el7_6
Complete!
[root@wenhairu.com ~]# git clone https://github.com/TelegramMessenger/MTProxy
Cloning into 'MTProxy'...
remote: Enumerating objects: 194, done.
remote: Total 194 (delta 0), reused 0 (delta 0), pack-reused 194
Receiving objects: 100% (194/194), 302.73 KiB | 0 bytes/s, done.
Resolving deltas: 100% (81/81), done.