首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >GPG:生成密钥失败,出现cannot get input错误

GPG:生成密钥失败,出现cannot get input错误
EN

Stack Overflow用户
提问于 2017-08-09 20:08:16
回答 1查看 983关注 0票数 1

我试图在我的Ubuntu16.10上为GitHub生成新的GPG密钥。但是,它以错误消息gpg: Sorry, no terminal at all requested - can't get input结束。我也尝试了gpg2,没有什么不同。

包括终端输出:

代码语言:javascript
运行
复制
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密钥?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-11 21:24:33

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45590274

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档