使用 git clone 或者 git submodule update 命令时出现错误
gnutls_handshake() failed: The TLS connection was non-properly terminated.
如果使用git clone,直接将后面的地址改用http
如果使用git submodule update,将.gitmodules文件中的地址改用http,
如果修改后出现下面的错误,进入对应子模块Pangolin仓库中修改.gitmodules的地址
子模组路径 '3rdparty/Pangolin':检出 '1ec721d59ff6b799b9c24b8817f3b7ad2c929b83'
子模组 'external/pybind11' (https://github.com/pybind/pybind11.git) 未对路径 'external/pybind11' 注册
正克隆到 'external/pybind11'...
remote: Enumerating objects: 14953, done.
remote: Counting objects: 100% (263/263), done.
remote: Compressing objects: 100% (148/148), done.
remote: Total 14953 (delta 142), reused 201 (delta 100), pack-reused 14690
接收对象中: 100% (14953/14953), 6.19 MiB | 942.00 KiB/s, 完成.
处理 delta 中: 100% (10092/10092), 完成.
检查连接... 完成。
子模组路径 '3rdparty/Pangolin/external/pybind11':检出 '86e2ad4f77442c3350f9a2476650da6bee253c52'
子模组 'tools/clang' (https://github.com/wjakob/clang-cindex-python3) 未对路径 'tools/clang' 注册
正克隆到 'tools/clang'...
fatal: unable to access 'https://github.com/wjakob/clang-cindex-python3/': Failed to connect to github.com port 443: 连接超时

本文讲述了在使用git clone和gitsubmodule update时遭遇gnutls_handshake失败的问题,解决方法包括切换到http协议、修复.gitmodules中的子模块URL,并针对不同子模块的错误给出了相应的排查和修正步骤。
9370

被折叠的 条评论
为什么被折叠?



