【错误记录】git clone 报错 ( fatal: unable to access ‘https...‘:gnutls_handshake() failed: Error in the pu )
文章目录
- 一、报错信息
- 二、解决方案
一、报错信息
报错信息 :
执行
git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
命令 , 报如下错误信息 :
root@octopus:~/ijkplayer/ijkplayer-master# git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
正克隆到 'ijkplayer-android'...
fatal: unable to access 'https://github.com/Bilibili/ijkplayer.git/': gnutls_handshake() failed: Error in the pull function.
root@octopus:~/ijkplayer/ijkplayer-master#

二、解决方案
这是无法连接 GitHub 上的代码仓库 ,
使用
ping github.com
命令 , 查看 github 网站是否能 ping 通 , 如果无法 ping 通 , 则查找原因 ;
我在 VMware 虚拟机中的 Ubuntu 18.04.4 系统中执行的该命令 ;
之前遇到过类似问题 , 参考 【错误记录】GitHub 网站和仓库无法访问 ( 域名重定向 | 检查 C:\Windows\System32\drivers\etc\hosts 配置文件中的 GitHub 地址域名配置 ) 博客 ,
检查外部的 Windows 系统中的 C:\Windows\System32\drivers\etc\hosts 配置文件 是否有问题 , 需要重新设置最新的 GitHub 域名地址 ;
尝试切换网络 , 如 5G / 4G 切换 , 手机热点切换 , 目的是重置下网络 , 看是否能解决 ;
切换成手机热点后 , 发现下载成功 ;

本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
