【问题标题】:fatal: unable to access 'https://github.com/gabelerner/canvg.git/': Peer reports incompatible or unsupported protocol version致命:无法访问“https://github.com/gabelerner/canvg.git/”:同行报告不兼容或不支持的协议版本
【发布时间】:2018-03-06 10:47:26
【问题描述】:

当我运行 bower install --allow-root 时,我在 jenkins 中遇到了这个问题。构建失败并显示以下错误: 执行“git ls-remote --tags --heads”失败 https://github.com/gabelerner/canvg.git

最终构建失败错误显示如下:

致命:无法访问“https://github.com/gabelerner/canvg.git/”:对等方报告不兼容或不支持的协议版本

使用不同的 GIT 文件路径显示相同的错误。

之前的错误是: 获取远程 repo 'origin' 时出错

我们解决了更改 SSH 密钥的问题。

如果我们从构建中删除 bower install 命令,构建成功。

任何帮助将不胜感激。

【问题讨论】:

    标签: angularjs git jenkins github bower-install


    【解决方案1】:

    这可能是您的问题的原因: Discontinue support for weak cryptographic standards

    ....因此,GitHub 宣布立即弃用,并且 最终禁用,我们使用以下加密 标准:

    TLSv1/TLSv1.1 - 这适用于所有 HTTPS 连接,包括 Web、 API 和 git 连接到 https://github.comhttps://api.github.com。 diffie-hellman-group1-sha1 - 这适用于 所有到 github.com 的 SSH 连接。 diffie-hellman-group14-sha1 - 这个 适用于到 github.com 的所有 SSH 连接。以上都将 于 2018 年 2 月 1 日停用。

    因此您需要升级到更强大的密码。 我看到这个解决方案帮助了其他人 github-unable-to-access-ssl-connect-error

    yum update -y nss curl libcurl
    

    希望对你有帮助

    【讨论】:

    • 谢谢!当我尝试进行 yum 更新时,一些 yum 镜像给我同样的错误!幸运的是,其中一些仍然允许旧的。
    【解决方案2】:

    致命:无法访问“https://github.com/john/git-Training.git/”:对等方报告不兼容或不支持的协议版本。

    我升级到最新的密码,致命错误消失了。

    [john@doe git-Training]$ sudo yum update -y nss curl libcurl
    

    【讨论】:

      猜你喜欢
      • 2016-03-25
      • 2019-09-03
      • 2019-08-16
      • 2019-05-28
      • 1970-01-01
      • 2021-11-03
      • 2019-03-14
      • 2019-08-06
      • 2012-03-24
      相关资源
      最近更新 更多