gnupg - gpg : can't connect to the agent: IPC connect call failed

标签 gnupg

我在尝试使用 GPG 解密某些 key 时遇到问题。以下输出提供给我:

gpg: can't connect to the agent: IPC connect call failed

我已经编辑了一些文件,在本教程中指出:https://michaelheap.com/gpg-cant-connect-to-the-agent-ipc-connect-call-failed/但没有成功。

可能的原因是什么?

提前致谢

最佳答案

即使我在 Ubuntu 20 WSL 中遇到上述问题,我也尝试了以下所有方法 |以上建议,但没有一个对我有用。

root@7400-9888K13:/mnt/c/Users/PKammari# wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
gpg: can't connect to the agent: IPC connect call failed
我做了什么来解决这个问题?
  • 删除 gpg
  • 安装其他版本的gpg。

  • 我该怎么做?apt remove gpg (按照说明)apt install gnupg1 (按照说明)
    选项 2。sudo apt update --y
    `sudo apt remove gpg`
    
    `sudo apt-get update -y`
    
    `sudo apt-get install -y gnupg1` 
    
    证明。 (引用截图):
    enter image description here

    关于gnupg - gpg : can't connect to the agent: IPC connect call failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46673717/

    相关文章:

    python - GnuPG homedir 读/写权限

    android - "gpg: Can' t 检查签名 : No public key"upon initializing a repo from code aurora

    git - 如何在像 IntelliJ 这样的 IDE 中签署 git 提交?

    docker - 使用 PGP 验证 Alpine 容器中的 GDB

    c# - 我们使用 BouncyCaSTLe API 为客户端加密文件。他在尝试解密时从 PGP 收到一条 "For your eyes only"消息。为什么?

    php - 如何强制 GPG 接受来自 STDIN 的输入而不是尝试打开文件?

    python - 将 ASCII 铠装输出转换为二进制数据

    bash - 从脚本运行时避免 gpg-agent 出现问题 - gpg2

    bash - 如何在编辑过程中将文件保存在内存中?

    git - 对于使用 WSL2 签名的 git 提交,Windows 10 上的 Visual Studio Code 中没有 GPG 密码提示