【问题标题】:GPG: Generating key fails with cannot get input errorGPG:生成密钥失败,无法获取输入错误
【发布时间】:2017-08-09 12:08:16
【问题描述】:

我试图在我的 Ubuntu 16.10 上为 GitHub 生成新的 GPG 密钥。但是,它以错误消息gpg: Sorry, no terminal at all requested - can't get input 结束。我也试过gpg2,没有区别。

包括终端输出:

greeny@greenyNB:~$ gpg2 --gen-key
gpg (GnuPG) 2.1.11; Copyright (C) 2016 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gpg: Sorry, no terminal at all requested - can't get input


greeny@greenyNB:~$ gpg --gen-key
gpg (GnuPG) 1.4.20; Copyright (C) 2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gpg: Sorry, no terminal at all requested - can't get input

如何解决这个问题才能生成 GPG 密钥?

【问题讨论】:

  • 请发布您的gpg.conf 文件,即。有没有类似no-tty 的内容?

标签: github gnupg


【解决方案1】:

感谢 Jens Erat 的评论,解决方案:从 gpg.conf 中删除 no-tty 行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-04-03
    • 1970-01-01
    • 2022-06-14
    • 1970-01-01
    • 2022-08-13
    • 1970-01-01
    • 2017-09-16
    • 2015-05-02
    相关资源
    最近更新 更多