gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0]

前端 未结 30 2004
难免孤独
难免孤独 2020-11-27 23:55

I followed few articles over the pretty attributes on Git 2.10 release note. Going through which upgraded the git to 2.10.0 and made changes to global .gitconfig

30条回答
  •  一生所求
    2020-11-28 00:46

    I had a similar issue with the latest Git sources (2.12.2) built along with the latest sources of all its dependencies (Zlib, Bzip, cURL, PCRE, ReadLine, IDN2, iConv, Unistring, etc).

    It turns out libreadline was giving GnuPG problems:

    $ gpg --version
    gpg: symbol lookup error: /usr/local/lib/libreadline.so.7: undefined symbol: UP
    

    And of course, trying to get useful information from Git with -vvv failed, so the failure was a mystery.

    To resolve the PGP failure due to ReadLine, follow the instructions at Can't update or use package manager -- gpg error:

    In terminal:

    ls /usr/local/lib
    

    there was a bunch of readline libs in there (libreadline.so.BLAH-BLAH) so i:

    su
    mkdir temp
    mv /usr/local/lib/libreadline* temp
    ldconfig
    

提交回复
热议问题