我正在使用Ubuntu18.04.1。
我以前从gnupg.org手动安装了GPG2.1.15(包括依赖项)。
我想安装一个ppa,在运行sudo apt-key add Release.key之后,我得到了输出:
gpg: can't connect to the agent: IPC connect call failed 然后我大惊小怪地解决了这个问题。这场疯狂的追逐收效甚微。我在GPG2和每个依赖项的目录中使用sudo make uninstall卸载了GPG2 (和依赖项)。然后,我通过apt安装了GPG2及其依赖项。
我现在完全不能使用GPG。
当我运行gpg --clearsign时,我得到了输出
gpg: can't connect to the agent: IPC connect call failed
gpg: can't connect to the agent: IPC connect call failed
gpg: keydb_search failed: No agent running
gpg: no default secret key: No agent running
gpg: [stdin]: clear-sign failed: No agent running当我运行gpg-agent --daemon时
gpg-agent: relocation error: gpg-agent: symbol gcry_get_config version GCRYPT_1.6
not defined in file libgcrypt.so.20 with link time reference当我运行gpg --version时
gpg (GnuPG) 2.2.4
libgcrypt 1.7.0
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /home/michael/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2发布于 2018-09-25 22:54:51
我手动卸载、重新安装,然后再卸载libgcrypt 1.7.0,方法是转到我从gnupg.org下载的文件目录,然后运行
sudo make uninstall
sudo make install
sudo make uninstall然后通过apt重新安装libgcrypt,运行
sudo apt install --reinstall libgcrypt20*然后,我转到libgpg-error 1.21目录,并对libgpg-error 1.21执行相同的操作。
sudo make uninstall
sudo make install
sudo make uninstall
sudo apt install --reinstall libgpg-error0然后,我转到libassuan 2.4.2目录。在通过apt重新安装libassuan之前,我先手动安装,然后卸载libassuan 2.4.2。
sudo make install
sudo make uninstall
sudo apt install --reinstall libassuan0https://askubuntu.com/questions/1077073
复制相似问题