【问题标题】:Can not use "git pull" because of some error由于某些错误,无法使用“git pull”
【发布时间】:2014-06-27 13:15:22
【问题描述】:

git 拉

fatal: unable to access 'https://github.com/neilyolol/aws.python.git/': error:0D0C50A1:asn1 encoding routines:ASN1_item_verify:unknown message digest algorithm

openssl version

OpenSSL 1.0.1g 7 Apr 2014

python -c 'import ssl; print(ssl.OPENSSL_VERSION)'
OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

【问题讨论】:

  • 你确定不想git clone
  • 我已经将代码推送到 git ,后来我在我的笔记本电脑(Windows 7)中修改了它们并提交了。然后我想把代码下载到我的linux服务器...
  • “OpenSSL 0.9.8e-fips-rhel5 2008 年 7 月 1 日” - 这已经很老了。更新您的系统可能会有所帮助。

标签: github


【解决方案1】:

我在一台旧的 CentOS 机器上遇到了这个问题,并且能够通过升级 openSSL 来解决它。 :)

sudo yum upgrade openssl

【讨论】:

    【解决方案2】:

    我遇到了同样的问题,我通过将 url 的前缀从 https 替换为 git 解决了这个问题

    【讨论】:

      【解决方案3】:

      GitHub seems to be using SHA256 as a hashing algorithm for SSL,直到version 0.9.8o 才添加到 OpenSSL。

      我怀疑(因为您似乎在相当旧的 Python 中运行 0.9.8e)您的 git 链接到/使用了一个太旧的 OpenSSL 版本。

      【讨论】:

      • @Neilyolol 更新您的服务器,看看是否有帮助,否则您可能需要自己编译更新版本的 OpenSSL+git。
      猜你喜欢
      • 2014-11-21
      • 2017-06-09
      • 2016-09-06
      • 1970-01-01
      • 2018-06-29
      • 2023-01-01
      • 2019-10-09
      • 2021-02-04
      • 2011-02-23
      相关资源
      最近更新 更多