我试图在我的Ubuntu16.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密钥?
发布于 2017-08-11 21:24:33
感谢Jens Erat的评论,解决方案:从gpg.conf
中删除no-tty
行。
https://stackoverflow.com/questions/45590274
复制相似问题